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

    Class EnchantRandomlyFunction

    Loot item function that randomly enchants the dropped item.

    export class EnchantRandomlyFunction extends LootItemFunction {
    private constructor();
    readonly treasure: boolean;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    conditions: LootItemCondition[]
    treasure: boolean

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

    This property can't be read in early-execution mode.