Loot item function that applies a random enchant to the dropped item.

Hierarchy (View Summary)

Constructors

Properties

Constructors

Properties

conditions: LootItemCondition[]
levels: NumberRange

The value range from which the function randomly chooses the level of enchantment to apply. Contains minimum and maximum values.

treasure: boolean

Value that determines whether or not treasure enchants should be included in the random enchant selection.