Published Dec 21st, 2012, 12/21/12 10:06 am
- 98,258 views, 0 today
- 10
- 3
- 11
5
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)
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 |
1735455
6
Create an account or sign in to comment.
/give @p <name of item> <# of items> 0 {ench:[{id:#,lvl:1-32767}]}
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.