Hey, I wanted help on this item I was going to make for my server. When used, whoever the player hits with the item (shears) can't be able to use their elytra for 1.5 or 2 seconds. I want it to not damage the player and I want it to be a one use only item.
Here is the skript I have right now but it doesnt remove the item from my inventory:
f
Here is the skript I have right now but it doesnt remove the item from my inventory:
code_language.skript:
#Need help on setting a cooldown for how long the gliding of victim is off
on damage:
if attacker is a player:
if attacker's tool is shears:
if name of attacker's tool is "&f&lElytra Disabler":
cancel event
remove attacker's tool from attacker's inventory #idk what i did here lol
set gliding of victim to off