Started by
Echo Animates
on
Topic category: Help with Minecraft modding (Java Edition)
Hello there modders! I'm going to keep this short so I can show you the code but also tell you how it works!
CODE:
Guide:
- Get your item/tool
- Go to triggers and make a "When tool in hand tick" procedure.
- Create the code listed above. (Replace the effects with the ones you want)
-
Have fun!
HM: You can switch the "Is () in water" with "Is () in lava".
HOW IT WORKS:
Basically, it checks every tick (50 milliseconds) to see if you're in water/lava.
When it detects you're holding out the tool whilst in the liquid, it gives you the effects listed.