Help accessing a player persistent variable in a procedure

Started by Bongoshalongo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help accessing a player persistent variable in a procedure

I probably just can’t find the right block to do this. I am making a mod with a mana bar, the bar is fully functional but I can’t get the mana weapons to use the player persistent variable for how much mana the player has. The code is triggered when the mana weapon is right clicked and everything worked well until I added the check for enough mana. I think what goes wrong is that I don’t know how to reach the right variable, is there any way to do this.