Started by
nourelqamed
on
Topic category: Help with Minecraft modding (Java Edition)
So, for Example, if a piece of netherite armor breaks, it is replaced with a piece of diamond armor. The problem is i dont know how to detect if a piece of armor breaks and i need help with that
How can i detect if armor breaks
Thanks
Edited by nourelqamed on Fri, 05/09/2025 - 12:29
you can check durability of armor (if = 1, then replace)
i think it will be better cause player can lose netherite armor (no one likes to lose expensive items)
but there isn't a block that checks armor durability, so I don't know how to do it, But thanks for the advice; however, it won't work for the type of mod I'm making
whenever I search for a block with the keyword durability nothing shows up
also another thing I forgot to ask about is how can I make a pre-existing Minecraft crafting recipe unusable
I tried remaking the recipe and making it give you your materials back but that didnt work
this is what i tried to do
file:///C:/Users/NOUR%20ELDIN%20AHMED/OneDrive/Pictures/Screenshots/Screenshot%202025-05-11%20063527.png
Get damage of | Get item from armor slot |0| of |Even/target entity|| = ||Get max possible damage of |Provided itemstack|| - |1|
(this is my fast idea it may not work)