Skip to content

@minecraft/server


@minecraft/server / EnchantRandomlyFunction

Class: EnchantRandomlyFunction ​

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

Loot item function that randomly enchants the dropped item.

Extends ​

Properties ​

conditions ​

readonly conditions: LootItemCondition[]

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

Inherited from ​

LootItemFunction.conditions


treasure ​

readonly treasure: boolean

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

Remarks ​

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