How do I make vanilla tools and armor unbreakable

Started by WaSD4 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make vanilla tools and armor unbreakable

Hi,

I'm making a minecraft rebalancing mod, and I've decided I'm gonna remove all durability from the game. At the time it sounded like a wonderful idea, until I realized how hard this actually is. Now I'm not a programmer, (thats why I use MCreator), so this seemingly simple task became an absolute pain in the rear end. I've found a temporary, unoptimized, "this is a problem for future me" type """"solution"""", which is just set every item's durability in every entity's inventory to 0 each tick.

With all that said, how in the living hell am I supposed to do this properly. (I'd be really happy if there was a solution not requiring me actually learning any programming language, but at this point if I even get a reply saying something like "erm, thats a problem with me too" or "sorry kid, go and learn how to make a   r  e  a  l   minecraft mod" I'm happy)

Thanks in advance!
 

the war crime in question:
https://imgur.com/a/guvvveG

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
there's no way without java…
Mon, 04/28/2025 - 17:57

there's no way without java or war crimes, you can keep it your way or try to somehow assign the unbreakable tag to true to any item just once for optimization, but the "just once" part is not easy, or make it so your mod doesn't load unless the mod "No Durability" is loaded too