How to make tools and armor unbreakable?

Started by Agent_3314 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Apr 2020
Points:
643

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
How to make tools and armor unbreakable?
Tue, 09/22/2020 - 16:01 (edited)

how to make tools and armor unbreakable????

Edited by Agent_3314 on Tue, 09/22/2020 - 16:01
Active 1 year ago
Joined Apr 2020
Points:
686

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 96
One way to do this is to use…
Tue, 09/22/2020 - 13:03

One way to do this is to use a procedure to replace the armor (while on body) with these commands:

1.14:
/replaceitem entity @p armor.<head,legs,ect> minecraft:<helmate,chestplate,ect>{Unbreakable:1b} 1
1.15:
/replaceitem entity @p armor.<head,legs,ect> minecraft:<helmate,chestplate,ect>{Unbreakable:1b} 1

Here is a good website for making commands:
https://mcstacker.net

Active 9 months ago
Joined Jun 2020
Points:
710

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 135
I suggest using tags…
Tue, 09/22/2020 - 18:45

I suggest using tags. MCreator allows you to create tags, even vanilla ones. Define a tag element, set it to minecraft, and make it the unbreakable tag. Then, put all the items you want to make unbreakable under it!

Active 1 month ago
Joined Feb 2020
Points:
642

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
Set the durability to 0
Tue, 09/22/2020 - 21:52

Set the durability to 0

Active 3 years ago
Joined May 2021
Points:
556

User statistics:

  • Modifications: 1
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
which code block do i use…
Wed, 05/26/2021 - 03:06

which code block do i use for that?

Active 4 weeks ago
Joined Mar 2025
Points:
17

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Setting it's durability to…
Sun, 03/16/2025 - 00:45

Setting it's durability to zero made mine break instantly 

Active 2 days ago
Joined Oct 2018
Points:
721

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 25
for armor, I have it be…
Sun, 03/16/2025 - 13:00

for armor, I have it be fully repaired every tick using procedures, for tools I make it so that whenever a block is broken or a mob is hit, it's fully repaired