Skip to content

模型动画与集成 ​

用状态切换连接其他模型或技能系统。

📷 效果展示 ​

使用方法 ​

animations.states 支持 idle、walk、fly,配置 mythic_skill、commands 或 handler。默认示例这些集成动作为空;需要自行填实际模型插件的接口。movement_threshold 与 teleport_threshold 区分运动和传送。

配置项说明 ​

Pets/厉不厉害你鸡哥.yml ​

animations ​

参数示例用途
enabledtruetrue 启用;false 关闭该功能或条目。
movement_threshold0.02每 Tick 位移达到此值才算移动,单位:方块
teleport_threshold4.0单 Tick 超过此距离视为传送,不触发 WALK
airborne_ticks3非骑乘状态连续离地多少 Tick 后进入 FLY

animations.states.idle ​

参数示例用途
animationidle传给事件/API 处理器的动画名称
mythic_skill""可填 MythicMobs 技能名,例如 ChickenModelIdle
commands[]可用控制台命令调用模型插件,命令不要以 / 开头
handler""其它插件通过 API 注册的处理器 ID

animations.states.walk ​

参数示例用途
commands[]命令占位符:{player} {player_uuid} {pet_uuid} {pet_id} {entity_uuid} {state} {animation} 下面只是写法示意,请按你使用的模型插件命令填写: commands: ["你的模型插件 model {entity_uuid} {model}", "你的模型插件 animation {entity_uuid} {animation}"]

animations.states.fly ​

参数示例用途
mythic_skill""阶段变量也能用于技能名,例如每个等级模型分别调用 chicken_juvenile_fly 等技能。

animations.states.idle.parameters:原样传给自定义处理器的额外参数

yaml
parameters: {}

返回功能教程 · 命令与权限