Skip to content

@minecraft/server


@minecraft/server / RandomBlockStateFunction

Class: RandomBlockStateFunction ​

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

Loot item function that randomly modifies the block state of the item dropped.

Extends ​

Properties ​

blockState ​

readonly blockState: string

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


conditions ​

readonly conditions: LootItemCondition[]

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

Inherited from ​

LootItemFunction.conditions


values ​

readonly values: NumberRange

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

Remarks ​

The range from which the function randomly chooses the value to assign to the given block state. Contains minimum and maximum values.