Описание
# 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](https://discord.gg/b7JFs78abx) server._