Script API - v1.26.10
    Preparing search index...

    Class SetItemDataFunction

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

    export class SetItemDataFunction extends LootItemFunction {
    private constructor();
    readonly data: minecraftcommon.NumberRange;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    conditions: LootItemCondition[]

    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.