Started by
Trinicrafter10
on
Topic category: Help with MCreator software
How do I make a procedure to check item durability? Is this even possible? I want there to be a specific effect once an item reaches a certain durability.
Topic category: Help with MCreator software
How do I make a procedure to check item durability? Is this even possible? I want there to be a specific effect once an item reaches a certain durability.
I think that would be "get damage of the provided item" in the item procedures
Thanks, I noticed that 3 durability is 0.3 and so on, it goes up in 10s for some reason.
can you send a picture, i still don't get how it works, it would help alot.
I can't figure it out either. I'm trying to detect when a tool gets to 3 durability, I've tried 3, 0.3, neither work.
Nevermind I figured it out lol. I made a procedure that just broadcasts your item durability to the chat whenever you break a block. Here are the results:
The "get damage of the provided item" block in procedures checks for the damage to the item, not the durability.
Well the image isn't working but here is what it said in the chat:
Durability is 0
Durability is 1
Durability is 2
Durability is 3
Durability is 4
and so on, as I broke blocks with a wooden shovel.
so how?
Since that specific block checks the damage to the item and not the durability, to find the durability just subtract the damage from the total durability. I don't remember the exact name of the block but there should be one like "max durability of [item]". So use max durability - damage of item