modsmith Log in Log in Рус / Eng

Max Health Fix

max-health-fix · 2724873 downloads · LGPL-2.1-only

client: required · server: required (declared by the mod author)

Fixes a bug with max health in Minecraft.

Description

This mod fixes an old bug in Minecraft that causes the "Max Health" attribute to be ignored when a player joins the game. This bug will cause players with a health value greater than the default limit of 20 to be reset back down to 20 when they join the game. For example if the player is wearing a helmet that gives them +10 max health and they leave the game while having 25 health their health will be reset back to 20 when they rejoin the game.

This mod can be installed on the client and server. When installed on the client the bug will be fixed for your singleplayer worlds. When installed on the server the bug will be fixed for all players playing on the server, even those without the mod installed on their client.

You can test this bug using the following steps.

1. Create a new world with cheats enabled and creative mode turned off.
2. Use the /give command to give yourself a helmet with +10 max health. /give @p diamond_helmet{AttributeModifiers:[{AttributeName:"generic.max_health",Amount:20.0,Slot:head,Name:"generic.max_health",UUID:[I;-12158,12468,122112,-24936]}]} 1
3. Equip the helmet. Your max health should go from 20 to 30 (15 hearts).
4. Heal the player causing their health to be over 20.
5. Save the game and exit.
6. Rejoin the game.
7. Your health will be reset to 20. If the mod is installed it will not be.

Like the mod and want to support me?

Nodecraft sponsor banner

This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!

Versions (60)

VersionMinecraftLoadersFile
26.3.0.1 26.3 neoforge download
26.3.0.1 26.3 fabric download
26.2.0.1 26.2 neoforge download
26.2.0.1 26.2 fabric download
26.1.2.3 26.1, 26.1.1, 26.1.2 fabric download
26.1.2.3 26.1, 26.1.1, 26.1.2 neoforge download
26.1.2.1 26.1, 26.1.1, 26.1.2 fabric download
26.1.2.1 26.1, 26.1.1, 26.1.2 neoforge download
12.0.4 1.20.1 fabric download
12.0.4 1.20.1 forge download
21.1.4 1.21.1 neoforge download
21.1.4 1.21.1 forge download
21.1.4 1.21.1 fabric, quilt download
21.1.3 1.21.1 neoforge download
21.1.3 1.21.1 forge download
21.1.3 1.21.1 fabric, quilt download
21.1.2 1.21.1 neoforge download
21.1.2 1.21.1 forge download
21.1.2 1.21.1 fabric, quilt download
21.1.1 1.21.1 neoforge download
21.1.1 1.21.1 forge download
21.1.1 1.21.1 fabric, quilt download
12.0.3 1.20.1 fabric download
12.0.3 1.20.1 forge download
5.0.5 1.18.2 forge download
5.0.5 1.18.2 fabric download
15.0.4 1.20.4 neoforge download
15.0.4 1.20.4 forge download
15.0.4 1.20.4 fabric download
15.0.3 1.20.4 neoforge download
15.0.3 1.20.4 forge download
15.0.3 1.20.4 fabric download
15.0.2 1.20.4 neoforge download
15.0.2 1.20.4 forge download
15.0.2 1.20.4 fabric download
14.0.1 1.20.3 neoforge download
14.0.1 1.20.3 forge download
14.0.1 1.20.3 fabric download
13.0.2 1.20.2 neoforge download
13.0.2 1.20.2 forge download
13.0.2 1.20.2 fabric download
13.0.1 1.20.2 neoforge download
13.0.1 1.20.2 forge download
13.0.1 1.20.2 fabric download
12.0.2 1.20.1 forge download
12.0.2 1.20.1 fabric download
12.0.1 1.20.1 forge download
12.0.1 1.20.1 fabric download
5.0.4 1.18.2 forge download
5.0.4 1.18.2 fabric download
11.0.2 1.20 forge download
11.0.2 1.20 fabric download
11.0.1 1.20 forge download
11.0.1 1.20 fabric download
10.0.1 1.19.4 forge download
10.0.1 1.19.4 fabric, quilt download
9.0.2 1.19.3 forge download
9.0.2 1.19.3 fabric, quilt download
9.0.1 1.19.3 forge download
9.0.1 1.19.3 fabric, quilt download

Modrinth page →