For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/EnchantRandomEquipmentFunction.md.

Class: EnchantRandomEquipmentFunction

Beta

战利品物品函数,使用与原版生物生成时附魔装备相同的算法,对掉落的物品应用随机附魔。

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

Beta

Remarks

决定装备被附魔的可能性的值。

Value that determines the likelihood of equipment being enchanted.


conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions