Eslium Backport
什么是 Eslium?
Eslium 是一个用于在客户端预测更多事物的项目。
例如,如果你想使用水晶,你必须等待服务器验证它才会出现。
这个模组修复了这个问题,从而补偿了延迟的影响。
跨版本幽灵实体
预测生成的实体通过实体类型和距离而非精确坐标与元数据进行匹配,因此在进行版本转换连接时(例如 1.16.5 客户端连接至 1.21.11 服务器),它会移除虚假投射物而不是留下重复项。预测生成数据包永远不会被重放,这也防止了当服务器更改生成数据时出现幽灵实体。
稳定性和性能
当你离开服务器、切换世界或模组变为非活动状态时,预测数据包及其客户端实体克隆体将被丢弃,因此旧连接的任何内容都不会被重放到新连接中。每个预测钩子都会在执行前检查客户端世界和网络处理器世界是否为同一对象,这消除了断开连接和维度变更时出现的空指针崩溃。当没有进行中的交互时,模拟服务器刻会被完全跳过;物品栏快照复用堆栈引用而非深度复制它们;幽灵锚清理每秒运行四次;一旦幽灵锚已瞄准目标,则停止重新进行射线检测。权威方块更新会在到达时立即应用,而不是在延迟窗口之后,因此放置操作会在同一帧内自我修正,而不会作为幽灵方块残留。
致谢
锚点与爆炸优化参考
锚点路径借鉴了以下项目的想法;感谢它们的作者:
下载
已实现的预测
矿车
在铁轨上使用任何类型的矿车时,会预测矿车的生成
末影水晶
在黑曜石或基岩上使用末影水晶时,会预测末影水晶的生成
目前已添加的预测:
- 消耗品
- 冷却时间
- 水晶
- 鞘翅
- 烟花
- 矿车
- 姿态
- 交换
- 武器
- 风电荷
- 投掷物
- 可放置物
- 可交互物
- 工具
- 战斗
- 红石
- 锚点
- 放置
配置
模组可以通过 Mod Menu(可选依赖)在游戏内配置,或者使用可重新绑定的快捷键 key.clienthings.open_config 进行配置(默认未绑定 - 请在 选项 → 控制 中设置)。配置文件存储在 config/eslium.json 中。
每个预测部分共享相同的基础选项:
enabled - 切换此预测
servers - 适用的服务器类型(只要 任一 启用即生效):
CUSTOM - 使用 Eslium 协议的服务器
MODDED - 模组服务器
PLUGIN - 基于插件的服务器
VANILLA - 原版服务器
maxTime - 保持预测(尚未确认)动作存活的最大时间(毫秒)
maxDistance - 预测的最大距离(以方块为单位,如适用)
默认配置
{
"enabled": true,
"optout": false,
"debug": false,
"experimental": false,
"latencyMargin": 25,
"version": 1,
"safeMode": false,
"simulatedDesync": 100,
"consumables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"cooldowns": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"crystals": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"maxTime": 5000,
"delay": 0,
"dynamicDelay": true,
"resync": 20,
"autoDestroy": { "enabled": true, "maxTime": 5000 }
},
"elytras": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"firework": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"minecart": { "enabled": true, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000 },
"pose": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"swap": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"weapons": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"windcharge": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"throwables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"placeables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"interactables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"tools": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"combat": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"redstone": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"anchors": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"maxTime": 3000,
"glowstoneSound": true,
"clientExplosion": true,
"reInteract": true,
"ghostAnchor": true
},
"placement": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"dynamic": true,
"fixedWindowMs": 1000,
"floorMs": 50,
"capMs": 300
}
}
说明
全局选项
enabled - 启用或禁用整个模组
optout - 使此客户端退出 Eslium 协议
debug - 将调试信息打印到日志中(仅在 enabled 为 true 时生效)
experimental - 允许实验性预测
latencyMargin - 添加到预估延迟的延迟值(毫秒)。有助于避免因延迟尖峰导致服务器拒绝某些操作。应代表当前连接延迟的波动情况。
version - 配置版本。请勿修改!
safeMode - 降低被不可能作弊检测标记的可能性。即使禁用该选项,概率也已经很低。警告:这可能导致奇怪的行为。
simulatedDesync - 用于模拟原版不同步的最大客户端-服务器刻不同步时间的百分比(0-100),以保持预测在统计上的公平性。在单人游戏中,这实际上是 0;在本地服务器中,平均值约为 50。默认值为 100。
区块
以下所有区块均共享 enabled、servers,以及(如所示)maxTime / maxDistance:consumables、cooldowns、crystals、elytras、firework、minecart、pose、swap、weapons、windcharge、throwables、placeables、interactables、tools、combat、redstone、anchors、placement。
免责声明
允许在以下服务器上运行:
PvPClub
FadedMC
Turtled
CatPvP
4.0+ 版本设计为不会触发反作弊系统。
然而,bug 并非不可避免,因此仍建议在服务器上使用前请求授权。
常见问题
它是如何工作的?
此模组使用 Mixin 向 Minecraft 代码注入代码。在执行特定动作时,如果已实现,客户端会复制原版服务器的行为。
这个模组算作弊吗?
你可能会认为这个模组是一种作弊行为,因为它为未安装该模组的玩家提供了优势,而这类模组经常引发此类争议。
以下是几点说明:
-
有些人天生延迟较低,但这并不被视为作弊。
-
在原版 Minecraft 中可能出现等效于 0ms 延迟的行为,但只要有相应的实现,即使使用 Eslium 并搭配任意延迟水平,也能达到类似效果。
-
有些模组虽无法在原版中复现其行为,但仍被社区广泛接受。例如 Health Indicator、Armor HUD、AppleSkin、FreeCam 和 Ok Zoomer。
-
本模组已通过 Modrinth 审核,并被部分 PvP 服务器所允许。
-
Sodium 优化帧率(FPS),Lithium 优化每刻处理时间(MSPT),而 Eslium 则优化延迟带来的影响。
-
其他优化延迟的模组也被允许使用,例如 Marlow 的 Crystal Optimizer、Hero 的 Elytra Optimizer、Consumable Optimizer 或 Anchor Optimizer。
Eslium 是否支持其他 Minecraft 版本?
是的。1.16.5 的移植版本与 1.21.11 构建版本一同在此维护。
兼容性
Eslium 应可在任何客户端上正常运行。
Eslium Backport
What's Eslium ?
Eslium is a project to predict more things client-side.
For example, if you want to use a Crystal, you must wait for the server validation for it to appear.
This mod fixes that and therefore compensates for the ping.
Cross-version ghosting
Predicted spawns are matched to authoritative packets by entity type and proximity rather than by exact coordinates and metadata, so a translated connection (for example a 1.16.5 client on a 1.21.11 server) retires its fake throwable instead of leaving a duplicate behind. Predicted spawn packets are never replayed, which also prevents ghost entities when the server changes the spawn data.
Stability and performance
Predicted packets and their client-side entity clones are discarded when you leave a server, change worlds, or the mod becomes inactive, so nothing from an old connection can be replayed into a new one. Every prediction hook checks that the client world and the network handler's world are the same object before it runs, which removes the null-pointer crashes seen on disconnect and dimension changes. The simulated server tick is skipped entirely when no interaction is in flight, inventory snapshots reuse stack references instead of deep-copying them, ghost-anchor cleanup runs four times a second, and targeting stops re-raycasting once a ghost anchor is already aimed at. Authoritative block updates are applied as soon as they arrive instead of after a latency window, so a placement corrects itself in the same frame rather than lingering as a ghost block.
Credits
Anchor and explosion optimization references
The anchor path borrows ideas from these projects; thanks to their authors:
Downloads
Predictions implemented
Minecarts
When using any type of minecart on a rail, the spawn of the minecart is predicted
End Crystal
When using an end crystal on obisidian or bedrock, the spawn of the end crystal is predicted
Predictions Added so far:
- Consumables
- Cooldowns
- Crystals
- Elytras
- Firework
- Minecart
- Pose
- Swap
- Weapons
- Windcharge
- Throwables
- Placeables
- Interactables
- Tools
- Combat
- Redstone
- Anchors
- Placement
Configuration
The mod can be configured in-game through Mod Menu (optional dependency) or with the rebindable keybind key.clienthings.open_config (unbound by default - set it in Options → Controls). The configuration is stored at config/eslium.json.
Every prediction section shares the same base options:
enabled - toggle this prediction
servers - which server types it applies to (applies if any is enabled):
CUSTOM - servers using the Eslium protocol
MODDED - modded servers
PLUGIN - plugin-based servers
VANILLA - vanilla servers
maxTime - maximum time in ms to keep a predicted (not yet confirmed) action alive
maxDistance - maximum distance in blocks for the prediction (where applicable)
Default configuration
{
"enabled": true,
"optout": false,
"debug": false,
"experimental": false,
"latencyMargin": 25,
"version": 1,
"safeMode": false,
"simulatedDesync": 100,
"consumables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"cooldowns": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"crystals": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"maxTime": 5000,
"delay": 0,
"dynamicDelay": true,
"resync": 20,
"autoDestroy": { "enabled": true, "maxTime": 5000 }
},
"elytras": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"firework": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"minecart": { "enabled": true, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000 },
"pose": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"swap": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true } },
"weapons": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"windcharge": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"throwables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"placeables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"interactables": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"tools": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"combat": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"redstone": { "enabled": false, "servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true }, "maxTime": 5000, "maxDistance": 16 },
"anchors": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"maxTime": 3000,
"glowstoneSound": true,
"clientExplosion": true,
"reInteract": true,
"ghostAnchor": true
},
"placement": {
"enabled": true,
"servers": { "CUSTOM": true, "MODDED": true, "PLUGIN": true, "VANILLA": true },
"dynamic": true,
"fixedWindowMs": 1000,
"floorMs": 50,
"capMs": 300
}
}
Explanation
Global options
enabled - enable or disable the whole mod
optout - opts this client out of the Eslium protocol
debug - print debug information to the log (only active while enabled is true)
experimental - allow experimental predictions
latencyMargin - ping in ms added to your estimated latency. Useful to avoid considering actions the server denies after a latency spike. Should represent the current latency fluctuation of your connection.
version - configuration version. Do not touch!
safeMode - reduces the likelihood of being flagged by an impossible anticheat. The probability is already low when disabled. Warning: this can lead to bizarre behavior.
simulatedDesync - percentage (0-100) of the maximum client-server tick desynchronization time used to simulate vanilla desynchronization, which keeps the prediction statistically fair. In singleplayer this is effectively 0, and against a local server it averages around 50. Default 100.
Sections
All sections below share enabled, servers, and (where shown) maxTime / maxDistance: consumables, cooldowns, crystals, elytras, firework, minecart, pose, swap, weapons, windcharge, throwables, placeables, interactables, tools, combat, redstone, anchors, placement.
Disclaimer
Allowed on servers such as:
PvPClub
FadedMC
Turtled
CatPvP
Versions 4.0+ are designed not to trigger anticheats.
However, a bug is not inevitable, so it is still recommended to request authorization for this mod before using it on a server.
FAQ
How it works ?
This mod uses mixins to inject code into Minecraft code. During certain actions, if implemented, the behavior of a vanilla server is replicated on the client side.
Is this mod a cheat?
You might think this mod is a cheat because it gives an advantage to those who don't have it, and these kinds of mods often raise these kinds of questions.
Here are a few points :
-
Some people naturally have lower ping, yet it is not considered cheating
-
It is possible to have 0ms ping behavior in vanilla, but it is also possible to have it (as far as it is implemented) with any ping and Eslium.
-
Some mods remain accepted by the community but their behavior is impossible to reproduce in vanilla.
I'm thinking in particular of Health Indicator, Armor HUD, AppleSkin, FreeCam, and Ok Zoomer.
-
This mod has been accepted by Modrinth and some PvP servers.
-
Sodium optimize FPS, Lithium optimize MSPT, Eslium optimize the ping's impact.
-
Other ping's optimizer are allowed, such as Marlow's Crystal Optimizer, Hero's Elytra Optimizer, Consumable Optimizer or Anchor Optimizer
Is Eslium available for other Minecraft versions?
Yes. The 1.16.5 backport is maintained here alongside the 1.21.11 build.
Compatibility
Eslium should work on any client.
评论 0
登录后参与评分
还没有评论,来抢沙发吧