@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 ​
readonlyconditions:LootItemCondition[]
Defined in: @minecraft/server/index.d.ts:15793
Inherited from ​
treasure ​
readonlytreasure:boolean
Defined in: @minecraft/server/index.d.ts:8405
Remarks ​
Determines whether or not treasure enchantments are included in the randomly chosen enchantments.