Skip to content

@minecraft/server


@minecraft/server / RandomDifficultyChanceCondition

Class: RandomDifficultyChanceCondition ​

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

Loot item condition that applies given values to the chances that loot will drop based on the current difficulty level.

Extends ​

Properties ​

chances ​

readonly chances: number[]

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

Remarks ​

A four-element array containing the chance of a loot drop occurring for each difficulty level, in order: Peaceful, Easy, Normal, Hard.