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

After a chest with the item component "container_loot" is opened, it will appear on the subsequent pick Block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w33a
    • 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21 Release Candidate 1, 1.21
    • None
    • Community Consensus
    • Block states
    • Important
    • Platform

      After the box of the "container_loot" item component is opened, use Ctrl+pick Block again, and the generated items will also have "container_loot"

      Unless you exit the world halfway

       

      How to reproduce:
      1.Use the command to get one box each

      /give @s chest[minecraft:block_entity_data={id:"",LootTable:"minecraft:chests/ancient_city"}]
      /give @s chest[minecraft:container_loot={loot_table:"minecraft:chests/ancient_city"}]

      2.place and open(Re-entering the world at this time will cancel this error)

      3. Use Ctrl+pick block on both boxes

      4. Place the box again and open it

      5."container_loot" chests generate loot again

      Expected behavior:
      minecraft:container_loot component's chest should have the same behavior as block_entity_data's LootTable

      What actually happened:
      minecraft:container_loot component's box generates loot again

       

      Note: Other containers are also affected

        1. 2024-05-30 19-57-01.mp4
          6.54 MB
          beebee
        2. 2024-05-30 20-24-08.mp4
          5.70 MB
          beebee
        3. image-2024-06-07-02-32-59-843.png
          1.04 MB
          BugTracker
        4. image-2024-06-07-02-33-25-218.png
          1.01 MB
          BugTracker

            TommyWallberg [Mojang] TommyWallberg
            Kirby46994 beebee
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: