Started by
GeoMetri
on
Topic category: Help with Minecraft modding (Java Edition)
If (armour slot 3 = [helmet name] and not is cooldown for armour slot 3) then
add potion invisibility 1 200
cooldown armour slot 3 for 600 ticks
return create text with ("Helmet: " + Get remaining cooldown percentage for armour slot 3 + "%")
The percentage output keeps looping but it functions normally.
from what the code does I guess that the global trigger is on loaded entity tick update or on player tick update, and since there is only one return block it has to be outside the "do" of the "if", so it returns text every tick
It is
All the code works fine with the timing but the return just goes 100%-0% and back to 100% ect
If the script only happens when X is pressed how would I make a second procedure that would take the cooldown of all armour on a player every tick
NVM i found out how