Hi, I recently created an Item but when you add the Name and Description of the Item and if you use it and consume it (enough to destroy it) it no longer works, I have to make sure that if you add the name and the description of the item functions, even from Unbreakable, is there a way?
Code:
on damage:
if attacker is a player:
if attacker's tool is an golden sword named "&dRARE! &9PyramidSword" with lore "&7Every &efourth &7strike strikes" and "your enemy with &elightning &7for" and "&c2❤️ &7true damage":
if {hits::%uuid of victim%} is equal to 5:
execute console command "/smite %victim%"
set {hits::%uuid of victim%} to 0
add 1 to {hits::%uuid of victim%}
command /perun:
trigger:
player has permission "perun.permission":
give player a golden sword named "&dRARE! &9PyramidSword" with lore "&7Every &efourth &7strike strikes" and "your enemy with &elightning &7for" and "&c2❤️ &7true damage"