Loot item function that applies a random enchant to the dropped item using the same algorithm used while enchanting equipment vanilla mobs spawn with.
export class EnchantRandomEquipmentFunction extends LootItemFunction { private constructor(); readonly chance: number;} Copy
export class EnchantRandomEquipmentFunction extends LootItemFunction { private constructor(); readonly chance: number;}
Private
Readonly
Value that determines the likelihood of equipment being enchanted.
This property can't be read in early-execution mode.
Loot item function that applies a random enchant to the dropped item using the same algorithm used while enchanting equipment vanilla mobs spawn with.
Source