mojira.dev
MC-59144

A held item replaced by the same kind of item by replaceitem does not visual update

Look at the picture. In my hotbar is an echanted sword, on the side of the screen is a normal iron sword.

Command used:

/execute @e[type=Creeper] ~ ~ ~ replaceitem entity @p[r=10,score_stingSlot_min=0,score_stingSlot=0] slot.container.0 iron_sword 1 0 {display:{Name:Sting},ench:[{id:3,lvl:1}]}

Also it would be nice to have a replace all items of a kind function (without slot). Suggestions on reddit, I know, bla..Is not going to be upvoted anyway..

Linked issues

Attachments

Comments 3

Steps to reproduce:

  • Put an iron sword (unenchanted) in Slot 0 of the hotbar

  • Select hotbar slot 0

  • Execute

    replaceitem entity @p slot.hotbar.0 iron_sword 1 0 {display:{Name:Sting},ench:[{id:3,lvl:1}]}
  • The held item is still the unenchated iron sword whereas in hotbar slot 0 is the enchated iron sword

Switching hotbar slots fixes this.

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.

EscoreFairplay

(Unassigned)

Confirmed

enchanted, enchantement, hotbar, replaceitem

Minecraft 14w26b, Minecraft 14w26c, Minecraft 14w27b, Minecraft 14w28a, Minecraft 14w28b

Minecraft 16w42a

Retrieved