介绍
Mediumcore Fix
Fixes health data loss when updating Alex’s Mediumcore mod
Problem
The original Mediumcore in onLivingDeath uses player.getMaxHealth(), which INCLUDES modifiers from external sources (rings, armor, etc.).
Example with a +20 HP ring:
- maxHealth = 40 (20 base + 20 ring)
- clippedHealth = clip(40 – 2, 6, 20) = 20 (clamped to maxPlayerHealth!)
- healthModifiedBy = 0 + (20 – 40) = -20!
- After respawn: maxHealth = 20 + 0 + (-20) = 0 HP → the player gains 1 HP.
Solution
Introduce BASE_HEALTH_TAG to store the “pure” base health, which is independent of external modifiers.
常见问题
Mediumcore Fix 支持哪些 Minecraft 版本?
Mediumcore Fix 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
Mediumcore Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
ringoway 的其他作品
查看全部 →
Apotheosis Balance Configurator
Configure Apotheosis balance through simple config file - no JSON editing required!
Apotheosis Balance Configurator
Configure Apotheosis balance through simple config file - no JSON editing required!
Resonant Synthesis [Deeper and Darker]
New progression, armor, and accessories for "Deeper and Darker"
Mediumcore Fix
Fixes a MediumCore mod issue and bugs
评论
登录后评论和评分