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

Class: SetSpawnEggFunction

Beta

为掉落的刷怪蛋分配实体类型的战利品物品函数。不适用于除刷怪蛋外的任何物品。

Loot item function that assigns an entity type to a dropped spawn egg. Does not work on any items other than spawn eggs.

Extends

Properties

conditions

readonly conditions: LootItemCondition[]

Beta

Inherited from

LootItemFunction.conditions


id

readonly id: string

Beta

Remarks

分配给掉落刷怪蛋的实体。

The entity to be assigned to the dropped egg.