mojira.dev
MC-69387

The "/item" command cannot replace items within jukeboxes

The Bug:

The "/item" command cannot replace items within jukeboxes.

Steps to Reproduce:

  1. Place down a jukebox and stand on top of it.

  2. Replace the jukebox's "container.0" slot with stone by using the command provided below.

    /item replace block ~ ~-1 ~ container.0 with minecraft:stone
  3. Inspect the jukebox's block data by using the command provided below.

    /data get block ~ ~-1 ~
  4. Observe if the jukebox has anything within its "container.0" slot.

  5. Take note as to whether or not the "/item" command cannot replace items within jukeboxes.

Observed Behavior:

The "/item" command cannot replace items within jukeboxes.

Expected Behavior:

The "/item" command would be able to replace items within jukeboxes.

Attachments

Comments 20

WAI. A jukebox isn't a container because it has no GUI.

But isn't the definition of container, that it has the possibility to contain items?

it is a container, but jukeboxes are not yet supported by this command, can confirm

So is it a bug or not?

10 more comments

Like it was probably said from many mods before, Minecraft Wiki is not a official source from the developers, they are also people who collect what is known, I guess so then this line

Other blocks which hold items but don't have inventory GUIs (flower pots and jukeboxes) can only be changed with /blockdata.

Is only a realization!

Alright, maybe they will still add this feature eventually

The behavior of this problem has changed slightly ever since this report was initially created. In the current release and snapshot of the game, jukeboxes have a "container.0" slot, contrary to what this ticket was previously concerning. The problem here is that when attempting to change the "container.0" slot of a jukebox, the command claims to be successful, but in reality, it's unsuccessful. I've updated this ticket accordingly to reflect this new information.

That issue is included in MC-260485; why was this reopened? The design had changed since its WAI, and the problem described didn't apply anymore.

This should not have been reopened and MC-260485 should've been used instead

Fixed as part of fix for MC-260485 The "/item" command cannot remove items within chiseled bookshelves - Jira (mojang.com)

marcono1234

billysjoberg

Confirmed

Platform

Normal

Commands

/item, container, jukebox

Minecraft 1.8-pre1, Minecraft 1.8, 1.19.4, 1.20 Pre-release 7

23w31a

Retrieved