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

The "/item" command cannot remove items within chiseled bookshelves


    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w31a
    • 1.19.4 Pre-release 1, 1.19.4
    • None
    • Confirmed
    • Commands
    • Normal
    • Expansion A

      How to reproduce:

      1. Place a chiseled bookshelf
      2. add a book to the first slot (top left)
      3. standing on top of the block, execute 
        /item replace block ~ ~-1 ~ container.0 with air

      -> the book will not be removed

      Removing an item like this works for every single other block entity container in the game (except for jukeboxes, also being affected by this since being made a container block entity).

      Possible fix: Update the if clause in the setItem method in ChiseledBookShelfBlockEntity to allow empty items

            billy.sjoberg [Mojang] Billy Sjöberg
            KennyTV Nassim Jahnke
            6 Vote for this issue
            5 Start watching this issue