mojira.dev
MC-118788

Shulker box generates loot from loot table when broken

The bug

Breaking a shulker box with a loot table causes it to generate the loot despite it not being opened.

How to reproduce

  1. Use the following command to place a shulker box with a loot table

    /setblock ~ ~ ~ white_shulker_box{LootTable:"chests/simple_dungeon"}
  2. Break the shulker box

  3. Pick up the shulker box item and hover over it

Comments 9

Confirmed for 1.13.1-pre1

Confirmed for 1.13.1

Are we sure this is unintentional?

Every container does this, it's not a bug.

I'd think this would be a bug if it didn't happen.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

This still happens in 1.20.1.

marcono1234

(Unassigned)

Confirmed

Loot tables

block-breaking, loot, loot-table, shulker_box

Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w05a, Minecraft 18w11a, Minecraft 1.13, ..., 21w06a, 21w08b, 1.20.1, 1.21.3, 24w45a

Retrieved