介绍
This mod aims to provide a simple way for modpacks to heal the player when/after sleeping, with customizability in mind.
It works by hooking into Minecraft’s net.minecraft.world.WorldServer class and waiting for it to call EntityPlayer.wakeUpPlayer inside this.wakeAllPlayers. Alternatively it will listen to PlayerWakeUpEvent if it’s configured to allow incomplete sleeps.
Configuration
Inside .minecraft/config/healerbed.cfg lies all mod configuration. It is self-documented.
What you can currently change:
- Health amount
- Hunger amount
- Regen/feed even if player leaves bed early
Supported versions
I made this mod for my personal use on 1.10.2, feel free to contribute code for other game versions.
AI Disclosure
Not a single line of code was written by AI, however I relied on AI to learn how to inject on game code (ASM).
常见问题
HealerBed 支持哪些 Minecraft 版本?
HealerBed 支持 Minecraft Java 版 1.10.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
HealerBed 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分