Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to Give Enchanted Items through Command Blocks

  • Please log in to reply
30 replies to this topic



Posted 21 November 2012 - 11:09 PM

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!

A video tutorial - (Please support my channel by subscribing :D)

I hope this helps!
Posted Image

Register or log in to remove.



Posted 21 November 2012 - 11:52 PM

Hope this helped
Posted Image



Posted 22 November 2012 - 01:36 AM

This was very helpful thank you


  • Location: Bedrock Level

Posted 22 November 2012 - 01:39 AM

Thank you ~



Posted 22 November 2012 - 10:43 PM

No problem :)
Posted Image



    Diamond Miner

  • Members
  • 715 posts
  • Location: block height: 259
  • Minecraft: XDaWNeDX

Posted 22 November 2012 - 10:53 PM

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.

Posted Image



Posted 24 November 2012 - 05:45 AM

Yes i realize that the enchantment is only applied to the item you are holding, so maybe dinnerbone will fix that
Posted Image



Posted 24 November 2012 - 06:46 AM

Nicely put together schematic. I like this.
Posted Image
Why, yes, I am a brony.



Posted 25 November 2012 - 08:36 PM

View PostMrEpicOne, on 24 November 2012 - 06:46 AM, said:

Nicely put together schematic. I like this.
Thanks i hope it helps when u make a custom map or something
Posted Image


  • Location: The SOL

Posted 25 November 2012 - 10:26 PM

Too bad protection doesn't work since its ID is 0.

Posted Image
^Not many of these potions can actually be made in vanilla Minecraft! Support the missing potions today! ^



Posted 26 November 2012 - 01:36 AM

Does this work with Bukkit and about 32 plugins installed?
Posted Image
Why, yes, I am a brony.


  • Minecraft: ElephantBroham

Posted 26 November 2012 - 01:44 AM




Posted 26 November 2012 - 05:32 AM

View PostGerbilCrab475, on 25 November 2012 - 10:26 PM, said:

Too bad protection doesn't work since its ID is 0.
Actually it does
command - /enchant @p 0

View PostMrEpicOne, on 26 November 2012 - 01:36 AM, said:

Does this work with Bukkit and about 32 plugins installed?
Yea, plugins dont matter this is default minecraft so Singleplayer or Multiplayer works no matter what
Posted Image



Posted 28 November 2012 - 08:32 AM

Example - Sharpness is 16
Posted Image



    Blaze Extinguisher

  • Members
  • 4850 posts
  • Location: I could probably put an overused/bad joke here, but instead I put this when I should be telling the world my location.
  • Minecraft: Giygas924

Posted 28 November 2012 - 11:44 AM

Not useful to me, but good information nonetheless.

Posted ImageDid something happen to you in your childhood to give you this unreasonable fear of rutabaga?Posted Image‚Äč



Posted 10 February 2013 - 06:53 PM

how/can you enchant a iteam thats not armor or tool,wepond for example like a stone block
<click me



Posted 11 February 2013 - 11:24 PM

View Postpetercakethefire, on 10 February 2013 - 06:53 PM, said:

how/can you enchant a iteam thats not armor or tool,wepond for example like a stone block
system flaw. you can't.
Posted Image



Posted 17 February 2013 - 04:48 AM

I just did this an it worked fine: /give @p 278 1 efficiency:2 durability:2



Posted 26 March 2013 - 11:16 PM

I cant get the /enchant thing to work for multiplayer, i have the item in my hand (e.g. bow)
and when i click the lever it doesnt do anything, this is whats written into my command block:
enchant @p 48 2



    Redstone Miner

  • Members
  • 600 posts

Posted 26 March 2013 - 11:46 PM

They should change the enchant command to /enchant <player> <enchantment ID> [level] [inventory slot]
Posted Image
Imitation is the most basic form of flattery. And yes, there is a 50/50 chance you got it right.