Heart Container

Right-click while holding a Heart Container to consume it and permanently add one heart (2 health points) to your maximum health. It also restores 2 health points. Upgrades survive death, dimension travel and relogging. A container is not consumed at the limit; Creative use grants the upgrade without consuming the held item.
Starting from the normal 10 hearts, consume up to 30 containers for 40 hearts / 80 health points. The ordinary ten-icon heart bar displays filled health in overlapping coloured layers: red → yellow → blue → green. At 11 full hearts the first icon is yellow and the others red; at 21 it is blue over a yellow bar; at 31 it is green over a blue bar. Damage removes the higher layers first. Half hearts are supported. Temporary absorption uses a separate gold row.
Acquisition
- Craft four Heart Pieces in a filled 2×2 grid to make one Heart Container.
- Warden, Wither and Ender Dragon deaths each drop one container, provided mob drops and Heart Container drops are enabled. Looting does not multiply this reward.
- Datapacks can add future bosses to the
experience_works:heart_container_bossesentity-type tag.
There is no XP cost. The extra-heart limit is configurable from 0–30 with heart_containers.max_extra_hearts. Containers refuse upgrades that would raise the current maximum above 80 health, including maximum-health bonuses from other sources. Other mods' health above 80 uses the ordinary heart renderer.
Recipe · Behaviour and persistence

In-game HUD at 80 health: ten green icons represent four full layers.