Started by
HollowHeart19
on
Topic category: Troubleshooting, bugs, and solutions
I've created an item with durability because of right click on block events. Once item damage count hits "0", I need a way to create an event that breaks the item once this occurs. Suggestions? and don't say tools. Tools focus left clicking. Right clicking events won't effect durability or "uses" for tools.
Check if the ItemStack durability is less or equal to 0 and then just remove it from inventory.
I know to do that, but the problem is, the item procedures have no way to make a comparison to check itemstack from the java blocks. Is this something I'll have to add to the events in the code for my item mentioned?
What MCreator version are you using?
By the way, I really recommend you to just edit the code instead of doing it in procedures/events as the needed code should fit pretty much on one line.
1.8.0, and even in this instance, I don't know what line of code to add, and where in the file
It depends on what the MCreator generated code looks like. You will have to edit the procedure or the block that calls the procedure.