Skip to content

@minecraft/server


@minecraft/server / EnchantRandomEquipmentFunction

Class: EnchantRandomEquipmentFunction ​

Defined in: @minecraft/server/index.d.ts:8382

Loot item function that applies a random enchant to the dropped item using the same algorithm used while enchanting equipment vanilla mobs spawn with.

Extends ​

Properties ​

chance ​

readonly chance: number

Defined in: @minecraft/server/index.d.ts:8390

Remarks ​

Value that determines the likelihood of equipment being enchanted.


conditions ​

readonly conditions: LootItemCondition[]

Defined in: @minecraft/server/index.d.ts:15793

Inherited from ​

LootItemFunction.conditions