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

Ghost items can be created using /item (server doesn't update client inventory correctly)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.17.1 Pre-release 1
    • 21w10a, 21w14a, 1.17 Release Candidate 1
    • Confirmed
    • Commands, Networking
    • Normal

      Using /item to replace the item in a player's hotbar slot frequently creates ghost items. Right-clicking with a ghost item will still place a block, but it does not show up in the hotbar.

      This did not happen in 1.16.5.

      Steps to reproduce

      1. Set up a repeating command block with the following command:
        item replace entity @p hotbar.0 with dirt
        
      2. Drop the dirt block
        The slot will become empty, even though the /item command should refill it
      3. Press Q again while selecting the first slot
        You'll drop dirt, even though there's no dirt in that slot
      4. Right-click onto a block while selecting the first slot
        A dirt block gets placed

      Attachments

            boq [Mojang] Bartosz Bok
            MishMoshKeel21 MMK21
            Votes:
            9 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: