[MC-2504] Enchant command cannot enchant with ID 0 (Protection) Created: 08/Nov/12  Updated: 09/Feb/13  Resolved: 06/Dec/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.4, Minecraft 1.4.5
Fix Version/s: Snapshot 12w49a

Type: Bug
Reporter: shadowjay1 Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 10
Labels: command, enchant

Issue Links:
Duplicate
is duplicated by MC-3440 The Protection enchantment from the e... Resolved
is duplicated by MC-3459 Adding the enchantment 'Protection' t... Resolved
is duplicated by MC-4143 /enchant <playername> 0 don't functio... Resolved
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

It seems that the /enchant command limits the minimum enchantment id to 1 instead of 0, which prevents enchanting with the Protection enchantment.



 Comments   
Comment by Anon Ymus [ 16/Jan/13 ]

We know. See the fixed version at the top of this page.

Comment by David Harmon [ 16/Jan/13 ]

Apparently fixed as of at least 1.4.6

Comment by GerbilCrab475 [ 24/Nov/12 ]

This is a bad bug that really needs fixed.

Comment by Julian Chan [ 21/Nov/12 ]

Confirmed. Annoying but bypass-able with an enchantment table and maybe an anvil.

Comment by Daniel G [ 19/Nov/12 ]

I also have this issue

Comment by David Harmon [ 18/Nov/12 ]

I just got bit by it while trying to research anvil details.

Comment by Tommy Stephens [ 18/Nov/12 ]

Confirmed and also really annoying. Preventing this map I'm trying to make from working.

Comment by Anton Sanarov [ 15/Nov/12 ]

Confirmed.

Comment by Anon Ymus [ 10/Nov/12 ]

Confirmed.

Comment by Twister [ 08/Nov/12 ]

I can confirm this.

Comment by DarkWolff [ 08/Nov/12 ]

Whoops! I had no idea and thought it was the SPC effect. Sorry about that.

Comment by Mustek [ 08/Nov/12 ]

@DarkWolff It's in vanilla now, if you type /help, it's there.
It's new since 1.4.4.

Comment by DarkWolff [ 08/Nov/12 ]

The enchant command is part of a mod, not vanilla.

Comment by shadowjay1 [ 08/Nov/12 ]
Comment by Tom Lee [ 08/Nov/12 ]

Currently, I'm not at home. Could someone test to see if any of these also fails?

  • Negative values.
  • Float values.
  • Double values.
  • Hexidecimal values.

I would love to test if letters would be valid or not, but seems like going above 32 is unlikely able to cause an error. It would also seemed that someone else had tested for large positive values, and they don't work. All is good.

Generated at Sun Jan 12 11:58:05 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.