非官方移植版
这是原版 Enhanced Block Entities 模组 的非官方移植版本,新增了对更新版本的 Minecraft(1.21.5+)以及 Forge 和 NeoForge 的支持!
本模组需要 MatLib 库(适用于 >=1.20 版本),你可以在此下载 MatLib。
Enhanced Block Entities
EBE 是一款完全客户端的 Minecraft 模组,旨在提升方块实体的渲染性能,并通过资源包提供自定义选项。
它是如何工作的? EBE 让部分方块实体使用烘焙后的方块模型,而非卡顿的实体模型。
这只是一个优化模组吗? EBE 并不仅仅是一个优化模组,其优化带来的许多副作用也带来了诸多视觉改进。
这些改进可能包括:
-
方块实体的平滑光照
-
能够使用方块模型对方块实体进行重构
-
切换功能,例如圣诞箱子
-
尽可能远距离查看方块实体
关于动画呢? EBE 最棒的一点在于,你仍然可以保留动画效果,同时获得烘焙模型带来的性能提升!大多数动画方块实体模型仅在必要时才会渲染。
我可以与 Sodium 一起使用吗? 可以。
- EBE 0.10.2 及以上版本 完全兼容 Sodium 0.6+
- 早期版本的 EBE 需要安装 Indium,并搭配 Sodium 0.5.11 或更低版本使用。
常见问题与帮助
问:我需要模组帮助/需要报告一个 Bug!
答: 如果问题是 BUG,请在我们的问题跟踪器(页面顶部的“Issues”标签页)上报告
问:我的箱子不可见了!
答: 你可能使用了与 EBE 冲突的资源包。打开“方块实体设置”菜单(通过 EBE 的模组菜单入口或原版视频设置),然后启用“强制资源包兼容性”。
问:我的箱子仍然不可见!
答: 你很可能使用的是低于 0.4 版本的 Sodium,该版本默认不支持某些 Fabric 渲染特性。如果你需要在 EBE 中使用低于 0.4 版本的 Sodium,你应该安装 Indium。
FPS 提升
渲染 1700 个箱子时:
原版

使用 EBE 后
帧率提升了 155%!
你的模组与 EBE 不兼容吗?
如果你正在开发一个修改方块实体渲染的模组,那么你的模组将被 EBE 破坏。幸运的是,EBE 提供了一个 API,允许你强制禁用其功能,从而使你的模组能够正常运行。
你也不需要让你的模组在开发环境中将 EBE 作为依赖项!
添加入口点
fabric.mod.json:
{
"entrypoints": {
"main": [...],
"client": [...],
"ebe_v1": [
"my.mod.compat.EBECompatibility"
]
}
}
需要修改配置值?实现 BiConsumer<Properties, Map<String, Text>>
my.mod.compat.EBECompatibility:
public class EBECompatibility implements BiConsumer<Properties, Map<String, Text>>, ... {
@Override
public void accept(Properties overrideConfigValues, Map<String, Text> overrideReasons) {
overrideConfigValues.setProperty("render_enhanced_chests", "false");
overrideReasons.put("render_enhanced_chests",
Text.literal("EBE Enhanced Chests are not compatible with my mod!")
.formatted(Formatting.YELLOW));
}
...
}
当 EBE 加载配置值时,会调用 accept(Properties, Map<String, Text>) 函数。你可以通过设置 overrideConfigValues 的相应属性来覆盖所需的配置值。这也会使配置菜单中的该选项变灰。
为了向用户解释你的模组为何做出此更改,你可以在 overrideReasons 映射中添加一个文本组件,其键对应于你更改的选项。
在使用 Yarn 映射时,Text 是 net.minecraft.text.Text。
需要手动重新加载 EBE?实现 Consumer<Runnable>
my.mod.compat.EBECompatibility:
public class EBECompatibility implements Consumer<Runnable>, ... {
private static Runnable ebeReloader = () -> {};
...
```java
@Override
public void accept(Runnable ebeConfigReloader) {
ebeReloader = ebeConfigReloader;
}
}
如果你的模组需要根据已加载的资源来修改 EBE 的配置值,可能会遇到加载顺序的问题。这可以通过手动重新加载 EBE 来部分解决。
accept(Runnable) 函数在 EBE 首次加载时调用。该 Runnable 会执行 EnhancedBlockEntities.load()。将其存储在一个字段中,以便在必要时执行它。
void onMyModResourceReload() {
EBECompatibility.someParameter = true;
EBECompatibility.ebeReloader.run();
// EBECompatibility 中的配置修改处理器可以基于
// EBECompatibility.someParameter 改变其行为。
}
UNOFFICIAL PORT
This is an unofficial port of the original Enhanced Block Entities mod, adding support for newer minecraft versions (1.21.5+) as well as Forge and NeoForge!
This mod requires the MatLib library for >=1.20 versions, you can download it here.
Enhanced Block Entities
EBE is a 100% client side Minecraft mod which aims to increase the performance of block entity rendering, as well as offer customizability via resource packs.
How does it work? EBE Makes some block entities use baked block models rather than laggy entity models.
Is it just an optimization mod? EBE isn't just an optimization mod, some side effects of its optimizations are many visual improvements.
These may include:
- Smooth lighting on block entities
- Being able to remodel block entities with block models
- Toggling features like christmas chests
- Being able to see block entities from as far away as possible
What about animations? The best part about EBE is that you still get to keep animations, while gaining the performance boost of baked models! Most animated block entity models will only render when absolutely necessary.
Can I use it with Sodium? Yes.
- EBE 0.10.2 and above are fully compatible with Sodium 0.6+
- Earlier EBE versions require installing Indium along with Sodium 0.5.11 or below.
FAQ and Help
Q: I need help with the mod/need to report a bug!
A: If the issue is a BUG please report it on our issue tracker ("Issues" tab at the top of the page)
Q: My chests are invisible!
A: You may be using a resource pack that conflicts with EBE. Open the Block Entity Settings menu (through EBE's Mod Menu entry or through vanilla Video Settings) and enable "Force Resource Pack Compatibility".
Q: My chests are still invisible!
A: You're likely using a Sodium version lower than 0.4, which doesn't support certain Fabric Rendering features by default. If you need to use a Sodium version lower than 0.4 with EBE, you should install Indium.
FPS Boost
Rendering 1700 chests:
Vanilla

With EBE
A 155% frame rate increase!
Is your mod incompatible with EBE?
If you are the developer of a mod that makes changes to block entity rendering, your mod will be broken by EBE. Fortunately, EBE provides an API that allows you to force-disable its features, allowing your mod to function instead.
You don't need to add EBE as a dependency in your development environment either!
Add the Entrypoint
fabric.mod.json:
{
"entrypoints": {
"main": [...],
"client": [...],
"ebe_v1": [
"my.mod.compat.EBECompatibility"
]
}
}
Need to modify config values? Implement BiConsumer<Properties, Map<String, Text>>
my.mod.compat.EBECompatibility:
public class EBECompatibility implements BiConsumer<Properties, Map<String, Text>>, ... {
@Override
public void accept(Properties overrideConfigValues, Map<String, Text> overrideReasons) {
overrideConfigValues.setProperty("render_enhanced_chests", "false");
overrideReasons.put("render_enhanced_chests",
Text.literal("EBE Enhanced Chests are not compatible with my mod!")
.formatted(Formatting.YELLOW));
}
...
}
The accept(Properties, Map<String, Text>) function is called when EBE loads config values. You can override a desired config value by setting the corresponding property of overrideConfigValues. This will also gray out the option in the config menu.
To explain to users why your mod made that change, you can add a text component to the overrideReasons map corresponding to the key of the option you changed.
Text is net.minecraft.text.Text when using Yarn mappings.
Need to manually reload EBE? Implement Consumer<Runnable>
my.mod.compat.EBECompatibility:
public class EBECompatibility implements Consumer<Runnable>, ... {
private static Runnable ebeReloader = () -> {};
...
@Override
public void accept(Runnable ebeConfigReloader) {
ebeReloader = ebeConfigReloader;
}
}
If your mod needs to modify EBE's config values depending on loaded resources, it may encounter load order problems. This can be somewhat fixed by manually reloading EBE.
The accept(Runnable) function is called when EBE is first loaded. The Runnable executes EnhancedBlockEntities.load(). Store this in a field so you can execute it whenever necessary.
void onMyModResourceReload() {
EBECompatibility.someParameter = true;
EBECompatibility.ebeReloader.run();
// Your config modification handler in EBECompatibility can change
// its behavior based on EBECompatibility.someParameter.
}
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Enhanced Block Entities Reloaded
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
错误修复
现在需要 MatLib 库模组。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧