Obsidian
Obsidian copied to clipboard
Implement Hunger & Saturation System
Implement basic Minecraft-like hunger, saturation, and exhaustion for players
- Track player stats (Possibly not needed):
- hunger: int (0–20)
- saturation: float
- exhaustion: float
- Exhaustion sources (initial subset, configurable):
- Sprinting, jumping, block breaking, attacking, taking damage
- Food consumption:
- Apply hunger and saturation restoration via a simple food registry/map
- Events/API:
- Fire change events/hooks for hunger, saturation, exhaustion, and food consume
- Persistence (Possibly not needed):
- Save/restore hunger, saturation, exhaustion on login/logout and world save
For more information on how hunger/exhaution & saturation works you can view the wiki