90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

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 worlds
  • setLivesOpLevel - 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 using maxRescueTimes config parameter. Requires op level 1+
  • /hardcore reset_rescue [playername] - Reset rescue 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)

Project members

zziger

Member

Details

Licensed MIT
Published 4 months ago
Updated 4 months ago