下拉看中文描述
# Sleep Balance Mod
A Minecraft mod that implements a stamina system for players, enhancing gameplay by adding a new layer of resource management.
## Current Features
### Stamina System
- Players have a stamina level that affects gameplay based on activity
- Performing operations depletes stamina
- Lower stamina levels result in various debuffs
- Players regain stamina when inactive for 5 seconds at a rate of 0.1 per second
- Stamina persists between game sessions (saved data)
### Sleep Mechanics
- Players can sleep when stamina is low
- Natural wake-up restores player stamina
### Commands
The mod provides the following commands:
- `/stamina` - View your current stamina level
- `/stamina query` - View your current stamina level
- `/stamina query <players>` - View stamina levels of specified players
- `/stamina set <value>` - Set your stamina to the specified value
- `/stamina set <value> <players>` - Set stamina of specified players to the given value
- `/stamina add <amount>` - Add or remove stamina from yourself (use negative values to decrease)
- `/stamina add <amount> <players>` - Add or remove stamina from specified players
- `/stamina clearall` - Clear all persisted stamina data
## Technical Implementation
- Uses Fabric mod loader
- Implements data persistence for player stamina levels
- Uses mixins to integrate with Minecraft's sleep mechanics
- Event-driven architecture for tracking player actions
---
# 睡眠平衡模组
一个为Minecraft玩家实现体力值系统的模组,通过添加资源管理新层次来增强游戏体验。
## 当前功能
### 体力值系统
- 玩家拥有体力值,会根据活动影响游戏体验
- 进行操作会消耗体力
- 体力值过低会导致各种负面效果
- 玩家静止5秒后会以每秒0.1点的速度恢复体力
- 体力值在游戏会话之间保持持久(数据已保存)
### 睡眠机制
- 体力值低时玩家可以入睡
- 自然醒来会恢复玩家体力值
### 命令
模组提供以下命令:
- `/stamina` - 查看你当前的体力值
- `/stamina query` - 查看你当前的体力值
- `/stamina query <玩家>` - 查看指定玩家的体力值
- `/stamina set <数值>` - 将你的体力值设置为指定数值
- `/stamina set <数值> <玩家>` - 将指定玩家的体力值设置为给定数值
- `/stamina add <数量>` - 增加或减少你的体力值(使用负值来减少)
- `/stamina add <数量> <玩家>` - 增加或减少指定玩家的体力值
- `/stamina clearall` - 清除所有持久化的体力值数据
## 技术实现
- 使用Fabric模组加载器
- 实现玩家体力值的数据持久化
- 使用mixin技术整合Minecraft的睡眠机制
- 基于事件驱动的架构来追踪玩家动作

