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

Jukebox duplicates music discs inserted with a higher stack count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.6
    • Minecraft Java edition 1.20.6, Tested on Linux, Macos and Windows
    • Unconfirmed
    • (Unassigned)

      When giving the player a music disc with a higher max stack count than default (1) eg. command: (/give @s minecraft:music_disc_13[minecraft:max_stack_size=99] 99) and then inserting the said music disc stack into the jukebox, it copies over the whole stack into the jukebox while only shrinking the stack size of the disc by one. When taking out the disc by right-clicking the jukebox, you duplicate the said stack.

      My proposed solution is calling{{ ItemStack.copyWithCount(1)}} instead of ItemStack.copy() }}in the RecordItem class in the useOn method when calling the {{setFirstItem method in JukeboxBlockEntity class. (mojmap)

      I have implemented this in a mod form, as I encountered this bug before but it was a none vanilla issue, with the new item component changes, this is an issue that can be run into in a vanilla environment so I felt the need to report this.

            Unassigned Unassigned
            Mayaqq Mayaqq
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: