@occultus/hidden-years - v3.1.0-alpha.4
    Preparing search index...
    type EggBlockParams = {
        chance?: number;
        max_growth: number;
        particle?: string;
        spawn_entity: string;
        spawn_event?: string;
    }
    Index

    Properties

    chance?: number

    方块收到minecraft:tick组件的 onTick 事件时,将生长状态转换为下一状态的概率

    默认为1.0

    max_growth: number

    蛋方块从初始状态到最后状态共需经历多少个阶段

    这一数值应该和starock:growth方块状态的数值数目保持一致

    // components
    "hiddenyears:egg_block": {
    "steps": 3
    }
    // description
    "states": {
    "starock:growth": [0, 1, 2]
    }
    particle?: string
    spawn_entity: string

    孵化完成后生成的实体

    spawn_event?: string

    生成实体时被调用的实体事件