Loot item function that modifies the data value of the item dropped.
export class SetItemDataFunction extends LootItemFunction { private constructor(); readonly data: minecraftcommon.NumberRange;} Copy
export class SetItemDataFunction extends LootItemFunction { private constructor(); readonly data: minecraftcommon.NumberRange;}
Private
Readonly
The value range from which the function randomly chooses the data value to assign. Contains minimum and maximum values.
This property can't be read in early-execution mode.
Loot item function that modifies the data value of the item dropped.
Source