Skip to content

@minecraft/server


@minecraft/server / RandomAuxValueFunction

Class: RandomAuxValueFunction ​

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

Loot item function that randomly modifies the data value of the item dropped.

Extends ​

Properties ​

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:18856

Remarks ​

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