MiningFatigue3Fix
修复了挖掘疲劳 III 导致的异常挖掘速度问题(MC-279819)。
原版仅在 26.3 中正式修复了此问题,本插件为 26.3 之前的版本提供临时修复。
问题描述
当挖掘疲劳等级从 II 级提升至 III 级时,速度乘数错误地使用了 0.03 而非 0.3,导致:
| 状态 |
速度乘数 |
实际效果 |
| 错误(当前) |
0.0027 |
大约慢 370 倍 |
| 正确(预期) |
0.027 |
大约慢 37 倍 |
本插件通过临时添加 BLOCK_BREAK_SPEED 属性修正器,将错误的速度修正为正确值。
功能特性
- 自动调整拥有挖掘疲劳 III 的玩家挖掘速度
- 支持开启/关闭命令,允许即时激活/停用
- 开关状态持久保存,重启后不丢失
- 轻量级设计,几乎无性能影响
- 仅影响挖掘疲劳 III,不影响其他等级
环境要求
- Minecraft 1.20.5 ~ 26.2
- Core Paper / Spigot / Purpur 等(只要支持 Bukkit API 即可)
- Java 21 或更高版本(26.x 需要 Java 25)
安装方法
- 下载最新版本的
MiningFatigue3Fix-x.x.x.jar
- 将其放入服务器的
plugins 文件夹中
- 重启服务器
使用说明
| 命令 |
描述 |
权限 |
/mf3fix |
查看当前状态 |
miningfatigue3fix.toggle |
/mf3fix on |
启用修复 |
同上 |
/mf3fix off |
关闭修复 |
同上 |
/mf3 |
同上(别名) |
同上 |
/miningfatigue3fix |
同上(别名) |
同上 |
默认权限为 op。
权限
| 权限节点 |
描述 |
默认值 |
miningfatigue3fix.toggle |
允许使用切换命令 |
op |
工作原理
当玩家拥有挖掘疲劳 III 时(amplifier = 2),插件会添加一个 MULTIPLY_SCALAR_1 属性修正器,将挖掘速度乘以 10,从而将错误值 0.0027 修正为正确的 0.027。
当效果消失或插件被关闭时,该修正器会自动移除。
开关状态保存在 config.yml 中,重启服务器后依然有效。
注意事项
- 仅支持 Minecraft 1.20.5 ~ 26.2(需要
BLOCK_BREAK_SPEED 属性)
- 将服务器更新到 26.3 或更高版本后,原版已修复此问题,您可以直接卸载本插件
- 1.20.4 及更早版本由于缺乏相关属性,无法使用本插件
许可证
本项目基于 MIT License 开源。
致谢
MiningFatigue3Fix
Fixed the issue of abnormal mining speed in Mining Fatigue III (MC-279819).
The original version only officially fixed this issue in 26.3, and this plugin provides a temporary fix for versions prior to 26.3.
Problem description
When the excavation fatigue level was upgraded from Level II to Level III, the speed multiplier erroneously used 0.03 instead of 0.3, resulting in:
| Status |
Speed Multiplier |
Actual Effect |
| Error (current) |
0.0027 |
Approximately 370 times slower |
| Correct (expected) |
0.027 |
Approximately 37 times slower |
This plugin corrects the incorrect speed to the correct value by temporarily adding the BLOCK_BREAK_SPEED attribute modifier.
Functional Features
- Automatically adjust the mining speed of players with Mining Fatigue III
- Supports on/off commands, allowing for instant activation/deactivation
- The switch status is saved persistently, ensuring it is not lost upon restart
- Lightweight design, with almost no performance impact
- Only affects Excavation Fatigue III, and does not affect other levels
Environmental requirements
- Minecraft 1.20.5 ~ 26.2
- Core Paper / Spigot / Purpur, etc. (as long as they support Bukkit API)
- Java 21 or higher (26.x requires Java 25)
Installation method
- Download the latest version of
MiningFatigue3Fix-x.x.x.jar
- Place it in the
plugins folder of the server
- Restart the server
Instructions
| Command |
Description |
Permissions |
/mf3fix |
View current status |
miningfatigue3fix.toggle |
/mf3fix on |
Enable repair |
Ditto |
/mf3fix off |
Turn off repair |
Ditto |
/mf3 |
ditto (alias) |
ditto |
/miningfatigue3fix |
ditto (alias) |
ditto |
The default permission is op.
Permissions
| Permission node |
Description |
Default |
miningfatigue3fix.toggle |
Allow the use of toggle commands |
op |
Working principle
When the player has Excavation Fatigue III (amplifier = 2), the plugin will add a MULTIPLY_SCALAR_1 attribute modifier to multiply the excavation speed by 10, thereby correcting the error from 0.0027 to the correct 0.027.
When the effect disappears or the plugin is closed, the modifier will be automatically removed.
The switch state is saved in config.yml and remains valid after restarting the server.
Precautions
- Only supports Minecraft 1.20.5 ~ 26.2 (requires the
BLOCK_BREAK_SPEED attribute)
- After updating the server to version 26.3 or later, the original version has already fixed this issue, so you can directly uninstall this plugin
- Versions 1.20.4 and earlier cannot use this plugin due to the lack of relevant attributes
License
This project is open-sourced under the MIT License.
Acknowledgements
评论 0
登录后参与评分
还没有评论,来抢沙发吧