-
Bug
-
Resolution: Duplicate
-
None
-
1.21
-
Unconfirmed
-
(Unassigned)
When removing an allay's item using any commands on about the same tick it gets it, including /data and /item, the allay holds a ghost item.
Reproduction
1. Summon an allay.
2. Input this command into an always active repeating command block:
execute as @e[type=allay] run data remove entity @s HandItems[0]
3. Give the allay an item.
Observed Behavior
Once reproduced, the item does not appear anywhere when using "/data get", and cannot be retrieved using "/item ... from entity @e[type=allay,limit=1] weapon.mainhand", yet appears in the allay's hands and can be retrieved. If retrieved in survival or adventure mode, the item is a ghost item, and disappears as soon as it's selected by the cursor.
Expected Behavior
The command block should successfully fully remove the item, and it should not appear visually or be able to be retrieved, as it should be completely gone.
- duplicates
-
MC-197737 Mobs summoned by the player with equipment continue to render the item if it's removed via command in the same tick
- Open