
- 将 Blockbench 关键帧动画转换为用于 OptiFine CEM 模型的 EMF 表达式
- EMF Keyframe Exporter 将 Blockbench 关键帧动画转换为用于 OptiFine Custom Entity Models(自定义实体模型)的 Entity Model Features (EMF) 表达式。
功能特性
- 将位置、旋转和缩放的关键帧导出为 EMF 动画表达式。
- 保留线性(Linear)、阶梯(Step)、平滑(Catmull-Rom)和贝塞尔(Bézier)关键帧插值模式。
- 可选择通过带有可配置前缀的命名
var.* 变量导出轨道。
- 可选择通过命名
var.* 变量导出每个动画目标。
- 选择实体状态触发器,包括
is_riding、is_sitting 和 is_sprinting,或使用行走动画计时。
- 使用空闲(Idle)计时或检测到的
is_falling 触发器。
- 选择循环播放(Loop)、单次播放(Play Once)或停留在最后一帧(Hold on Last Frame)。
- 将多个 Blockbench 动画组合成随机选择的 EMF 动画变体。
- 将支持的数学表达式转换为 EMF 语法。
- 生成 EMF JSON 并将其应用到 Animation Editor 中的 CEM 组。
- 将生成的表达式追加到现有组的动画中,通过触发器合并匹配的目标。
- 当 body 组包含
this.rx: 0 时,自动为 Always、Walking 和 is_ 动画的 body.rx 添加 +90 度。
安装方法
- 下载资源包
- 解压它
- 将
.js 文件拖拽到 Blockbench
- 大功告成!尽情享用吧!
使用方法
打开一个 OptiFine Entity 项目,在 Animate 中创建或选择一个动画,然后打开 EMF Animation。选择一个触发器和播放模式,生成 EMF 代码,然后将其应用到所选组的动画数据以替换现有数据,或追加到现有数据中。
要创建变体,启用 Variated Animations,在选择器中选择两个或更多动画,然后点击 Generate Animation Variations。可选择主动画,并设置其他变体的几率和最小间隔。当触发器保持激活状态时,主动画会在每次几率判定前播放完整周期;选定的变体播放一次后,主动画恢复播放。
依赖要求
安装 CEM Template Loader 以使用 CEM Animation Editor 集成。

- Convert Blockbench keyframe animations into EMF expressions for OptiFine CEM models
- EMF Keyframe Exporter converts Blockbench keyframe animations into Entity Model Features (EMF) expressions for OptiFine Custom Entity Models.
Features
- Export position, rotation, and scale keyframes as EMF animation expressions.
- Preserve Linear, Step, Smooth (Catmull-Rom), and Bézier keyframe interpolation modes.
- Optionally export tracks through named var.* variables with a configurable prefix.
- Optionally export each animated target through a named var.* variable.
- Choose entity-state triggers, including is_riding, is_sitting, and is_sprinting, or use walking animation timing.
- Use Idle timing or the detected is_falling trigger.
- Select Loop, Play Once, or Hold on Last Frame playback.
- Combine multiple Blockbench animations into randomly selected EMF animation variations.
- Convert supported math expressions to EMF syntax.
- Generate EMF JSON and apply it to a CEM group in the Animation Editor.
- Append generated expressions to existing group animations, combining matching targets by trigger.
- Automatically add +90 degrees to body.rx for Always, Walking, and is_ animations when the body group contains this.rx: 0.
How to install
1 - Download the resource pack
2 - Unzip it
3 - Drag and drop the .js file to blockbench
4 - You're good to go! Enjoy it!
How to use
Open an OptiFine Entity project, create or select an animation in Animate, then open EMF Animation. Choose a trigger and playback mode, generate the EMF code, then apply it to replace the selected group's animation data or append it to the existing data.
To create variations, enable Variated Animations, choose two or more animations in the picker, and click Generate Animation Variations. Optionally choose a main animation and set the chance and minimum interval for other variations. While the trigger remains active, the main animation plays a full cycle before each chance roll; a selected variation plays once, then the main animation resumes.
Requirements
Install CEM Template Loader to use the CEM Animation Editor integration.
评论 0
登录后参与评分
还没有评论,来抢沙发吧