@minecraft/server / LootTable
Class: LootTable ​
Defined in: @minecraft/server/index.d.ts:15903
Represents a single Loot Table, which determines what items are generated when killing a mob, breaking a block, filling a container, and more.
Properties ​
path ​
readonlypath:string
Defined in: @minecraft/server/index.d.ts:15912
Remarks ​
Returns the path to the JSON file that represents this loot table. Does not include file extension, or 'loot_tables/' folder prefix. Example: entities/creeper.
pools ​
readonlypools:LootPool[]
Defined in: @minecraft/server/index.d.ts:15918
Remarks ​
Returns the array of loot pools on a given loot table.