Loot item function that assigns an entity type to a dropped spawn egg. Does not work on any items other than spawn eggs.
export class SetSpawnEggFunction extends LootItemFunction { private constructor(); readonly id: string;} Copy
export class SetSpawnEggFunction extends LootItemFunction { private constructor(); readonly id: string;}
Private
Readonly
The entity to be assigned to the dropped egg.
This property can't be read in early-execution mode.
Loot item function that assigns an entity type to a dropped spawn egg. Does not work on any items other than spawn eggs.
Source