This script works, but only for two sword strikes, then for some reason it stops applying the effect.
I think the thing is that his durability is decreasing, but I don't understand how to fix it.
I will be very grateful for your help
import:
dev.lone.itemsadder.api.ItemsAdder
on damage:
set {sword} to ItemsAdder.getCustomItem("test:sword")
attacker is a player
if attacker's tool is {sword}:
apply poison 1 to the victim for 5 seconds
I think the thing is that his durability is decreasing, but I don't understand how to fix it.
I will be very grateful for your help
import:
dev.lone.itemsadder.api.ItemsAdder
on damage:
set {sword} to ItemsAdder.getCustomItem("test:sword")
attacker is a player
if attacker's tool is {sword}:
apply poison 1 to the victim for 5 seconds