@minecraft/server
    Preparing search index...

    Class EnchantRandomlyFunctionBeta

    Loot item function that randomly enchants the dropped item.

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    conditions: LootItemCondition[]
    treasure: boolean

    Determines whether or not treasure enchantments are included in the randomly chosen enchantments.