HyskExpFly Mod
一款 Minecraft Fabric 模组,允许玩家使用经验值在生存模式中飞行

模组介绍
HyskExpFly Mod 是一款创新的 Minecraft Fabric 模组,允许玩家消耗经验值以获得生存模式下的飞行能力。通过简单的命令和直观界面,玩家可以轻松管理飞行状态,享受空中探索的自由。
- 所有代码功能均由 Deepseek AI 辅助完成
- Qingxin Hengyue Shikong Server 免费公共飞行模组
创建者: YkinLing
AI 助手: Deepseek
QQ 群: 783492881(获取开源代码)
核心功能
基础飞行功能
- 基于经验的飞行: 使用经验值在生存模式中飞行
- 智能消耗: 自动扣除每秒配置的经验值
- 状态恢复: 重新连接时自动恢复飞行状态
- 模式支持: 支持生存模式,自动处理其他模式
管理功能
- 权限管理: 完整的封禁系统,支持按名称和 UUID 封禁
- 配置系统: 实时调整经验消耗率
- 状态查询: 管理员可查询所有飞行玩家的状态
- 安全检查: 多项安全检查,防止状态异常
多语言支持
- 双语界面: 全面支持中文和英文
- 实时切换: 支持游戏内语言切换命令
- 完整翻译: 所有提示消息均有双语版本
- 自定义扩展: 支持添加新的语言配置
用户体验
- 实时显示: 飞行过程中持续显示剩余时间和经验信息
- 智能提示: 丰富的状态提示和操作指南
- 自动保护: 死亡、模式切换和骑乘时自动处理飞行状态
- 操作简便: 支持双击空格键快速起飞/降落
安全与稳定性
- 状态修复: 自动检测并修复飞行状态异常
- 骑乘保护: 骑乘载具时自动暂停飞行,下车后恢复
- 经验监控: 监控经验扣除间隔,防止异常扣除
- 配置检查: 自动检查配置完整性,修复缺失项
安装要求
必要依赖
- Minecraft: 1.21.8
- Fabric Loader: ≥ 0.16.9
- Fabric API: 最新版本
- Java: ≥ 21
推荐环境
- 服务器环境: Fabric Server
- 客户端: Fabric Client
- 内存: ≥ 2GB RAM
命令列表
玩家命令
| 命令 |
权限 |
描述 |
/fly |
所有玩家 |
启用/禁用经验飞行模式 |
/flystatus |
所有玩家 |
查看自己的飞行状态信息 |
管理员命令
| 命令 |
权限 |
描述 |
/fly reload |
OP Level 4 |
重载配置文件 |
/fly cost <points> |
OP Level 4 |
设置经验消耗率 |
/fly enable |
OP Level 4 |
启用生存模式飞行 |
/fly disable |
OP Level 4 |
禁用生存模式飞行 |
/fly ban <player> |
OP Level 4 |
禁止玩家使用飞行 |
/fly deban <player> |
OP Level 4 |
解除封禁 |
/fly banlist |
OP Level 4 |
查看封禁列表 |
/fly query |
OP Level 4 |
查询飞行玩家列表 |
/fly debug [player] |
OP Level 4 |
查看调试信息 |
/flystatus <player> |
OP Level 4 |
查看其他玩家的飞行状态 |
/fly lang [language] |
OP Level 4 |
查看或切换语言 |
/fly checkconfig |
OP Level 4 |
检查配置完整性 |
/fly updateconfig |
OP Level 4 |
更新缺失的配置项 |
操作方法
基本操作流程
- 启用飞行: 使用
/fly 命令启用飞行模式
- 起飞: 双击空格键开始飞行
- 飞行控制:
- 空格键: 上升
- Shift: 下降
- WASD: 前后左右移动
- 降落: 再次双击空格键降落
- 禁用飞行: 使用
/fly 命令禁用飞行模式
飞行状态说明
- 飞行中: 持续消耗经验值,显示剩余时间
- 已着陆: 暂停经验消耗,显示剩余经验
- 骑乘暂停: 骑乘载具时自动暂停,下车后恢复
- 自动保护: 死亡或切换到创造模式时自动禁用
配置系统
配置文件位置
配置文件位于服务器的 config/hyskexpfly/ 目录中:
config/
└── hyskexpfly/
├── hyskexpfly.json # 主配置文件
└── lang.json # 语言配置文件
主配置 (hyskexpfly.json)
{
"costPerSecond": 1,
"enableSurvivalFlight": true,
"bannedPlayers": []
}
配置选项说明
| 选项 |
类型 |
默认值 |
描述 |
costPerSecond |
Integer |
1 |
每秒消耗的经验值 |
enableSurvivalFlight |
Boolean |
true |
是否允许生存模式飞行 |
bannedPlayers |
Array |
[] |
被封禁的玩家列表 |
封禁玩家数据结构
{
"name": "PlayerName",
"uuid": "PlayerUUID",
"banTime": "BanTimestamp"
}
语言配置 (lang.json)
{
"currentLanguage": "zh_cn",
"languages": {
"zh_cn": {
"flyEnabled": "§a飞行模式已开启!",
"flyDisabled": "§c飞行模式已关闭",
"notEnoughExp": "§c你没有足够的经验点来开启飞行!",
"...": "更多翻译项..."
},
"en_us": {
"flyEnabled": "§aFlight mode enabled!",
"flyDisabled": "§cFlight mode disabled",
"notEnoughExp": "§cYou don't have enough experience points to fly!",
"...": "More translations..."
}
}
}
支持的语言
- zh_cn: 简体中文
- en_us: 英语(美国)
配置修改方法
方法 1:游戏内命令(推荐)
# 修改经验消耗率
/fly cost 5
# 启用/禁用生存模式飞行
/fly enable
/fly disable
# 切换语言
/fly lang en_us
# 重新加载配置
/fly reload
方法 2:直接编辑文件
- 停止服务器
- 编辑
config/hyskexpfly/hyskexpfly.json 或 config/hyskexpfly/lang.json
- 重启服务器
方法 3:热重载配置
# 在游戏内执行
/fly reload
配置完整性检查
模组提供自动配置检查和修复功能:
# 检查配置完整性
/fly checkconfig
# 自动更新缺失的配置
/fly updateconfig
自动修复功能
- ✅ 自动检测缺失的配置项
- ✅ 填入默认值
- ✅ 验证配置格式
- ✅ 修复损坏的配置文件
配置最佳实践
平衡服务器设置
{
"costPerSecond": 2,
"enableSurvivalFlight": true,
"bannedPlayers": []
}
极限生存服务器设置
{
"costPerSecond": 5,
"enableSurvivalFlight": true,
"bannedPlayers": ["Violator1", "Violator2"]
}
创造服务器设置
{
"costPerSecond": 1,
"enableSurvivalFlight": false,
"bannedPlayers": []
}
故障排除
常见配置问题
-
配置文件缺失
- 解决方案:使用
/fly updateconfig 重新生成
-
配置格式错误
- 解决方案:删除配置文件并使用
/fly reload 重新生成
-
语言显示异常
- 解决方案:使用
/fly lang zh_cn 重置语言
-
权限不生效
- 解决方案:检查 OP 权限等级,需要 OP Level 4
自定义语言
要添加新的语言支持:
- 在
lang.json 的 languages 对象中添加新的语言代码
- 从现有语言中复制键值对并翻译内容
- 使用
/fly lang <new-language-code> 进行切换
示例:
{
"currentLanguage": "zh_cn",
"languages": {
"zh_cn": { ... },
"en_us": { ... },
"ja_jp": {
"flyEnabled": "§a飛行モードが有効になりました!",
"flyDisabled": "§c飛行モードが無効になりました",
"...": "More Japanese translations..."
}
}
}
技术特性
Mixin 注入系统
- PlayerInputMixin:检测玩家输入,实现双击空格起飞/降落
- PlayerRidingMixin:处理骑乘状态,自动暂停和恢复飞行
- 安全注入:使用 Mixin 框架确保与其他模组的兼容性
经验计算系统
- 精确计算:使用 Minecraft 标准经验计算公式
- 实时更新:自动检测经验变化并更新显示
- 安全扣除:监控扣除间隔以防止异常情况
状态管理系统
- 持久存储:玩家重新连接时自动恢复飞行状态
- 安全检查:多重安全检查以确保状态一致性
- 自动修复:检测到状态异常时自动修复
此配置系统设计旨在提供最大的灵活性和易用性,允许服务器管理员轻松调整模组行为以适应不同的游戏环境。
HyskExpFly Mod
A Minecraft Fabric mod that allows players to fly in survival mode using experience points

Mod Introduction
HyskExpFly Mod is an innovative Minecraft Fabric mod that allows players to consume experience points to gain flight ability in survival mode. Through simple commands and an intuitive interface, players can easily manage their flight status and enjoy the freedom of aerial exploration.
- All code features are assisted by Deepseek AI
- Qingxin Hengyue Shikong Server free public flight mod
Creator: YkinLing
AI Assistant: Deepseek
QQ Group: 783492881 (Get open source code)
Core Features
Basic Flight Features
- Experience-based Flight: Fly in survival mode using experience points
- Smart Consumption: Automatically deduct configured experience points per second
- State Recovery: Automatically restore flight status when reconnecting
- Mode Support: Supports survival mode, automatically handles other modes
Management Features
- Permission Management: Complete ban system supporting name and UUID bans
- Configuration System: Real-time adjustable experience consumption rate
- Status Query: Administrators can query all flying player status
- Safety Detection: Multiple safety checks to prevent state abnormalities
Multi-language Support
- Bilingual Interface: Full support for Chinese and English
- Real-time Switching: Supports in-game language switching commands
- Complete Translation: All prompt messages have bilingual versions
- Custom Extension: Supports adding new language configurations
User Experience
- Real-time Display: Continuously shows remaining time and experience information during flight
- Smart Tips: Rich status prompts and operation guidance
- Auto Protection: Automatically handles flight status during death, mode switching, and riding
- Easy Operation: Supports double-tap spacebar for quick takeoff/landing
Safety & Stability
- State Repair: Automatically detects and fixes flight state abnormalities
- Riding Protection: Automatically pauses flight when riding vehicles, resumes after dismounting
- Experience Monitoring: Monitors experience deduction intervals to prevent abnormal deductions
- Config Check: Automatically checks configuration integrity and fixes missing items
Installation Requirements
Required Dependencies
- Minecraft: 1.21.8
- Fabric Loader: ≥ 0.16.9
- Fabric API: Latest version
- Java: ≥ 21
Recommended Environment
- Server Environment: Fabric Server
- Client: Fabric Client
- Memory: ≥ 2GB RAM
Command List
Player Commands
| Command |
Permission |
Description |
/fly |
All players |
Enable/disable experience flight mode |
/flystatus |
All players |
View own flight status information |
Administrator Commands
| Command |
Permission |
Description |
/fly reload |
OP Level 4 |
Reload configuration files |
/fly cost <points> |
OP Level 4 |
Set experience consumption rate |
/fly enable |
OP Level 4 |
Enable survival mode flight |
/fly disable |
OP Level 4 |
Disable survival mode flight |
/fly ban <player> |
OP Level 4 |
Ban player from using flight |
/fly deban <player> |
OP Level 4 |
Unban player |
/fly banlist |
OP Level 4 |
View ban list |
/fly query |
OP Level 4 |
Query flying players list |
/fly debug [player] |
OP Level 4 |
View debug information |
/flystatus <player> |
OP Level 4 |
View other player's flight status |
/fly lang [language] |
OP Level 4 |
View or switch language |
/fly checkconfig |
OP Level 4 |
Check configuration integrity |
/fly updateconfig |
OP Level 4 |
Update missing configuration items |
Operation Methods
Basic Operation Flow
- Enable Flight: Use
/fly command to enable flight mode
- Takeoff: Double-tap spacebar to start flying
- Flight Control:
- Spacebar: Ascend
- Shift: Descend
- WASD: Move forward/backward/left/right
- Landing: Double-tap spacebar again to land
- Disable Flight: Use
/fly command to disable flight mode
Flight Status Description
- Flying: Continuously consumes experience points, shows remaining time
- Landed: Pauses experience consumption, shows remaining experience
- Riding Paused: Automatically pauses when riding vehicles, resumes after dismounting
- Auto Protection: Automatically disables when dying or switching to adventure mode
Configuration System
Configuration File Location
Configuration files are located in the server's config/hyskexpfly/ directory:
config/
└── hyskexpfly/
├── hyskexpfly.json # Main configuration file
└── lang.json # Language configuration file
Main Configuration (hyskexpfly.json)
{
"costPerSecond": 1,
"enableSurvivalFlight": true,
"bannedPlayers": []
}
Configuration Options Description
| Option |
Type |
Default |
Description |
costPerSecond |
Integer |
1 |
Experience points consumed per second |
enableSurvivalFlight |
Boolean |
true |
Whether to allow survival mode flight |
bannedPlayers |
Array |
[] |
List of banned players |
Banned Player Data Structure
{
"name": "PlayerName",
"uuid": "PlayerUUID",
"banTime": "BanTimestamp"
}
Language Configuration (lang.json)
{
"currentLanguage": "zh_cn",
"languages": {
"zh_cn": {
"flyEnabled": "§a飞行模式已开启!",
"flyDisabled": "§c飞行模式已关闭",
"notEnoughExp": "§c你没有足够的经验点来开启飞行!",
"...": "More translation items..."
},
"en_us": {
"flyEnabled": "§aFlight mode enabled!",
"flyDisabled": "§cFlight mode disabled",
"notEnoughExp": "§cYou don't have enough experience points to fly!",
"...": "More translations..."
}
}
}
Supported Languages
- zh_cn: Simplified Chinese
- en_us: English (US)
Configuration Modification Methods
Method 1: In-game Commands (Recommended)
# Modify experience consumption rate
/fly cost 5
# Enable/disable survival flight
/fly enable
/fly disable
# Switch language
/fly lang en_us
# Reload configuration
/fly reload
Method 2: Direct File Editing
- Stop the server
- Edit
config/hyskexpfly/hyskexpfly.json or config/hyskexpfly/lang.json
- Restart the server
Method 3: Hot Reload Configuration
# Execute in-game
/fly reload
Configuration Integrity Check
The mod provides automatic configuration checking and repair functions:
# Check configuration integrity
/fly checkconfig
# Automatically update missing configurations
/fly updateconfig
Auto-repair Features
- ✅ Automatically detects missing configuration items
- ✅ Fills in default values
- ✅ Validates configuration format
- ✅ Repairs corrupted configuration files
Configuration Best Practices
Balanced Server Settings
{
"costPerSecond": 2,
"enableSurvivalFlight": true,
"bannedPlayers": []
}
Hardcore Server Settings
{
"costPerSecond": 5,
"enableSurvivalFlight": true,
"bannedPlayers": ["Violator1", "Violator2"]
}
Creative Server Settings
{
"costPerSecond": 1,
"enableSurvivalFlight": false,
"bannedPlayers": []
}
Troubleshooting
Common Configuration Issues
-
Configuration Files Missing
- Solution: Use
/fly updateconfig to regenerate
-
Configuration Format Error
- Solution: Delete configuration files and use
/fly reload to regenerate
-
Language Display Abnormal
- Solution: Use
/fly lang zh_cn to reset language
-
Permissions Not Working
- Solution: Check OP permission level, requires OP Level 4
Custom Language
To add new language support:
- Add new language code in
lang.json's languages object
- Copy key-value pairs from existing languages and translate content
- Use
/fly lang <new-language-code> to switch
Example:
{
"currentLanguage": "zh_cn",
"languages": {
"zh_cn": { ... },
"en_us": { ... },
"ja_jp": {
"flyEnabled": "§a飛行モードが有効になりました!",
"flyDisabled": "§c飛行モードが無効になりました",
"...": "More Japanese translations..."
}
}
}
Technical Features
Mixin Injection System
- PlayerInputMixin: Detects player input, implements double-tap spacebar takeoff/landing
- PlayerRidingMixin: Handles riding state, automatically pauses and resumes flight
- Safe Injection: Uses Mixin framework to ensure compatibility with other mods
Experience Calculation System
- Precise Calculation: Uses Minecraft standard experience calculation formulas
- Real-time Updates: Automatically detects experience changes and updates display
- Safe Deduction: Monitors deduction intervals to prevent abnormal situations
State Management System
- Persistent Storage: Automatically restores flight status when players reconnect
- Safety Checks: Multiple safety checks to ensure state consistency
- Auto Repair: Automatically repairs state abnormalities when detected
This configuration system is designed to provide maximum flexibility and ease of use, allowing server administrators to easily adjust mod behavior to suit different gaming environments.~~~~
评论 0
登录后参与评分
还没有评论,来抢沙发吧