Im trying to make it so that when a piece of your armor breaks it is replaced with a lower tier piece.

Started by nourelqamed on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im trying to make it so that when a piece of your armor breaks it is replaced with a lower tier piece.
Fri, 05/09/2025 - 12:29 (edited)

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
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can check durability of…
Fri, 05/09/2025 - 12:47

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)

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but there isn't a block that…
Sun, 05/11/2025 - 03:14

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

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
whenever I search for a…
Sun, 05/11/2025 - 03:15

whenever I search for a block with the keyword durability nothing shows up

Joined May 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also another thing I forgot…
Sun, 05/11/2025 - 03:19

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

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get damage of | Get item…
Sun, 05/11/2025 - 12:35

Get damage of | Get item from armor slot |0| of |Even/target entity|| = ||Get max possible damage of |Provided itemstack|| - |1|

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(this is my fast idea it may…
Sun, 05/11/2025 - 12:35

(this is my fast idea it may not work)