I thought I'd make a guide to enchanting for SK89Q's CommandBook plugin. The reason you would need such a guide is because the names for enchantments are different than you'd expect. For example, the efficiency enchantment is DIG_SPEED instead of just efficiency.
The guide is below. Save it in Notepad or TextEdit for quick access!
Commandbook lets you add enchantments to items! You can add an enchantment by putting a vertical bar (|) after the item and damage value. After putting in one enchantment, you can put a colon (:) after it and put the enchantment level.
Example:
/i item:damagevalue|enchantment1:level quantity
But what if you want to do multiple enchantments? Just separate enchantments with a comma (,), like this:
The above command would give you one diamond pickaxe with a damage value of 500000 (That basically makes it so that it will never break) and 2 enchantments of your choice. Below is an example of some real enchantments:
Keep in mind that you can only give enchantments to things that are normally enchantable (No uber pumpkin helmets, sadly) and you can't go above the max enchantment level for each enchantment.
Well...
This is not really necessary since you will get a list with enchancements when doing /enchant or /enchant list.
But good though
very necessary, command book is a copy-cat for essentials, essentials has the /enchant. So if you don't have essentials then you can't do /enchant. I find this very useful.
The guide is below. Save it in Notepad or TextEdit for quick access!
Commandbook lets you add enchantments to items! You can add an enchantment by putting a vertical bar (|) after the item and damage value. After putting in one enchantment, you can put a colon (:) after it and put the enchantment level.
Example:
/i item:damagevalue|enchantment1:level quantity
But what if you want to do multiple enchantments? Just separate enchantments with a comma (,), like this:
/i diamondpickaxe:500000|enchantment1:level,enchantment2:level,etc 1
The above command would give you one diamond pickaxe with a damage value of 500000 (That basically makes it so that it will never break) and 2 enchantments of your choice. Below is an example of some real enchantments:
/i diamondpickaxe:500000|dig_speed:5,loot_bonus_blocks:3 1
That would give you one unbreakable diamond pickaxe with efficiency 5, and fortune 3.
Now that you know how to enchant items, here are all of the enchantment names:
*These are all pulled from Bukkit's code
BOW ENCHANTMENTS:
Power = ARROW_DAMAGE (Max lvl: 5)
Infinity = ARROW_INFINITE (Max lvl: 1)
Flame = ARROW_FIRE (Max lvl: 1)
Punch = ARROW_KNOCKBACK (Max lvl: 2)
TOOL ENCHANTMENTS:
Efficiency = DIG_SPEED (Max lvl: 5)
Silk Touch = SILK_TOUCH (Max lvl: 1)
Unbreaking = DURABILITY (Max lvl: 3)
Fortune = LOOT_BONUS_BLOCKS (Max lvl: 3)
WEAPON ENCHANTMENTS:
Fire Aspect = FIRE_ASPECT (Max lvl: 2)
Smite = DAMAGE_UNDEAD (Max lvl: 5)
Bane of Arthropods = DAMAGE_ARTHROPODS (Max lvl: 5)
Sharpness = DAMAGE_ALL (Max lvl: 5)
Knockback = KNOCKBACK (Max lvl: 2)
Looting = LOOT_BONUS_MOBS (Max lvl: 3)
ARMOR ENCHANTMENTS:
Protection = PROTECTION_ENVIRONMENTAL (Max lvl: 4)
Fire Protection = PROTECTION_FIRE (Max lvl: 4)
Feather Falling = PROTECTION_FALL (Max lvl: 4)
Blast Protection = PROTECTION_EXPLOSIVES (Max lvl: 4)
Projectile Protection = PROTECTION_PROJECTILE (Max lvl: 4)
HELMET-ONLY ARMOR ENCHANTMENTS:
Respiration = OXYGEN (Max lvl: 3)
Aqua Affinity = WATER_WORKER (Max lvl: 1)
BOOTS-ONLY ARMOR ENCHANTMENTS:
Feather Falling = PROTECTION_FALL (Max lvl: 4)
Keep in mind that you can only give enchantments to things that are normally enchantable (No uber pumpkin helmets, sadly) and you can't go above the max enchantment level for each enchantment.
This is not really necessary since you will get a list with enchancements when doing /enchant or /enchant list.
But good though
very necessary, command book is a copy-cat for essentials, essentials has the /enchant. So if you don't have essentials then you can't do /enchant. I find this very useful.