I've attempted using the fs module from Node, but this is not Node. Tried storing it in window.name, but this is not a browser.
I need to store some info from my mod across game restarts - mostly coords of some stuff. Is there a way I can do this?
I'm assuming you are talking about ModPE script (Javascript), so there are two way of doing this.
First:
ModPE.saveData(key, value); and ModPE.readData(key);
Second way:
With the Java bridge: thanks to the Java bridge you can use Java classes of Android, so for example you can save a file on the sdcard with the data you need.
Just check out the Android Reference.
I need to store some info from my mod across game restarts - mostly coords of some stuff. Is there a way I can do this?
I'm assuming you are talking about ModPE script (Javascript), so there are two way of doing this.
First:
ModPE.saveData(key, value); and ModPE.readData(key);
Second way:
With the Java bridge: thanks to the Java bridge you can use Java classes of Android, so for example you can save a file on the sdcard with the data you need.
Just check out the Android Reference.
All the other things I've made for Minecraft: desno365.net/minecraft/
Follow me on Twitter: @desno365
Visit my website: desno365.net