Skip to content

@minecraft/server


@minecraft/server / SetItemDataFunction

Class: SetItemDataFunction ​

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

Loot item function that 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


data ​

readonly data: NumberRange

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

Remarks ​

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