@minecraft/server
    Preparing search index...

    Class SetItemDataFunctionBeta

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

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    conditions: LootItemCondition[]
    data: NumberRange

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