Easy Model Entities


[][issues]
[][wiki]
![Easy Model Entities Logo][logo]
注意: 这是一个早期版本,旨在收集反馈。在最终版本发布之前,部分设置、文件格式和导出输出可能仍会发生变化。请在 [问题追踪器][issues] 上报告问题和想法。
Easy Model Entities 将 Blockbench 模型转换为 Minecraft 实体和区块实体,无需为每个模型编写自定义 Java 代码。
它旨在让自定义模型的分发、测试和维护更加容易。与其编写渲染器、注册一次性实体类并硬编码动画行为,不如使用数据包和资源包配置文件来描述模型。EME 提供宿主实体、宿主方块、渲染器集成、配置文件验证以及一个小型的自动动画层。
如果你希望自定义的 Blockbench 模型能够以较少的样板代码作为环境生物、静态展示实体、装饰性区块实体、神龛、拟态怪物或具有模组集成的可渲染对象出现,请安装它。
简介与概览视频
✨ 为什么使用它?
- 无需为每个模型编写 Java 代码:使用数据包和资源包定义大多数模型。
- 支持实体和区块实体:使用移动实体用于生物,或使用固定的区块实体用于装饰和机器。
- 对 Blockbench 友好的工作流程:直接从资源包加载捆绑的
.bbmodel 资产。
- 基于配置文件的行行为:从 JSON 配置宿主类型、身体类型、尺寸、移动、行为、渲染、纹理和动画。
- 自动动画:开箱即用即可使用基本的待机、行走、翅膀、尾巴和随机待机行为。
- 标准关键帧剪辑:Blockbench 中命名为
idle、walk、swim、fly 或 attack 的动画会自动播放。hurt 和 death 会被加载,但仅在由命令或模组驱动时播放。其他任何名称的剪辑都会被忽略,以保持运行时简洁(无状态机,无 Molang)。
- 开发者 API:模组可以使用渲染委托、自定义部件动画器和运行时配置文件数据,而无需依赖内部渲染器类。
- 诊断和演示配置文件:命令帮助列表、验证、调试、生成和在开发世界中放置测试模型。
? 你能构建什么?
- 环境小生物、NPC、训练假人和简单的自定义实体。
- 仍然使用 Minecraft 实体渲染的静态展示模型。
- 装饰性区块实体,如神龛、雕像、祭坛或拟态怪物。
- 由模组控制的实体和区块实体,使用 EME 进行模型加载、渲染、纹理处理和可选的部件动画。
ℹ️ 快速开始
安装模组后,尝试在开发或测试世界中使用捆绑的演示配置文件:
/easy_model_entities summon easy_model_entities_examples:entity/little_explorer
/easy_model_entities summon easy_model_entities_examples:entity/stone_turtle
/easy_model_entities place_block easy_model_entities_examples:block_entity/shrine
有用的诊断命令:
/easy_model_entities list_profiles
/easy_model_entities validate_profiles
/easy_model_entities debug_profile easy_model_entities_examples:entity/little_explorer
/easy_model_entities set_animation @e[distance=..8] walk
更多演示命令和解释可在 Demo Commands wiki page 中找到。
? Blockbench 插件
你可以手动编写配置文件 JSON,但
[Easy Model Entities Exporter][plugin] 可以为你完成这项工作:它将当前的 Blockbench 项目导出为即装即用的数据包和资源包,根据你的骨骼名称检测合适的预设,并在写入任何内容之前验证模型。
获取它的两种方式:
-
Blockbench 插件列表(推荐):文件 > 插件 > 可用,搜索 Easy Model Entities。这是经过审查的发布版本,因此新版本可能需要一段时间才会出现在那里。
-
开发版本:使用 文件 > 插件 > 从 URL 加载插件 并使用以下地址:
https://raw.githubusercontent.com/MarkusBordihn/BOs-Easy-Model-Entities-Blockbench-Plugin/refs/heads/master/plugins/easy_model_entities/easy_model_entities.js
这是当前的 master 分支状态——更新更快,但可能包含错误且未经审查。
? 打包工作流程
Easy Model Entities 使用两层配置文件:
- 服务器配置文件位于数据包中,决定模型是什么以及如何表现。
- 渲染配置文件位于资源包中,决定客户端使用哪个模型、纹理、比例、边界和动画设置。
典型文件:
data/<namespace>/easy_model_entities/profiles/entity/<id>.json
data/<namespace>/easy_model_entities/profiles/block_entity/<id>.json
assets/<namespace>/easy_model_entities/render_profiles/entity/<id>.json
assets/<namespace>/easy_model_entities/render_profiles/block_entity/<id>.json
assets/<namespace>/easy_model_entities/models/<model>.bbmodel
assets/<namespace>/textures/entity/<texture>.png
assets/<namespace>/textures/block/<texture>.png
完整结构请参阅 [Pack Usage wiki page](wiki/User-Guide.md)。
## 开发者集成
模组可以通过实现 `EasyModelRenderable` 并使用客户端渲染委托来将 EME 集成到其自身的渲染器中:
- `EasyModelEntityRenderDelegate`
- `EasyModelBlockEntityRenderDelegate`
- `EasyModelEntityRenderOptions`
- `EasyModelBlockEntityRenderOptions`
- `EasyModelPartAnimator`
自定义部件动画可以添加至自动 EME 变换,或通过 `EasyModelPartAnimationMode.REPLACE` 完全替换它。
示例请参阅 [Developer Integration wiki page](wiki/Developer-Guide.md)。
## 安装与兼容性
当在多人游戏中使用配置文件、实体或方块实体时,请在客户端和服务端安装匹配加载器的构建版本。
## ℹ️ 文档
请查阅 [wiki][wiki] 以获取更多信息。
## ? 报告问题、错误、崩溃或功能请求
请通过 [issues link][issues] 报告问题和功能请求。我很乐意为您提供帮助。
[wiki]: https://github.com/MarkusBordihn/BOs-Easy-Model-Entities/wiki
[issues]: https://github.com/MarkusBordihn/BOs-Easy-Model-Entities/issues
[issues]: https://github.com/MarkusBordihn/BOs-Easy-Model-Entities/issues
[wiki]: https://github.com/MarkusBordihn/BOs-Easy-Model-Entities/wiki
[logo]: https://cdn.modrinth.com/data/ngLoLP1P/08faee3a3c83b5fa2ff546d70ecb67dbd582ec40.png
Easy Model Entities



Note: This is an early release to gather feedback. Some settings, file formats and the export
output may still change before the final version. Please report problems and ideas on the
issue tracker.
Easy Model Entities turns Blockbench models into Minecraft entities and
block-entities without requiring custom Java code for every model.
It exists to make custom models easier to ship, test, and maintain. Instead of
writing a renderer, registering one-off entity classes, and hardcoding
animation behavior, you describe the model with data and resource pack profiles.
EME provides the host entities, host blocks, renderer integration, profile
validation, and a small automatic animation layer.
Install it if you want custom Blockbench models that can appear as ambient
creatures, static display entities, decorative block-entities, shrines, mimics,
or mod-integrated renderable objects with much less boilerplate.
Introduction & Overview Video
✨ Why Use It?
- No per-model Java required: Define most models with data packs and
resource packs.
- Entity and block-entity support: Use moving entities for mobs or fixed
block-entities for decorations and machines.
- Blockbench-friendly workflow: Load bundled
.bbmodel assets directly
from resource packs.
- Profile-driven behavior: Configure host type, body type, dimensions,
movement, behavior, rendering, texture, and animation from JSON.
- Automatic animation: Basic idle, walk, wing, tail, and random-idle
behavior is available out of the box.
- Standard keyframe clips: Blockbench animations named
idle, walk,
swim, fly, or attack are played automatically. hurt and death are
loaded but only play when driven by a command or a mod. Clips with any other
name are ignored to keep the runtime simple (no state machines, no Molang).
- Developer API: Mods can use render delegates, custom part animators, and
runtime profile data without depending on internal renderer classes.
- Diagnostics and demo profiles: Commands help list, validate, debug, spawn,
and place test models in a dev world.
? What Can You Build?
- Ambient critters, NPCs, training dummies, and simple custom entities.
- Static display models that still use Minecraft entity rendering.
- Decorative block-entities such as shrines, statues, altars, or mimics.
- Mod-controlled entities and block-entities that use EME for model loading,
rendering, texture handling, and optional part animation.
ℹ️ Quick Start
After installing the mod, try the bundled demo profiles in a dev or test world:
/easy_model_entities summon easy_model_entities_examples:entity/little_explorer
/easy_model_entities summon easy_model_entities_examples:entity/stone_turtle
/easy_model_entities place_block easy_model_entities_examples:block_entity/shrine
Useful diagnostic commands:
/easy_model_entities list_profiles
/easy_model_entities validate_profiles
/easy_model_entities debug_profile easy_model_entities_examples:entity/little_explorer
/easy_model_entities set_animation @e[distance=..8] walk
More demo commands and explanations are available in the
Demo Commands wiki page.
? Blockbench Plugin
You can write the profile JSON by hand, but the
[Easy Model Entities Exporter][plugin] does it for you: it exports the current
Blockbench project as a ready-to-install data pack and resource pack, detects a
fitting preset from your bone names, and validates the model before writing
anything.
Two ways to get it:
-
Blockbench plugin list (recommended): File > Plugins > Available, search
for Easy Model Entities. This is the reviewed release, so new versions can
take a while to appear there.
-
Development version: use File > Plugins > Load Plugin from URL with this
address:
https://raw.githubusercontent.com/MarkusBordihn/BOs-Easy-Model-Entities-Blockbench-Plugin/refs/heads/master/plugins/easy_model_entities/easy_model_entities.js
This is the current master state — newer, but it may contain errors and is
not reviewed.
? Pack Workflow
Easy Model Entities uses two profile layers:
- Server profiles in a data pack decide what the model is and how it
behaves.
- Render profiles in a resource pack decide which model, texture, scale,
bounds, and animation settings are used on the client.
Typical files:
data/<namespace>/easy_model_entities/profiles/entity/<id>.json
data/<namespace>/easy_model_entities/profiles/block_entity/<id>.json
assets/<namespace>/easy_model_entities/render_profiles/entity/<id>.json
assets/<namespace>/easy_model_entities/render_profiles/block_entity/<id>.json
assets/<namespace>/easy_model_entities/models/<model>.bbmodel
assets/<namespace>/textures/entity/<texture>.png
assets/<namespace>/textures/block/<texture>.png
See the Pack Usage wiki page for the full structure.
Developer Integration
Mods can integrate EME into their own renderers by implementing
EasyModelRenderable and using the client render delegates:
EasyModelEntityRenderDelegate
EasyModelBlockEntityRenderDelegate
EasyModelEntityRenderOptions
EasyModelBlockEntityRenderOptions
EasyModelPartAnimator
Custom part animation can either add to the automatic EME transform or replace
it entirely with EasyModelPartAnimationMode.REPLACE.
See the Developer Integration wiki page for examples.
Installation and Compatibility
Install the matching loader build on both client and server when profiles,
entities, or block-entities are used in multiplayer.
ℹ️ Documentation
Please check the wiki for additional information.
? Report Issues, Bugs, Crashes or Feature Requests
Please report issues and feature requests over the issues link. I'm happy to help you.
评论 0
登录后参与评分
还没有评论,来抢沙发吧