7

How to make command blocks give enchanted items!

Collectable
  • 34,238
    Views, 122 today

Get Embed Code

Forum:
HTML:
Link:
avatar
Jackeroo
Level 40 : Master Creeper Hugger
People often complain that you can't give an item with a command block with an enchantment in it.

But there is a way.

Right, make a command block to give you the item that you want to enchant, so /give @<p,r,a> <item>
Then send more redstone to another command block with the enchant command:
/enchant @<p,r,a> <enchantment ID> <enchantment power>

BEWARE: It only enchants the item your holding.

An enchantment ID Is another name for an enchantment but the name is turned into an number. ID's are used for commands. You can't give people items with a command by the name ONLY the ID.

Well what are the enchantment ID's?

[ID] [type]
0 = protection
1 = Fire protection
2 = feather falling
3 = blast protection
4 = projectile protection
5 = respiration
6 = aqua affinity
7 = thorns
34 = unbreaking
16 = sharpness
17 = smite
18 = bane of athropods
19 = knockback
20 = fire aspect
21 = looting
34 = unbreaking
32 = efficiency
33 = silk touch
34 = unbreaking
35 = fortune
48 = power
49 = punch
50 = flame
51 = infinity

Have fun with your adventure map! (if your making one)
Tags:Tutorial

Comments : 8

Join us to post comments.

Show Comments

1 - 8 of 8

  • Rhombic
  • Level 1
  • New Miner
  • January 15, 2015, 4:00 pm
In Single Player, with cheats turned on, I make a command block with a stone button on the front for a player to push.  The command block gives the player an item.  For my enchanted Items I use this:

Give Looting III Enchantment Book:
/give @p minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:21,lvl:3}]}


Give Diamond Sword with Looting III Enchantment:
/give @p minecraft:diamond_sword 1 0 {ench:[{id:21,lvl:3}]}


Give Diamond Sword with Looting III and Fire Aspect III Enchantment:
/give @p minecraft:diamond_sword 1 0 {ench:[{id:21,lvl:3},{id:20,lvl:3}]}

You will notice the book uses "StoredEnchantments" while the item uses "ench"

I use several command blocks to give plain items, or to enchant the item in the player's hand:
/enchant @p silk_touch
which will enchant the item that the player is holding with Silk Touch.
Edit Reply Delete
YES! I'm making a map :P
Edit Reply Delete
  • Sunrisebear
  • Level 26
  • Expert Engineer
  • July 2, 2014, 6:08 am
Thanks, I needed a lightsaber in my adventure-map
Edit Reply Delete
  • Sunrisebear
  • Level 26
  • Expert Engineer
  • July 2, 2014, 6:10 am
i want data tags
Edit Reply Delete
  • TiiMMYz
  • Level 2
  • Apprentice Miner
  • May 28, 2013, 12:53 pm
Hey, just wondering. Is there a way to set the focus on the hotbar? As if you give the player, say... a bow, and the player has their hotbar set on number 7, the item wont be enchanted...
Edit Reply Delete
  • 4supervic4
  • Level 6
  • Apprentice Engineer
  • May 12, 2013, 1:43 am
change your title because it doesno t give you an enchanted item! you have to do it yourself
Edit Reply Delete
  • SonicAgent
  • Level 5
  • Apprentice Dragon
  • April 8, 2013, 9:35 pm
Dude, you are a LEGEND!!!
Edit Reply Delete
  • FxEvolution
  • Level 6
  • Apprentice Miner
  • March 15, 2013, 10:37 pm
Thx Man!
Edit Reply Delete

1 - 8 of 8

Show Comments