#durability instead of removing item

4 messages · Page 1 of 1 (latest)

hidden sigil
#

i have a script that removes the item but i want it to damage it insted

        heldItem.setCount(heldItem.getCount() - 1);```
i cant find anything anywhere on the documentation
jovial pondBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

silver sphinx
#

while item stack doesn't seem to have damage methods damage is just an NBT value called Damage so you just need to set it to 1 if non existent and 1+val if there is val

hidden sigil
#

oh okay thanks