Started by
swelkinn_n
on
Topic category: Help with Minecraft 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]
i want to make something similar to this, so could you show an image of the procedure?
hum that thing wont work valirane, (2023.3) what you mean by NBTs there? is that part really necessary just for replace the item? i use my item, damage it until it destroy, but the second item (empty item) wont spawn on player main-hand
(trigger) when a item is destroy
If item in the player hand is an [your item] <-- this prb wont work because the item will be already gone when you fire that condition