How to make tools and armor unbreakable?

Started by Agent_3314 on Tue, 09/22/2020 - 08:59

Topic category: Help with modding (Java Edition)

Last seen on 17:12, 23. Oct 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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
Last seen on 16:53, 18. Oct 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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

Last seen on 14:02, 14. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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!

Last seen on 01:36, 21. Oct 2020
Joined Feb 2020
User points:

User statistics:

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

Set the durability to 0