Started by
swelkinn_n
on
Sat, 04/30/2022 - 02:16
Topic category: Help with modding (Java Edition)
literally none of the other posts on this forum explain this (let alone working methods),
i just want to make my tool give the player a broken version of itself when it breaks
help,???
Create a new procedure :
(trigger) when a item is destroy
If item in the player hand is an [your item]
Set [your item broken] in the player hand
tell me if it doesn't work
Global trigger : "Item is destroyed".
If [provided itemstack] = "your tool"
If [item in main-hand] = [empty itemstack] (hand should be empty, but verify just in case)
Set item in main-hand of [event/target entity] to "broken item"
Copy NBT tags of [provided itemstack] onto [item in main-hand]