Item trigger "when item broken"

Upvotes: 2
Issue description

I want a trigger called "when item broken",and it will provide the itemstack of the item that is BEFORE it broke and i want to make something like "carrot_on_a_stick",so changing it to "fishing_rod"(in a procedure) actually changes it in the inventory too.

(add a procedure called

CHANGE <itemstack> TO <itemstack> AND MODIFY IN INVENTORY

,and it will fail if provided itemstack didn't "come out" of an inventory.

Issue comments

Or,"get item damage" means get durability consumed,not the damage made when hitting mob with the item?

because even there is a SLOT dependency in "when tool in hand/inventory tick"/"when item in hand/inventory tick",there isn't and procedure called "replace item in inventory slot <number> of <entity_input>"!

This is becoming a feature list, please check terms of the tracker.

Keeping open for the original request.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.