Minecraft – How to make a kit that has Unbreakable Items in it

minecraft-commandsminecraft-java-edition

I'm trying to make kits with Unbreakable Items in it for my Kit PvP server.

To make the items Unbreakable, I use this command:

 /give (Name) minecraft:(item) 1 0 {Unbreakable:1}

For proof that the command worked, I hovered over the item and it clearly said Unbreakable at the bottom of the lore. For example:

Unbreakable

Problem is, when I do /createkit, it transfers the item but not the Unbreakable effect.

When I hover over the item after I create the kit, it does not say Unbreakable at the bottom of the lore. Again, for example:

Not Unbreakable when I did /kit

Best Answer

Instead of using the unbreakable attribute, use the ench attribute to add almost infinite unbreaking to the item. (It is still possible to break it, but it would have to deal the damage of killing about 130,000 ender dragons) The command is /give (Name) minecraft:(item) 1 0 {ench:[{id:34,lvl:10000}]}.
The item now has unbreaking level 10,000.

Related Topic