Mineuniverse
Mods
Mediumcore Fix

Mediumcore Fix

MOD
Fixes a MediumCore mod issue and bugs
by ringoway
Download Claim this project
47,205 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Addons
Advertisement Remove ads with Premium →

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-1.0.1.jar
MC
Release 2026-01-20 Get
mediumcore_fix-1.0.0.jar
MC Client, 1.20.1, Forge, Server
Release 2026-01-18 Get

More from ringoway

Advertisement Remove ads with Premium →

You Might Also Like