Script API - v1.26.10
    Preparing search index...

    Class SetSpawnEggFunction

    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;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    Properties

    conditions: LootItemCondition[]
    id: string

    The entity to be assigned to the dropped egg.

    This property can't be read in early-execution mode.