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

Class: LootingEnchantFunction

Beta

如果提供的工具具有抢夺附魔,则掉落额外物品的战利品物品函数。

Loot item function that drops extra items if the provided tool has the looting enchant.

Extends

Properties

conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


count

readonly count: NumberRange

Beta

Remarks

函数从中随机选择额外物品掉落数量的数值范围。包含最小值和最大值。

The value range from which the function randomly chooses the number of extra items to drop. Contains minimum and maximum values.