(Solved, ig??) How to make vanilla items 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:
(Solved, ig??) How to make vanilla items unbreakable
Tue, 04/29/2025 - 18:50 (edited)

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

Edited by WaSD4 on Tue, 04/29/2025 - 18:50
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

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm... I guess I'll look…
Tue, 04/29/2025 - 18:49

hmm... I guess I'll look into java cause I don't intend to use completely unnecessary dependencies, nor war crimes. Thanks for the answer!

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Tue, 04/29/2025 - 19:00

You're welcome 

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have come to the…
Tue, 04/29/2025 - 19:09

I have come to the conclusion (again) that the amount of stupidity I have cannot handle java. Well IM MAKING ANOTHER GUN MOD THEN