Mojira Archive
MC-219018

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

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

Fixed

MMK21

[Mojang] Bartosz Bok

2021-03-11, 01:36 PM

2023-10-11, 07:09 PM

2021-06-09, 05:53 PM

9

7

Confirmed

Normal

Commands, Networking

item

21w10a, 21w14a, 1.17 Release Candidate 1

1.17.1 Pre-release 1