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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 21w10a, 21w14a, 1.17 Release Candidate 1
    • Fix Version/s: 1.17.1 Pre-release 1
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Networking
    • Mojang Priority:
      Normal

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                CHK: