HealerBed
Heals and nourishes you during or after rest.
This mod is designed to offer an easy solution for modpacks to restore the player’s health during or after sleep, featuring customizable options for enhanced gameplay.
It operates by integrating with Minecraft’s `net.minecraft.world.WorldServer` class, waiting for the invocation of `EntityPlayer.wakeUpPlayer` within `this.wakeAllPlayers`. Alternatively, it can respond to `PlayerWakeUpEvent` if set to allow for unfinished sleep sessions.
The configuration for this mod is found in `.minecraft/config/healerbed.cfg`, which includes self-explanatory documentation.
This mod was originally developed for personal use on version 1.10.2, and contributions for support on additional game versions are welcomed.
Every line of code was crafted without AI assistance, but I utilized AI resources to understand how to integrate with the game code (ASM).