I need help with varibles and saving them to a certain world and player

Started by Brakkieboi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help with varibles and saving them to a certain world and player

im trying to make a mod where a player choses their race on world entry so im using player persistant data but when i join a different world the data aplied to my new world and so i was the same race. i tried using player lifetime data but then when i died it reseted my data can anyone help me

 

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Probably when you created…
Wed, 07/09/2025 - 17:06

Probably when you created the variable you selected "Global Session". Try changing it to "Player Persistent" or recreating it