Dragon Egg Hearts is a Fabric mod for Minecraft 1.21.11 that gives players bonus max health while carrying a Dragon Egg in their inventory.
By default, carrying a Dragon Egg doubles base health (+10 hearts / +20 health), and can also apply a glowing outline and red player name. The mod also supports blocking Dragon Egg storage in containers (including shulkers and bundles), depending on config.
Configuration is generated on first launch at: config/dragonegghearts.json
Config options:
-
doubleHearts (boolean) If true, Dragon Egg gives +10 hearts (+20 health) and ignores extraHearts.
-
extraHearts (number) Used only when doubleHearts is false. Example: 5.0 gives +5 hearts (+10 health).
-
outline (boolean) If true, players carrying a Dragon Egg get a glowing outline.
-
redPlayerName (boolean) If true, players carrying a Dragon Egg have a red name in the player list/scoreboard contexts.
-
allowStorageInContainers (boolean) If false, Dragon Eggs cannot be stored in non-player containers (including shulkers and bundles). If true, Dragon Eggs can be stored normally.
Requirements:
• Fabric Loader • Fabric API • Java 21
Compatible with dedicated servers and also works in singleplayer.

