Started by
Agent_3314
on
Topic category: Help with Minecraft modding (Java Edition)
how to make tools and armor unbreakable????
Edited by Agent_3314 on Tue, 09/22/2020 - 16:01
Topic category: Help with Minecraft modding (Java Edition)
how to make tools and armor unbreakable????
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
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!
Set the durability to 0
which code block do i use for that?