How to give enchanted item minecraft
How to give enchanted item minecraft
Minecraft Forums
How to Give Enchanted Items through Command Blocks
Since a lot of people are asking this, i thought this might help.
To give enchanted items through command blocks, you must place the activator and connect it to 2 command blocks. On one of the command blocks, set it back by 1 with a redstone repeater and type in the set-back one «Enchant @p [Enchantment ID] [Level]». Then, in the one without the repeater, type /give @p [Item that is going to be enchanted] [Amount]. Then, you’re done!
If the player’s already holding something, this won’t work. (or if their cursor isn’t over the slot the item will go into)
The player currently is holding a wooden sword. You give them a diamond sword, and enchant the item they are holding. The wooden sword gets the enchantment, not the diamond sword.
The player’s cursor is on their 9th slot in the hotbar. You give the player a diamond sword, it goes into their 1st slot on their hotbar. The command block enchants the item they are holding, which is nothing. Nothing gets the enchantment, the diamond sword remains unenchanted.
Proof of concept, perhaps. But nothing complete, by far.
Clear player’s inventory, give them 9 diamond swords, enchant the item, clear all diamond swords that do not have the enchantment.
How do I give players already enchanted Tools/Armour/Weapons
I’m making a map where I want players to be able to choose there kits/classes. The problem I’m having with it though is giving players already enchanted Tools/Armour/Weapons.
I’m not sure if you can use the /give [player] [item] [amount] because you’ll have to use the whole <> thing and I’m not sure how to make enchanted Tools/Armour/Weapons using that.
Can anyone help?
2 Answers 2
This answer is for 1.12 or before. Refer to this answer by pppery for 1.13 and later.
You can set up some simple commands with command blocks, and let players click the button of each command block so that they receive the enchanted items.
You can use the following command to give players enchanted items (in this example, 1 diamond sword with Smite 2 and Knockback 30)
This is the general command:
You can also add in the clear inventory command to ensure they don’t get kits twice.
Remember the highest level for the enchantment is level 32767. You can stack enchants as many times as you want such as:
After setting up the command blocks, put buttons and the players can choose by clicking them.
You can also put enchantments onto things that normally cannot be enchanted or have that specific enchantment. For example, you can do the command stated above to give you enchanted blocks. But, enchantments will NOT affect how the thing works normally. For example, enchanting Thorns on a dirt block will not hurt players when they come into contact with the enchanted block.
Minecraft Forums
How to give players enchanted items?
In a PvP map I’m making, I want players to be given an enchanted stick. The stick is suppose to have Knockback I ans Sharpness II. Is there a way I can do this with the use of command blocks?
NOTE: I made the stick in the image bellow.
EDIT: I summoned a Iron Golem before taking the snapshot.
Check out my website Here ! Website is down until further notice.
In a PvP map I’m making, I want players to be given an enchanted stick. The stick is suppose to have Knockback I ans Sharpness II. Is there a way I can do this with the use of command blocks?
NOTE: I made the stick in the image bellow.
The «ench» tag holds enchantments. Note that the IDs will soon be changed to alphabetical, so the following would have to be updated once that occurs:
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there’s a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
The «ench» tag holds enchantments. Note that the IDs will soon be changed to alphabetical, so the following would have to be updated once that occurs:
Check out my website Here ! Website is down until further notice.
0 Protection
1 Fire Protection
2 Feather Falling
3 Blast Protection
4 Projectile Protection
5 Respiration
6 Aqua Affinity
7 Thorns
16 Sharpness
17 Smite
18 Bane Of Arthropods
19 Knockback
20 Fire Aspect
21 Looting
32 Efficiency
33 Silk Touch
34 Unbreaking
35 Fortune
48 Power
49 Punch
50 Flame
51 Infinity
0 Protection
1 Fire Protection
2 Feather Falling
3 Blast Protection
4 Projectile Protection
5 Respiration
6 Aqua Affinity
7 Thorns
16 Sharpness
17 Smite
18 Bane Of Arthropods
19 Knockback
20 Fire Aspect
21 Looting
32 Efficiency
33 Silk Touch
34 Unbreaking
35 Fortune
48 Power
49 Punch
50 Flame
51 Infinity
Wow! Thanks for the list. Now I can convert the IDs to ABC form.
EDIT: I tried to use the word IDs but it only gives me Protection.
Check out my website Here ! Website is down until further notice.
Wow! Thanks for the list. Now I can convert the IDs to ABC form.
EDIT: I tried to use the word IDs but it only gives me Protection.
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there’s a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Those are a copy of numerical IDs, not the alphabetical IDs. The alphabetical IDs are not yet implemented into NBT data, even in 1.8. A future 1.8 snapshot may implement them. /enchant has the list of alphabetical IDs, but are converted back to numerical in terms of NBT data, so you cannot use alphabetical enchantment (nor potion) IDs yet in /give or the like. The following is the list of what they would be:
Check out my website Here ! Website is down until further notice.
Commands/give
Gives an item to one or more players.
Contents
Syntax [ ]
[amount: int] [data: int] [components: json]
Arguments [ ]
Specifies the item to give. In Java Edition, it must be in form of item_id
Specifies the item data value of the given item(s). Values that are invalid for the specified item id revert to 0. If not specified, defaults to 0. Must be a 32-bit integer number. It should be between 0 and 32767 (inclusive).
Result [ ]
Command | Trigger | Java Edition | Bedrock Edition |
---|---|---|---|
any | the arguments are not specified correctly | Unparseable | Unparseable |
player: target is not of player type | N/A | Failed | |
amount: int is not between 1 and 32767 | |||
data: int is not between 0 and 32767 | |||
or player: target fails to resolve to one or more online players | Failed | ||
or itemName: item is an ungivable item | |||
is larger than 100 stack worth items | N/A | ||
On success | Gives the specified item(s) to the target(s) |
Use Command Block to Give an Enchanted Diamond Sword
This Minecraft tutorial explains how to program a command block to give a player an enchanted diamond sword in Minecraft with screenshots and step-by-step instructions.
Let’s explore how to do this.
Supported Platforms
This command block program is available in the following versions of Minecraft:
Platform | Supported (Version*) |
---|---|
| Yes (1.8) |
| No |
| No |
| No |
| No |
| No |
| No |
| No |
| No |
| No |
* 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.
Required Materials
In Minecraft, these are the required materials to use a command block:
Program the Command Block
First, you need to program the command block to give an enchanted diamond sword with the /give command. This /give command will be run each time the command block is activated.
So, stand in front of the command block with your pointer (the plus sign) on the command block and click on the right mouse button.
This will bring up the programming console for the command block.
Now, type your command in the «Console Command» text box. The following command(s) will give a diamond sword to the nearest player that is enchanted with Sharpness V, Knockback II, Fire Aspect II, Looting III, and Unbreaking III. We use the give command to customize the diamond sword.
Command in Minecraft Java Edition (PC/Mac)
Command in Minecraft Java Edition (PC/Mac) 1.13 (also includes the Mending and Sweeping Edge III enchantments):
Command in Minecraft Java Edition (PC/Mac) 1.9, 1.10, 1.11 and 1.12 (also includes the Mending enchantment):
Command in Minecraft Java Edition (PC/Mac) 1.8:
Command in Minecraft Pocket Edition (PE)
This complex command is not yet possible in Minecraft Pocket Edition (PE), but will be available in a future release of the game. We will post the command here once it is possible to do in Minecraft PE.
Command in Minecraft Windows 10 Edition
This complex command is not yet possible in Minecraft Windows 10 Edition, but will be available in a future release of the game. We will post the command here once it is possible to do in Minecraft Windows 10 Edition.
Command in Minecraft Education Edition
This complex command is not yet possible in Minecraft Education Edition, but will be available in a future release of the game. We will post the command here once it is possible to do in Minecraft Education Edition.
In this example, we have entered the Minecraft Java Edition (PC/Mac) 1.8 command.
When you are finished entering the command, click on the Done button.
Activate the Command Block
Now, activate the command block with the redstone device such as a lever, button, or pressure plate. In this example, we are going to use a lever to activate the command block.
When a player pulls the lever, the command block will be activated.
Now you will see the closest player (which is you) get an enchanted diamond sword.
To see the enchantments on your new sword, open your inventory by pressing the E key.
Now you can see that the diamond sword is enchanted with Sharpness V, Knockback II, Fire Aspect II, Looting III, and Unbreaking III.
Congratulations, you have learned how to program a command block to give a player an enchanted diamond sword.
Command Block Programs
Here are some command block programs that you can try:
Источники информации:
- http://gaming.stackexchange.com/questions/191554/how-do-i-give-players-already-enchanted-tools-armour-weapons
- http://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/2154825-how-to-give-players-enchanted-items
- http://minecraft.fandom.com/wiki/Commands/give
- http://www.digminecraft.com/command_blocks/enchanted_diamond_sword.php