作为数据包作者,我喜欢通过增强生物 AI 来增加游戏难度。但使用命令控制生物 AI 涉及大量的检测与计分板记录,而且随着游戏难度提升,堆积在一起的生物会在瞬间击杀玩家。因此我制作了这个模组来解决这些问题。
为了解决上述问题,首先通过在玩家距离较远时跳过实体 Tick 来提升性能;其次是在附近的其他实体被卸载时移除该实体。
功能
- 根据计算出的概率跳过实体 Tick(默认开启)
- 移除群体中的实体(默认关闭)
- 注册区块以防止功能 1 在农场中生效
- 在配置文件中更改最小概率(0.1)以及实体开始被跳过的半径(24)
- 禁用死亡动画(默认开启)
- 以激进的方式压缩经验球(默认开启)
注意事项
请记得注册包含你的机器和农场的区块,否则可能会破坏那些需要实体和红石以相同速度运行的农场,并降低羊毛农场等实体资源农场以及像大多数刷怪笼那样组装生物的农场的效率。跳过 Tick 意味着不对实体进行任何计算,因此它们甚至不会移动。
移除群体中的实体可能会清除一些通常应存在于特定结构中的实体,例如来自其他模组的 Boss。(已避免处理原版实体,如唤魔者)
未来计划
- 改进实体检测,以避免因群体移除而误删不需要的实体
- 群体移除黑名单系统
- Fabric 版本(由于开发插件错误而推迟)
效果展示
450 只猪的测试
距离 13 格
开启:12fps / 130~140ms
关闭:12fps / 130~140ms
距离 24 格
开启:40fps / 120ms
关闭:40fps / 108ms
在 24 格范围内,两者几乎相同。
距离 40 格
开启:40fps / 95ms
关闭:40fps / 108ms

距离 60 格
开启:60fps / 85ms
关闭:60fps / 120ms
由于对更高 FPS 的需求,TPS 下降
距离 80 格
开启:60fps / 42ms
关闭:58fps / 75ms

距离 100 格
开启:70fps / 32ms
关闭:60fps / 75ms

-
通过 Gmail 联系我:orangeandy2007@gmail.com
As a datapack maker, I like to enhance Mob AI to make game more difficult. But use command to control mob AI involve many detection and scoreboard recoding and as game become more difficult, mob that stack together will kill player in second. So I make a mod to deal with these problem
To deal with the problem. First is to improve the performance by skip entity tick when player is far away, next is to remove entity when other entity nearby unloaded.
Feature
- skip entity tick by a calculated chance (default on)
- delete entity in group (default off)
- regist chunk to prevent 1. to work on farm
- change minimal chance (0.1) and the radius (24) that entity start to be skip in config
- disable death animation (default on)
- cramp xp orb in a aggresive way (default on)
Caution
Remember to register chunks where your machine and farm located or it may break the farm that require the entity and redstone running at the same speed and decrease the efficiency of entity resources farm such as wool farm and the farm that assemble mob like most of the mob spawner do. Skip tick means no calculation will be operated on entity, and thus they won't even move.
Clear entity in group may clear some entity that usually should be in certain structure like Boss from other mod.(vanilla ones like evoker has been avoided)
The things that will be invole in the future
- Advance entity detection to avoid unwanted entity remove by group remove
- Group remove backlist system
- Fabric version (postponed due to development plugin error)
Effect Showcase
450 pigs test
13 blocks away
Open : 12fps / 130~140ms
Close : 12fps / 130~140ms
24 blocks away
Open : 40fps / 120ms
Close : 40fps / 108ms
When within 24 blocks, they are almost the same.
40 blocks away
Open : 40fps / 95ms
Close : 40fps / 108ms

60 blocks away
Open : 60fps / 85ms
Close : 60fps / 120ms
TPS drops since the higher fps requirement
80 blocks away
Open : 60fps / 42ms
Close : 58fps / 75ms

100 blocks away
Open : 70fps / 32ms
Close : 60fps / 75ms

-
Contact me with gmail : orangeandy2007@gmail.com
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Martensite entity tick skiper
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
修复与 1.21.1 的兼容性问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧