Global Variables don't save when I join back into a world

Started by Kylebutter123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Global Variables don't save when I join back into a world

Everytime I edit a variable in my world, quit minecraft, then join back into the world, the variable doesn't save

 

can anyone help with this problem..?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use WorldSavedData…
Mon, 06/04/2018 - 05:21

You can use WorldSavedData for world related variables, Capabilities for entity/item related variables or you can do your own system.

Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does using WorldSavedData…
Sun, 07/22/2018 - 22:03

does using WorldSavedData require any manual coding?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Of course that it does. You…
Sun, 07/22/2018 - 22:54

Of course that it does. You have to create the class that extends the WorldSavedData.class, override few methods regarding the NBT read and write + you have to create an event handler to load the data on world load.

Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this thread is old,…
Wed, 03/13/2019 - 19:38

I know this thread is old, but are there any possible workarounds to this? (Without coding)

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait for 1.8.3 to come out.
Sun, 03/17/2019 - 10:34

Wait for 1.8.3 to come out.