Skip to content

@minecraft/server


@minecraft/server / SetSpawnEggFunction

Class: SetSpawnEggFunction ​

Defined in: @minecraft/server/index.d.ts:19827

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[]

Defined in: @minecraft/server/index.d.ts:15793

Inherited from ​

LootItemFunction.conditions


id ​

readonly id: string

Defined in: @minecraft/server/index.d.ts:19834

Remarks ​

The entity to be assigned to the dropped egg.