h1z1-server
    Preparing search index...

    Interface LootTableEntry

    interface LootTableEntry {
        count?: { max: number; min: number };
        functions?: ItemFunction[];
        item?: number;
        table?: string;
        type?: "item" | "loot_table" | "empty";
        weight: number;
    }
    Index

    Properties

    count?: { max: number; min: number }
    functions?: ItemFunction[]

    Functions applied to the spawned item after generation.

    item?: number

    Item definition ID. Used when type is "item" or absent.

    table?: string

    Name of another loot table to draw from. Used when type is "loot_table".

    type?: "item" | "loot_table" | "empty"

    Determines how this entry is resolved.

    • "item": spawns a specific item (default when omitted).
    • "loot_table": draws a random item from another named loot table.
    • "empty": produces nothing (useful as a weighted no-spawn slot).
    weight: number