mojira.dev
MC-272649

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

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

Linked issues

Attachments

Comments 1

Can confirm:

Chest:

[media]

Ctrl+pick:

[media]

Bee

Tommy Wallberg

Community Consensus

Platform

Important

Block states

1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21, 1.21 Release Candidate 1

24w33a

Retrieved