mojira.dev
MC-2504

Enchant command cannot enchant with ID 0 (Protection)

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

Linked issues

Comments 15

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.

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

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

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

5 more comments

I also have this issue

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

This is a bad bug that really needs fixed.

Apparently fixed as of at least 1.4.6

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

shadowjay1

Nathan Adams

Confirmed

command, enchant

Minecraft 1.4.4, Minecraft 1.4.5

Snapshot 12w49a

Retrieved