FixItem
一款简单而强大的 Minecraft Forge 模组,为你的服务器或单人世界添加了物品修复和耐久度管理命令。
? 功能
? 物品修复命令
/fix - 立即将主手持有的物品修复至满耐久度
/setdurability <amount> - 为手持物品设置特定的耐久度数值
/setdurabilitypercent <percent> - 以百分比(0-100%)设置耐久度
⚙️ 管理员控制
/fixcommands allow - 启用修复命令(需要 OP 等级 4)
/fixcommands deny - 禁用修复命令(需要 OP 等级 4)
- 持久化配置 - 设置会自动保存和加载
?️ 安全特性
- 命令仅对可损坏的物品生效
- 基于权限的访问控制(修复命令需要 OP 等级 2)
- 自动客户端同步以防止视觉故障
- 带有用户友好消息的错误处理
? 使用方法
基础物品修复
在主手中持有任意可损坏的物品(工具、武器、护甲)并运行:
/fix
需要 OP 等级 2
高级耐久度控制
设置精确的耐久度数值:
/setdurability 100
以百分比设置耐久度:
/setdurabilitypercent 75.5
服务器管理
启用/禁用模组的命令:
/fixcommands allow
/fixcommands deny
需要 OP 等级 4
? 演示画廊
基础物品修复
使用 /fix 将受损的钻石镐瞬间修复至满耐久度
基于百分比的耐久度控制
使用 /setdurabilitypercent 10 将物品耐久度设置为 10%
精确耐久度管理
通过 /setdurability 命令精确控制耐久度
管理员切换系统
服务器管理员可以使用 /fixcommands allow|deny 启用/禁用修复命令
⚡ 安装
- 下载 来自 GitHub Releases 的最新版本
- 安装 Minecraft Forge 55.0.21 或兼容版本
- 放置
.jar 文件到你的 mods 文件夹中
- 启动 带有 Forge 配置文件的 Minecraft
要求
- Minecraft: 1.21.5
- Forge: 55.0.21+
- 仅限服务器端
? 配置
模组会在 config/fix_commands.json 自动生成一个配置文件:
{
"enabled": true
}
enabled: 控制玩家是否可以使用修复命令
- 配置在服务器重启后保持不变
- 可以通过游戏内命令或直接编辑文件进行修改
? 权限
| 命令 |
权限等级 |
描述 |
/fix |
OP 等级 2 |
修复物品 |
/setdurability |
OP 等级 2 |
设置精确耐久度 |
/setdurabilitypercent |
OP 等级 2 |
设置百分比耐久度 |
/fixcommands |
OP 等级 4 |
切换命令可用性 |
? 已知问题
- 物品必须位于主手(不支持副手)
- 仅适用于原版可损坏物品
- 其他模组的自定义耐久度机制可能不兼容
? 贡献
欢迎贡献!请随时在 GitHub 上提交问题、功能请求或拉取请求。
从源代码构建
git clone https://github.com/wsadqert/minecraft-FixItem.git
cd FixItem
./gradlew build
? 许可证
保留所有权利 - 详情请参阅 LICENSE 文件。
? 支持
? 链接
- GitHub 仓库:
- CurseForge:
- Modrinth:
由 wsadqert ❤️ 制作
如果你喜欢这个模组,请在 GitHub 上给它点个 ⭐!
FixItem
A simple yet powerful Minecraft Forge mod that adds item repair and durability management commands to your server or singleplayer world.
? Features
? Item Repair Commands
/fix - Instantly repair the item in your main hand to full durability
/setdurability <amount> - Set specific durability value for the held item
/setdurabilitypercent <percent> - Set durability as a percentage (0-100%)
⚙️ Admin Controls
/fixcommands allow - Enable fix commands (OP level 4 required)
/fixcommands deny - Disable fix commands (OP level 4 required)
- Persistent configuration - settings are saved and loaded automatically
?️ Safety Features
- Commands only work on damageable items
- Permission-based access control (OP level 2 for repair commands)
- Automatic client synchronization to prevent visual glitches
- Error handling with user-friendly messages
? Usage
Basic Item Repair
Hold any damageable item (tools, weapons, armor) in your main hand and run:
/fix
Requires OP level 2
Advanced Durability Control
Set exact durability values:
/setdurability 100
Set durability as percentage:
/setdurabilitypercent 75.5
Server Administration
Enable/disable the mod's commands:
/fixcommands allow
/fixcommands deny
Requires OP level 4
? Demo Gallery
Basic Item Repair
Using /fix to instantly repair a damaged diamond pickaxe to full durability
Percentage-Based Durability Control
Setting item durability to 10% using /setdurabilitypercent 10
Exact Durability Management
Precisely controlling durability with /setdurability command
Admin Toggle System
Server administrators can enable/disable fix commands with /fixcommands allow|deny
⚡ Installation
- Download the latest release from GitHub Releases
- Install Minecraft Forge 55.0.21 or compatible version
- Place the
.jar file in your mods folder
- Launch Minecraft with the Forge profile
Requirements
- Minecraft: 1.21.5
- Forge: 55.0.21+
- Server-only
? Configuration
The mod automatically creates a configuration file at config/fix_commands.json:
{
"enabled": true
}
enabled: Controls whether fix commands are available to players
- Configuration persists across server restarts
- Can be modified via in-game commands or by editing the file directly
? Permissions
| Command |
Permission Level |
Description |
/fix |
OP Level 2 |
Repair items |
/setdurability |
OP Level 2 |
Set exact durability |
/setdurabilitypercent |
OP Level 2 |
Set percentage durability |
/fixcommands |
OP Level 4 |
Toggle command availability |
? Known Issues
- Items must be in the main hand (off-hand not supported)
- Only works with vanilla damageable items
- Custom durability mechanics from other mods may not be compatible
? Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests on GitHub.
Building from Source
git clone https://github.com/wsadqert/minecraft-FixItem.git
cd FixItem
./gradlew build
? License
All Rights Reserved - See LICENSE file for details.
? Support
? Links
- GitHub Repository:
- CurseForge:
- Modrinth:
Made with ❤️ by wsadqert
If you enjoy this mod, consider giving it a ⭐ on GitHub!
评论 0
登录后参与评分
还没有评论,来抢沙发吧