Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts

    Class in @minecraft/server

    import { LootTableManager } from '@minecraft/server';
    protected constructor();
    generateLootFromBlock(block: Block, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    block
    Block
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    generateLootFromBlockPermutation(blockPermutation: BlockPermutation, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    blockPermutation
    BlockPermutation
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    generateLootFromBlockType(scriptBlockType: BlockType, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    scriptBlockType
    BlockType
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    generateLootFromEntity(entity: Entity, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    entity
    Entity
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    generateLootFromEntityType(entityType: EntityType, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    entityType
    EntityType
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    generateLootFromTable(lootTable: LootTable, tool?: ItemStack): ItemStack[] | undefined;
    Parameters
    lootTable
    LootTable
    tooloptional
    ItemStack
    Returns
    ItemStack[] | undefined
    getLootTable(path: string): LootTable | undefined;
    Parameters
    path
    string
    Returns
    LootTable | undefined

    World.getLootTableManager