EntityOpt 是一款面向 Minecraft 1.21.11 的服务端 Fabric 模组,旨在有效减少实体卡顿。它通过将远离玩家的生物设为休眠状态,避免服务器在无人在场的情况下浪费资源处理数百个玩家根本看不见的实体。靠近玩家的生物会完全正常运作;只有远处的实体才会被限制活动频率。此外,它还提供了一些便捷命令,用于查看实体聚集位置、检查实时统计数据,以及在情况失控时“清除”(即移除)这些实体。命名生物、拴绳动物以及被骑乘的实体始终会被豁免,不受影响。
休眠机制是处理生物卡顿的核心系统。距离玩家 48 格以内的实体正常运行;在 48 至 96 格之间,它们的移动频率会降低;超过 96 格后,它们将进入完全休眠状态,几乎不再进行任何活动。一旦玩家重新靠近,它们会立即苏醒并恢复正常行为。
命令:
/entityopt hotspots - 显示实体聚集的位置
/entityopt stats - 显示实时实体数量及处于休眠状态的实体数量
/entityopt dormancy - 切换休眠系统的开启或关闭状态
/entityopt purge [radius] - 移除指定半径内的所有附近实体
本模组仅经过服务端测试,且目前仅在 Minecraft 1.21.11 版本下进行了验证。我会在后续添加更多版本及其他服务端平台的支持,但目前仅支持 Fabric。它可以与其他模组兼容,目前已在 1 个服务器上投入使用。如果您计划在自己的服务器上使用该模组,请通过 Discord (Pheinmanski) 私信联系我,以便我更新使用计数。
EntityOpt is a server-side Fabric mod for Minecraft 1.21.11 that helps cut down on entity lag. It works by putting mobs to sleep when no players are around, so your server isn't wasting time processing hundreds of entities that nobody can even see. Mobs near players behave completely normally; it's only the ones off in the distance that get throttled. It also comes with a few handy commands to spot where entities are clumping up, check live stats, and ”purge” (aka get rid of) them if things get out of hand. Named mobs, leashed animals, and anything being ridden are always left alone.
Dormancy is the system that handles the lag from mobs. Entities within 48 blocks of a player run as normal. Between 48 and 96 blocks, they move less frequently, and beyond 96 blocks, they go fully dormant and barely do anything at all. As soon as a player gets close again, they wake up instantly and resume normal behaviour.
Commands:
/entityopt hotspots - shows where entities are clumping up
/entityopt stats - shows live entity counts and how many are dormant
/entityopt dormancy - toggles the dormancy system on or off
/entityopt purge [radius] - removes all nearby entities within the given radius
This mod is tested on server-side only, and has only been tested on 1.21.11. I'll add more versions and other server platforms later, but for now, just enjoy Fabric. It works with other mods and is currently used on 1 server. If you plan to use this on your server, please dm me on Discord(Pheinmanski) so I can update this number.
评论 0
登录后参与评分
还没有评论,来抢沙发吧