Started by
Lavlav1808
on
Topic category: Help with MCreator software
I want to make a sword that if you in water and holding it, it will give you dolphin grace, strength, and conduit power. Also it will start a timer that every 30 seconds, it will give you instant health and if you leave the water or hold something else it will reset the timer.
make a global variable of type number and scope player_lifetime:
then inside your tool's triggers add a new toolinhandtick and make this procedure:

i didn't make it reset each time you hold another item, but you can do that yourself just by making a new global procedure that changes watereffect for each tick depending if you're in water or holding an specific item