Skip to main content

drop_block_loot

Function drop_block_loot 

Source
fn drop_block_loot(
    player: &Player,
    world: &Arc<World>,
    pos: BlockPos,
    state: BlockStateId,
    tool: &ItemStack,
    block_entity: Option<&dyn BlockEntity>,
)
Expand description

Drops loot for a destroyed block using its loot table.