You can use "Unbreakable" NBT tag to make your items unbreakable.
Example with a sword: /give
@a minecraft:diamond_sword 1 0 {Unbreakable:1}
gaming.stackexchange.com/users/66140/Atom
Items in Minecraft have a Damage value attached to them.
For tools this is used to determine how much the item is damaged.
For example, diamond tools break when this number reaches 1562 (their durability ).
By casting an Unbreaking III enchantment on the tool ( /enchant playername 24 3 )
you make it last 4 times as long: 1562·(1+3) = 6248 uses on average.
The game doesn't let you enchant for a higher level.
If that's not enough for you, you will have to use an external game data editing program.
Note that the program is only needed once.
No mods will be required afterwards, neither for you, nor for the players of your map.
At first, make sure you have the desired tool (with Unbreaking already) in your Minecraft inventory, then close the world.
Now is a good time to make a backup of your world in case something goes wrong.
Let's use NBTEdit to edit the information about the tool.
Open the level.dat file inside your world's directory.
Go to Data → Player → Inventory .
Select the entry which has the id of your tool
(for example, a diamond pickaxe is 278 ).
Double-click on Damage and change the value to -32768
( -2^15 , the smallest number short int data type can hold).
Open the item's tag → ench → " 2 entries " and change the lvl to 10.
(You can make the level even larger, but it won't look good in the game: " Unbreaking X " vs " Unbreaking enchantment.level.11 ").
Save the file.
Now you have an item with (32768
+1562)·(1+10) = 377630 uses.
Moreover, for the first 360448 uses (i.e. forever) the item won't have its damage bar displayed.
Also, the tool doesn't even have to be diamond: a wooden tool will still have (32768+60)·(1+10) = 361108 uses.
gaming.stackexchange.com/users/2267/BlaXpirit
The closest you can get to that is enchanting your tools to make them last longer, increasing the uses significantly.
Another option for an adventure map would be to provide anvils through the map and hide raw materials that you could use to repair your tools.
gaming.stackexchange.com/users/38193/M.Pagani
You can simply do this command (in a command bock).
Copy as so into game anything in the () .
It's your choice in what you want to put.
Note I did this in 1.7.2: /give
@p
diamond_sword {
Unbreakable:1,ench:[{id:(enchantment id),lvl:(enchantment
power),display:{Name:"(name of item)",Lore:["(a
little msg about anything)"]}}
You can extend things like the total enchants and lines of Lore some examplesmultiple enchants:
ench:[{id:(enchantment id),lvl:(enchantment power)},{id:(enchantment id),lvl:(enchantment power)},{ and so on.
More lore lines: Lore:["(a little msg about anything)","Lore:["(a little msg about anything)"," and so on.
gaming.stackexchange.com/users/70088/Shinyshedinja707
If anyone is interested and need an indestructible item for Minecraft 1.2.5 and/or maybe for some Minecraft with SPC installed, try this: /item "number item" 1 -3000
gaming.stackexchange.com/users/74681/Guest
/give
@a minecraft:diamond_sword 1 0 {Unbreakable:1} Completely works.
I tested it with a gold sword in 1.8.1 and it never lost any durability.
gaming.stackexchange.com/users/93838/Someone who has a name
You can use command blocks: lets say 247 is a wooden sword (247 is not really a wooden sword, just an example), so do: give [playername or @p or something]
[item ID]
[amount]
[191918]
so it should look something like that:
give @p 247 1 191918 That will give you an indestructible sword!
gaming.stackexchange.com/users/49148/user49148
In Minecraft, is there any way to make tools indestructible (without using mods)? I want to make some tools indestructible (for an adventure map). Is it possible to do this using enchantments (or a command of some kind?)
Make tools indestructible in Minecraft
gaming.stackexchange.com
<minecraft-java-edition>
gaming.stackexchange.com/questions/95711
gaming.stackexchange.com/users/24442/Anderson Green
Use Unbreakable NBT tag to make your items unbreakable. While it is possible to make tools indestructible, the player might have to use illegitimate ways to achieve it.
The community is referring to command usage. It seems that beyond commands, a mod has to be used. However, a user is suggesting that, normally, you can only get close enough to indestructibility.