Mediumcore Fix
No reviews yet
Fixes a MediumCore mod issue and bugs
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources