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

Started by Kylebutter123 on

Topic category: Help with modding (Java Edition)

Last seen on 01:51, 7. Sep 2020
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..?

Last seen on 17:17, 10. Jan 2024
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.

Last seen on 01:51, 7. Sep 2020
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?

Last seen on 17:17, 10. Jan 2024
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.

Last seen on 00:18, 26. Mar 2022
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)

Last seen on 14:43, 2. Aug 2022
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.