mojira.dev
MC-30344

Giving players enchanted item using command block does not work

When using a command block I put in the command
/give @p 276 1 0 {ench:[id:17,lvl:4]}

This should have given the nearest player a 1 undamaged diamond sword with Smite IV. Instead, the play gets a diamond sword that has the enchanted graphic. However, it has no tool tip displaying the enchantment, when a zombie (or any other undead) is attacked, the enchantment hurt particles and the effect do not work.

Comments 1

It should be:

/give @p 276 1 0 {ench:[0:{id:17,lvl:4}]}

Xavier Hodgson

(Unassigned)

Unconfirmed

Minecraft 13w36b

Retrieved