mojira.dev
MC-74505

/enchant can't be used on entities.

Steps to reproduce:
1. Spawn any mob that has a weapon.
2. /enchant @e[type=____] minecraft:_______ 1

May be intended but not sure.

Linked issues

Comments 8

Probably intended, since mobs don't have actual inventories, and /enchant is inventory based (it enchants the item currently selected).

Technically the sword or bow is selected for the mob.

Lucas Ignacio Morrison Osorio

Probably Works As Intended as you are not supposed to enchant other mobs' weapon enchantments. You can however have them spawn with enchanted weapons.

Will the enchantment be applied to the item in the left hand if LeftHanded is set to 1b?

I think it'll just select the main hand as the offhand isn't used by them anyway.
LeftHanded:1b sets the left hand as main hand

Confirmed the bug has been fixed. Thank you Searge 🙂

@unknown I think it is is only visually in which hand the items are rendered, so this is not a problem (tested it)

The HandItems lists main hand, then off hand, changing main hand to left sets off hand item to right, that's exactly what I meant

[Mod] Neko

michael

Unconfirmed

Minecraft 1.8, Minecraft 1.8.1-pre5, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.3, ..., Minecraft 15w51a, Minecraft 15w51b, Minecraft 16w02a, Minecraft 16w03a, Minecraft 16w04a

Minecraft 16w05a

Retrieved