@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 ​
readonlyconditions:LootItemCondition[]
Defined in: @minecraft/server/index.d.ts:15793
Inherited from ​
id ​
readonlyid:string
Defined in: @minecraft/server/index.d.ts:19834
Remarks ​
The entity to be assigned to the dropped egg.