Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274603

Removing an allay's held item with commands on the same tick it grabs it creates a ghost item.

XMLWordPrintable

    • Icon: Bug 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.

            Unassigned Unassigned
            LuckyMonkey1234 Weirdplop
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: