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
is duplicated by 2
relates to 1
Attachments
Comments 3
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.
Steps to reproduce:
Put an iron sword (unenchanted) in Slot 0 of the hotbar
Select hotbar slot 0
Execute
The held item is still the unenchated iron sword whereas in hotbar slot 0 is the enchated iron sword
Switching hotbar slots fixes this.