How to make unbreakable item in minecraft
How to make unbreakable item in minecraft
How do I create unbreakable blocks?
I am creating a map on Minecraft, and I want the players to break certain blocks like trees, but I don’t want them to break other blocks like stone bricks. Is there any command that can help me?
7 Answers 7
You could put a player in Adventure mode using this command (in Java Edition 1.13+):
Then, you would give them items with the CanDestroy or CanPlaceOn tags. Remember to use the exact capitalization as shown.
CanDestroy NBT tag
This is an example of the CanDestroy NBT tag, which allows people in Adventure mode to destroy any of the blocks in that list, but not any other ones:
Here is what appears when hovering over the item that lets you know what the item can destroy:
CanPlaceOn NBT tag
This is what would appear when hovering over the item to let you know what you can place the block/item on:
Tag Support
Both CanDestroy and CanPlaceOn support tags. Tags represent a group of blocks/items and can be used in place of them. The following commands mean the same thing:
In earlier versions, specifying a block also included its other data values. For example, specifying Stone would also affect Diorite, Polished Diorite, Andesite, Polished Andesite, Granite, and Polished Granite. However, Java Edition 1.13 and higher require the use of tags instead.
Your Request
What you have requested can be achieved using the following /give command:
This will allow the player to destroy the current 6 types of logs, wood, stripped logs, stripped wood, and leaves.
Here is the tooltip of the iron axe:
It repeats the blocks twice because dark oak and acacia logs and leaves have a different block name than oak, spruce, birch, and jungle logs and leaves.
How do I make item frames unbreakable in Adventure Mode without locking the item inside?
I’m trying to make a map and the players in adventure mode can break item frames, so I’m trying to change that.
I’ve searched it up and both the Invulnerable tag and the Fixed tag don’t work for me, because the item frame becomes unbreakable, but it also prevents the item from being removed.
I want to make the item frame unbreakable, but I want to be able to take the item in Adventure mode. How can I do this?
1 Answer 1
You can fix this problem by adding Invulnerability to the item frame when there is not an item in it.
This requires you to specify which item:
execute as @e[type=minecraft:item_frame] unless entity @s[nbt=
Then you can remove the Invulnerability whit this:
execute as @e[type=minecraft:item_frame] if entity @s[nbt=
Doing this makes sure that if the players put the item back they will be able to grab it again.
Make sure you specify what item you use and if you’re going to have multiple item frames you should also add coordinates to the selector, might work without but I’m not sure:
The dx dy dz is really important, if they aren’t used the command doesn’t work.
So you can place the commands in separate repeating command blocks and then add two for every item frame you’d like the players to grab items from.
It might be a bit of command block setup, but this is the only solution I know and it works quite well.
The minecraft: part in @s[nbt=
How can I make a kit that has Unbreakable Items in it?
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:
For proof that the command worked, I hovered over the item and it clearly said Unbreakable at the bottom of the lore. For example:
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:
3 Answers 3
By the command it seems like you’re using a plugin. If you have essentialsx on your server, which is a pretty common and good to have plugin (in addition to its capable kit system), the following kits.yml is valid and works as expected.
In mod packs, a Blank Rune from Quark, found in Dungeon Structures or similar, on an anvil with any enchanted item will hide its glint, you could still use the tags.
I have not found a way to put tags on existing items.
Joachim, I’m sorry, I play on mod packs so practically it might be a bit confusing, I launch mod packs with Curse Forge, you’ll probably not want to make a server revolving around Modded Vanilla.
But if you wanted to do that, you could use a rune, like a blank one with that enchanted item to hide the enchantment effects, visually, not the description
Unbreaking in Minecraft
This Minecraft tutorial explains the Unbreaking enchantment with screenshots and step-by-step instructions.
Supported Platforms
The Unbreaking enchantment is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
| Yes |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Background
The Unbreaking enchantment, in effect, increases the durability of your tools, weapons, and armor so that they don’t wear out as quickly. This is done by decreasing the chance of the tool, weapon, or armor taking durability damage when used.
You can add the Unbreaking enchantment to any pickaxe, shovel, axe, hoe, fishing rod, carrot on a stick, shears, helmet, chestplate, leggings, boots, shield, elytra, sword, trident, bow, or crossbow using an enchanting table, anvil, or game command. Then use the enchanted item and never have it wear out!!
The maximum level for the Unbreaking enchantment is Level 3. This means that you can enchant an item with up to Unbreaking III. The higher the level, the more powerful the enchantment.
Enchantment Name | Unbreaking |
---|---|
Min Level | Level 1 (Unbreaking I) |
Max Level | Level 3 (Unbreaking III) |
Description | Increases the durability of your tools, weapons and armor so they don’t wear out as quickly |
Applies To | |
How to add Enchantment | 1. Enchanting Table 2. Anvil 3. /enchant command |
Items to Enchant with Unbreaking
In Minecraft, you can enchant the following items with Unbreaking:
How do I create an unbreakable bow in Minecraft Java Edition vanilla?
I’ve tried this command but it doesn’t work:
4 Answers 4
I believe the right command is
Instead of the command you did. You will have to move your «1» after minecraft:bow to after
Your Problems
You have one problem and I have one suggestion.
Problem: You put the count before the nbt the syntax for the give command is the following.
So an example of the give command is the following.
The Final Command
With the solutions specified, you get what follows.
The syntax changed in 1.13 onward. You would use this now.
Before 1.13 you would use the original command.
Being a programming language, Minecraft commands have some of the most nitpicky syntax and useless error messages. NBT in of itself is perhaps not too complicated, but Minecraft command syntax is not easy to learn for the simple reason that when you do something wrong, there is nearly no useful feedback.
If all you need to add is a single property (like unbreakable), then yes, the best choice is to do it manually, but it’s worth noting there are other options, especially for more complex commands.
You can use a command generator like MCStacker to generate items with NBT tags much more simply. MCstacker has a lot of powerful tools for adding NBT and other useful features to vanilla commands.
MCstacker is not always that simple, but the first thing to do in your case would be to click on /give from the main menu, which that is a link to. After that, the first menu is to select what player you want to give the item to (It defaults to nearest player, but can be changed to anything Minecraft supports). Then, you can set any of the more complicated conditions to receive the item in the same section as the player or group who will revive them. After this, you can start making the item itself!
You can choose the item, in this case a bow, using the top drop-down box in the second grouping all the way at the bottom. After you select an item, in this case a bow, the grouping will get far bigger and have options for unbreakability, the name, the lore of the item,the current damage, the cost to repair in an anvil, enchantments, and more! There are several expanding windows, check boxes, and text boxes that are labeled with what they do.
Finally, to get your command, you can go to the top right corner and copy the text in the blue window. If it fails in your command line, that means it’s too long and you need to run it in a command block.
Now you have your fully unbreakable bow with many enchantments, a custom name with cool colors, and even things that change the characteristics of the player.
Источники информации:
- http://gaming.stackexchange.com/questions/388135/how-do-i-make-item-frames-unbreakable-in-adventure-mode-without-locking-the-item
- http://gaming.stackexchange.com/questions/273167/how-can-i-make-a-kit-that-has-unbreakable-items-in-it
- http://www.digminecraft.com/enchantments/unbreaking.php
- http://gaming.stackexchange.com/questions/378844/how-do-i-create-an-unbreakable-bow-in-minecraft-java-edition-vanilla