Started by
HVDES
on
Topic category: Help with Minecraft modding (Java Edition)
i made a sword that gives you strength if anyone hits you when your life is below 50%, but if i keep getting damage even when i have the potion effect, it keeps activating, so i want to add a cooldown to that ability
Edited by HVDES on Sat, 07/06/2024 - 04:09
you dont actually have to add cooldown. just check if player already has potion effect and if not give it to him.https://ibb.co/SRpV05R
i forgot to tell you to change the part where it checks for the item in main or off hand to your item. as it is now its checking for any sword
it really worked brooo, thank you so much!!!