mojira.dev
MC-62485

When using an invalid enchantment ID, /enchant says "<text> is not a valid number".

Pretty much what the title says. When using /enchant, if an invalid enchantment name is used, it will say "<text> is not a valid number.", when it should be "<text> is not a valid enchantment id."

How to reproduce.

Perform the command '/enchant @p minecraft:randomtext' in-game.

Linked issues

Comments 5

This could be intentional, as enchantment IDs still support numbers.

This issue is invalid in 15w42a. Probably due to MC-89174 not being fixed.

It's not invalid, just fixed.

@unknown: It was fixed in a previous snapshot, I don't know which. But that isn't important, right?

It actually isn't possible for us to add fix versions that aren't available for use as affected versions, so 15w42a is as close as I could get. It also doesn't really matter what version it was fixed in, since it means the same thing to the developers—it is fixed already.

Ham Sammich

(Unassigned)

Confirmed

Minecraft 14w29b, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1

Minecraft 15w42a

Retrieved