編集

LootPool Class

A collection of entries which individually determine loot drops. Can contain values determining drop outcomes, including rolls, bonus rolls and tiers.

Properties

bonusRolls

read-only bonusRolls: minecraftcommon.NumberRange;

Returns the number of extra times a loot pool will be rolled based on the player's luck level, represented as a range from minimum to maximum rolls.

Type: @minecraft/common.NumberRange

conditions

read-only conditions: LootItemCondition[];

Type: LootItemCondition[]

entries

read-only entries: LootPoolEntry[];

Gets a complete list of all loot pool entries contained in the loot pool.

Type: LootPoolEntry[]

rolls

read-only rolls: minecraftcommon.NumberRange;

Returns the number of times a loot pool will be rolled, represented as a range from minimum to maximum rolls.

Type: @minecraft/common.NumberRange

tiers

read-only tiers?: LootPoolTiers;

Gets the loot pool tier values for a given table if they exist.

Type: LootPoolTiers