Hey everybody,
I have some information which I'm currently storing in a global variable in my block's class. The idea is that every time the block is placed down, a number stored in this global variable increments. This is important for reasons which I won't explain here
Problem is, the global variable is deleted when the game is quit (as I had expected) and I need this value to stick around for when the game is next re-opened. I also need the value to be stored per world, so it can be say 7 in one and 12 in another. I know some mods use txt files in the the world save to store info, so maybe I could do something like that? Otherwise, is there something like a Javascript Cookie or localStorage storage object in Java which I could use to store this value?
Thanks in advance
-Toastrackenigma