He shouldn't be able to do any damage to someone with his iron axe.
Can you offer alternative solutions.
The code I wrote is working but I don't want to delete the tool.
I tryed change cursor slot, can only hit once.
Maybe could send the tool to the inventory.
Thanks to the helpers.
Can you offer alternative solutions.
The code I wrote is working but I don't want to delete the tool.
I tryed change cursor slot, can only hit once.
Maybe could send the tool to the inventory.
Code:
on left click:
if player's tool is a iron axe:
loop items in player's inventory:
if loop-item is iron axe:
clear the loop-item
Thanks to the helpers.