mojira.dev
MC-202586

Unbreakable blocks do not have loot tables

These blocks cannot normally be broken in survival, which is a likely explanation for the absence of loot tables for these blocks. However, the /setblock command with "destroy" can be used to simulate a "legitimate" breaking of such blocks (as can be seen with the example shown of breaking a stone block to produce cobblestone). As no such loot tables exist for these blocks, mapmakers are limited as to what can be done with these blocks, as it may be desirable for a block to be completely unbreakable by players but yield an item when broken via command.

Confirmed to be affected:

  • minecraft:bedrock

  • minecraft:end_portal_frame

  • minecraft:end_portal

  • minecraft:end_gateway

  • minecraft:barrier

Untested, but likely also affected:

  • minecraft:command_block

  • minecraft:chain_command_block

  • minecraft:repeating_command_block

  • minecraft:structure_block

  • minecraft:jigsaw

Linked issues

Attachments

Comments

Avoma

Relates to MC-157395.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

migrated

Confirmed for 1.17.1; the untested ones are also affected.

Avoma

Can confirm in 1.18.1.

pulpetti

In 22w03a.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

migrated

Verified in 24w12a. Additionally, all variants of command blocks, jigsaw blocks, and structure blocks are impacted by this issue.

muzikbike

(Unassigned)

Confirmed

Platform

Low

Loot tables

missing-loot-table

1.16.3, 1.16.4 Pre-release 1, 21w03a, 21w05b, 21w06a, ..., 1.19.2, 1.20.1, 1.20.4, 24w12a, 24w37a

Retrieved