My procedure that uses PLAYER_PERSISTENT variables doesn't work.

Started by MrRedstone29 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My procedure that uses PLAYER_PERSISTENT variables doesn't work.

Hello, as you can see in the title, my procedure doesn't work, in fact my variable GetCurrentXp stay at 0, the value doesn't change. Maybe I should take an other type of variable, but I want it to be different for each players. (For an XP system.) Thanks in advance for helping me !This image shows my procedure that set 1+random number between 0-9 to "GetCurrentXp", and I add "GetCurrentXp" to "PlayerAllXP" and then I wait 40 ticks to set "GetCurentXp" to 0.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hum, in fact I get it when I…
Sun, 08/15/2021 - 16:11

Hum, in fact I get it when I use NBT tags it works !