Started by
Zatrex
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I want to display the ammoCharged global variable in an overlay but the overlay displays the value for a millisecond then displays 0. To be sure I print the values in the chat every tick and the values are never at 0 so I don't don't understand why it displays a 0!
overlay : https://postimg.cc/mzY9LjbM
var : https://postimg.cc/kBrHhXHp
ingame : https://postimg.cc/sQ7L3kQc
ps: sorry for my poor english
Variables of the type player_persistent and player_lifetime are server side and won't work with GUI.
You need to use a global variable of the type Global Map that has the value of the player_persistent Variable.
Thank you for your reply.
I have a player_persistent type var named money which works with my GUI so I don't really understand.
If I make a global type var and go to a server, all players will have the same value for this variable, right?
solved! I used an nbt tag instead. Thank you anyway for your help