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.
It should be: