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

Started by Kylebutter123 on

Topic category: Help with Minecraft modding (Java Edition)

Active 5 years ago
Joined Dec 2015
Points:
743

User statistics:

  • Modifications: 1
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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..?

Active 1 year ago
Joined Aug 2013
Points:
1164

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
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.

Active 5 years ago
Joined Dec 2015
Points:
743

User statistics:

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

does using WorldSavedData require any manual coding?

Active 1 year ago
Joined Aug 2013
Points:
1164

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
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.

Active 3 years ago
Joined Jul 2017
Points:
727

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 42
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)

Active 3 years ago
Joined Nov 2018
Points:
980

User statistics:

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

Wait for 1.8.3 to come out.