Topic category: Help with Minecraft modding (Java Edition)
so, recently i've been trying to create a sort of a skill sistem based on some variables to create a rpg like progression.
I needed to create some buttons on the stats overlay for leveling up specific skills and thought it would be cool if the button only appear if the player have the necessary evolution points(another variable) to make this i used this procedure
I added this procedure to the button display condition and thought it would work, but it didn't, when i run the cliend and try on a new world the buttons display regardless of my evolution points.
I also created a procedure for every button, when the button is clicked it should subtract one evolution point and add a one point on the chosed skill.
same issue the game completely ignore the pocedures and all I'm left with are some useless buttons that always display and do nothing when clicked.
I'm quite new to modding so I might be doing something wrong
this are the variables i used
and nothing i resolved that