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/EnchantRandomlyFunction.md.

Class: EnchantRandomlyFunction

Beta

随机附魔掉落物品的战利品物品函数。

Loot item function that randomly enchants the dropped item.

Extends

Properties

conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


treasure

readonly treasure: boolean

Beta

Remarks

确定是否将宝藏附魔包含在随机选择的附魔中。

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