Player persistent variable not working

Started by KingJakeLV on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player persistent variable not working

I am working on a mod for a specific world and the way I have it set up is that I use many player persistent variables. Whenever I make a new player persistent variable, I have to make an entirely new world or the variable doesn't exist. This makes it so that I can't do what I want to do. Please help

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ik this is late, but for…
Tue, 07/09/2024 - 11:18

Ik this is late, but for people in the future, you need to do something like this:
 

not tested for numbers or logic but should still work, if not you can probably figure it out by printing the output to the console then adding the right condition.