Rust-like death system for Minecraft servers
This project aims to revamp the Minecraft death system. When a player dies by any means, they are not automatically "truly" killed - their body lays on the floor, unmoving, and can be looted or revived by other players. If the dying player can't get help and wishes to give up, they can use the mortem command to do so.
- Upon death, the player is put into spectator mode, and an NPC is created and animated to lie down at the death location. The spectator cannot move out of the block they were in when they died.
- A dying player can be looted by right-clicking a block in their vicinity. If the player clicking is sneaking, they revive the other player.
- If the reviving player moves, the process is cancelled.
- If for some reason either player logs out of the server, the process is cancelled.
- Upon "true" death, the NPC is removed and replaced with a skeleton skull, which can be looted like normal. If the grave is looted completely, the skeleton skull is removed.
- True death is only triggered by the
mortemcommand, but it can be used regardless of whether the player is dying or not. - The custom event
mortal_mortemfires. This is useful for announcing a custom death message, as none is sent by default.- If you determine the output as
keep_flag, then the flagmortal.mortemwill not be removed from the player by default.
- If you determine the output as
- True death is only triggered by the
Clone using git:
git clone https://github.com/acikek/mortalUse dzp for additional features.
mortal_mortem
mortal_create_gravemortal_find_dying_playermortal_revivemortal_true_death
mortalmortal_actionsmortal_cancel_state
MIT © 2022 Skye P.