Hi, I'm trying to make it so that every tick, any sword/axe in a player's inventory is enchanted with Sharpness 5.
At first, I made it run the enchant command on the player for sharpness 5, but I've noticed that only enchant's the tool in the player's hand. Any idea on how to fix this?
Here's the script:
every tick:
loop all players:
if {role::%loop-player%} is equal to "warrior":
execute command "/enchant %loop-player% sharpness 5"
At first, I made it run the enchant command on the player for sharpness 5, but I've noticed that only enchant's the tool in the player's hand. Any idea on how to fix this?
Here's the script:
every tick:
loop all players:
if {role::%loop-player%} is equal to "warrior":
execute command "/enchant %loop-player% sharpness 5"