Skip to content

@minecraft/server


@minecraft/server / LootPoolTiers

Class: LootPoolTiers ​

Defined in: @minecraft/server/index.d.ts:15869

Represents the values which determine loot drops in a tiered loot pool. Potential drops from tiered loot pools are ordered, and chosen via logic controlled by the values in this object.

Properties ​

bonusChance ​

readonly bonusChance: number

Defined in: @minecraft/server/index.d.ts:15877

Remarks ​

The chance for each bonus roll attempt to upgrade the tier of the dropped item.


bonusRolls ​

readonly bonusRolls: number

Defined in: @minecraft/server/index.d.ts:15885

Remarks ​

The number of attempts for the loot drop to upgrade its tier, thereby incrementing its position in the loot pool entry array, resulting in a higher tier drop.


initialRange ​

readonly initialRange: number

Defined in: @minecraft/server/index.d.ts:15895

Remarks ​

Represents the upper bound for the starting point in determining which tier of loot to drop. The lower bound is always 1. For example, a value of 3 would result in the tier drop logic starting at a randomly selected position in the loot pool entry array between 1 and 3.