编辑

Block Components Documentation - minecraft:loot

Specifies the path to the loot table that determines what items are dropped when the block is destroyed. The path is relative to the behavior pack's root folder (e.g., 'loot_tables/blocks/my_block.json'). Path string is limited to 256 characters. If this component is omitted, the block drops itself.

Alternate Simple Representations

This item can also be represented as a String.

Samples

Block Fabricator

"minecraft:loot": "loot_tables/mikeamm/gray_wave/fabricator.loot.json"

Block Gray Ore

"minecraft:loot": "loot_tables/mikeamm/gray_wave/gray_ore.loot.json"

Block Orange Ore

"minecraft:loot": "loot_tables/blocks/orange_ore.json"

Apple Block

"minecraft:loot": "loot_tables/blocks/apple_block.json"