Mineuniverse
Log in Register
Mods

Mediumcore Fix

Fixes a MediumCore mod issue and bugs
by ringoway
Download Claim this project
3,213 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Addons

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

Sophisticated Backpacks: Realistic Crafting
5,591
Apotheosis Balance Configurator
45,745
Arcane Enchantments
431
Re:Avaritia: Armor
3,616
Dweller T2X2
318
Eternal Hunts [Cataclysm & Mowzie's Mobs & Born in Chaos]
1,847

You Might Also Like

SI: Scriptified [DISCONTINUED]
DISCONTINUED
99,868
FTB Quests Entity Visualization
Adds entity visualization to FTB Quests
99,525
JEI / REI WorldGen
JEI/REI Addon for World Gen Information with universal compatibility for all mods ores by utilizing biome generation data
99,419
Pixel Blocks
Pokemon Lucky Block! When mining the pixel block a random pokemon spawns.
9,988
TFC Bonsai
Add TFC Trees to bonsai pots
9,988
Laser Eyes
A "laser eyes" addon for the Viltrumite mod.
9,968