Datapack for the New Life multiplayer gamemode
To center the world border on the player, configure lives, clear advancements, and center the altar on the player run /function new_life:game/setup
.
To only move the altar tun /function new_life:game/set_altar
.
Following setup, /function new_life:game/start
can be used to expand the world border
As mentioned before, each player starts with a specific number of lives, and loses one on each death. After losing their last life, they are given a gray name and set to spectator mode.
Gaining and transfering lives is done through a custom spellbook. On servers, it's common to have one book placed in a specific place (e.g. an ancient city). To get the book, run /function new_life:debug/give_book. A crafting recipe or loot table may be added in the future.
To gain lives, you drop a Sacrifical Totem near an altar and cast the spell from the book (you just click on it) which will consume 15 levels if successful and grant the caster a new life. Transfering lives is much simpler, giving one life to the nearest player within a 5 block radius without requiring any levels.
Because of the current crafting system, naturally acquired Totems of Undying will be replaced with Sacrifical Totems. Though if you're playing this in singleplayer this treads the line of being an intended feature so I won't treat it as a bug.
As New Life is meant to be played in a small world border with more focus on PVP rather than resource-gathering, the default enchanting table recipe has been removed. Instead, it's common to place an enchanting table in a specific location (e.g. an ancient city).
Taste for Death - Kill another player
Fatality - Kill a red player while on your last life
Tomb Raider - Acquire the Ancient Spellbook
Premortal - Grant yourself a new life with a Sacrifical Totem
Collector's Edition - Reach at least five lives using Sacrifical Totems
Sharing is Caring - Give away one of your lives using the Spellbook