How do I make armors unbreakable

Started by LazerUndefined on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make armors unbreakable

I know that you can set durability to 0 for items and tools but it seems when you set the durability of armors to 0 makes it pop instantly, also I can't set the durability to -1. so how do I make a unbreakable armor? 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just had this issue too…
Sat, 07/19/2025 - 01:37

I just had this issue too. And you're the only one who had a post about it, but appearently it was never resolved. How useful.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
try set using "set damage of…
Sat, 07/19/2025 - 06:40

try set using "set damage of provided item stack to (number of max durability) "  in the on armor tick update

but if you have a lot of people using the armor it might lag

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Actually, I think you want…
Sat, 07/19/2025 - 14:00

Actually, I think you want to set damage to 0, but otherwise thatperson_'s suggestion should work decently well.

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you set damage to 0, it…
Sat, 07/19/2025 - 16:06

If you set damage to 0, it makes them unable to be enchanted via enchanting tables. The best way is to simply add a "Set NBT logic tag "Unbreakable" of provided itemstack to true, on the armour's tick.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I meant to set the damage to…
Sat, 07/19/2025 - 16:40

I meant to set the damage to 0 every tick, not set the maximum durability to 0. But your method sounds like it might work better anyways.