Smart Block‑Entity Tick Optimizer (SBETO)
通过让方块实体仅在必要时进行刻更新,减少服务器和客户端的开销。漏斗在活动时唤醒,空闲时休眠;当附近没有玩家时,跳过箱子客户端刻更新。结果是在不改变原版行为的情况下提升 TPS。
工作原理
在空载且允许冷却的情况下跳过刻更新。
在成功传输、实体碰撞或相邻容器更新时短暂唤醒。
可配置的空闲宽限期和唤醒触发条件。
箱子(客户端):
当没有玩家在可配置的范围内时,跳过客户端刻更新。
功能
潜在* 通过避免无用的方块实体更新来提升刻性能。
保留原版机制和物品流动。
在无客户端模组的服务器上也可运行;安装客户端模组可选,以获得微小的 CPU 节省。
完全可配置,支持命令和统计信息。
安装
需要 Fabric Loader 和 Fabric API。
将 jar 文件放入 mods 文件夹。
建议仅安装在服务器上以提升 TPS;客户端安装为可选。
配置
首次运行时会在 config/sbeto.json 创建配置文件。
主要选项:
箱子:enabled, playerRange
漏斗:enabled, idleGraceTicks, cooldownAware, wakeOnInventoryChange, wakeOnEntityCollision,
debugLogging 示例:
json
{
"chests": { "enabled": true, "playerRange": 32.0 },
"hoppers": {
"enabled": true,
"idleGraceTicks": 40,
"cooldownAware": true,
"wakeOnInventoryChange": true,
"wakeOnEntityCollision": true,
"debugLogging": false
}
}
命令
/sbeto stats— 显示性能计数器
/sbeto stats reset — 清除计数器
/sbeto reload — 重新加载配置
/sbeto debug on|off|toggle|show — 控制调试日志记录
/sbeto hoppers on|off|show — 启用/禁用漏斗逻辑
/sbeto chests on|off|show — 启用/禁用箱子逻辑
请在我们 Discord 服务器中报告崩溃或不兼容问题。
Smart Block‑Entity Tick Optimizer (SBETO)
Cuts server and client overhead by making block entities tick only when it matters. Hoppers wake on activity and sleep when idle; chest client ticks are skipped when no players are nearby. The result is higher TPS with no changes to vanilla behavior.
How it works
Skip tick when empty and cooldown allows.
Wake briefly on successful transfers, entity collisions, or adjacent inventory updates.
Configurable idle grace period and wake triggers.
Chests (client):
Skip client-side ticks when no player is within a configurable range.
Features
Potentially* Boosts tick performance by avoiding useless block‑entity updates.
Preserves vanilla mechanics and item flow.
Works on servers without clients having the mod; client install optional for minor CPU savings.
Fully configurable, with commands and stats.
Installation
Requires Fabric Loader and Fabric API.
Drop the jar into your mods folder.
Server-only install is recommended for TPS gains; client install is optional.
Configuration
A config file is created at config/sbeto.json on first run.
Key options:
Chests: enabled, playerRange
Hoppers: enabled, idleGraceTicks, cooldownAware, wakeOnInventoryChange, wakeOnEntityCollision,
debugLogging Example:
json
{
"chests": { "enabled": true, "playerRange": 32.0 },
"hoppers": {
"enabled": true,
"idleGraceTicks": 40,
"cooldownAware": true,
"wakeOnInventoryChange": true,
"wakeOnEntityCollision": true,
"debugLogging": false
}
}
Commands
/sbeto stats— show performance counters
/sbeto stats reset — clear counters
/sbeto reload — reload config
/sbeto debug on|off|toggle|show — control debug logging
/sbeto hoppers on|off|show — enable/disable hopper logic
/sbeto chests on|off|show — enable/disable chest logic
Please report crashes or incompatibilities in our Discord server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧