Compatibility
Minecraft: Java Edition
1.21
Platforms
Fabric
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Installation and usage
Mod is required on server, and optional on client.
Clients without the mod will see player's lives in player list differently (scoreboard hearts), and will not see remaining lives on death screen.
This mod requires Fabric API.
This mod is disabled by default in singleplayer worlds. If you want to use it, you need to enable it in the MidnightLib config menu (either from ModMenu, or icon near difficulty picker in settings). Make sure to reenter your world after you change this setting.
Config
defaultLives
- Default amount of lives given to a new player. Also affects minimum heart count in player list.maxRescueTimes
- Max amount of times admin (op level 1+) can execute/hardcore rescue
enableInSinglePlayer
- Enables mod in singleplayer worldssetLivesOpLevel
- Op level required to execute/hardcore set_lives
(default 1)getLivesOpLevel
- Op level required to execute/hardcore get_lives
(default 1)rescueOpLevel
- Op level required to execute/hardcore rescue
(default 1)resetRescueOpLevel
- Op level required to execute/hardcore reset_rescue
(default 4)
Commands
/hardcore set_lives [playername] [count]
- Set playername's lives to count. Works on offline players and@a
. Requires op level 1+/hardcore get_lives [playername]
- Get playername's remaining lives. Works on offline players and@a
(lists all players). Requires op level 1+/hardcore rescue [playername]
- If playername has used all their lives, using this command player will be given 1 additional life, and respawned on world spawn (even if player has bed - respawn will happen on world spawn). Max amount of times this can be used on a player is defined usingmaxRescueTimes
config parameter. Requires op level 1+/hardcore reset_rescue [playername]
- Resetrescue
counter for playername. Requires op level 4
Features
- Remaining players' lives are displayed as hearts in player list
- Remaining player lives are displayed on death screen
- Hardcore state is forced from server.properties (doesn't require to edit or recreate world anymore)