跳到正文

Mediumcore Fix

作者:ringoway

Fixes a MediumCore mod issue and bugs

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

A mod called Heartcore Mode has been created; it is similar to Mediumcore, features many new additions and bug fixes, and works with version 1.21.1! (under review…)

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 的其他作品

查看全部 →