Code:
command uprooter:
trigger:
execute console command "/give %player% netherite_hoe{Enchantments:[{id:sharpness,lvl:10}],display:{Name:'{""text"":""Uprooter""}'},Unbreakable:1b}"
#
on damage:
attacker has netherite hoe named "Uprooter" in main hand
victim is not a vex or armor stand
apply levitation to victim for 3 seconds
spawn vex at victim
When using the unbreakable netherite hoe given with the /uprooter command, nothing happens when hitting a mob with it, however using a regular netherite hoe named "Uprooter" works, but only for the first hit when it has maximum durability, afterwards failing to work at all. How could I fix this?