Home›Java›Mods›Command on Death
Run commands on death.

Config:
Code (YAML):
# Commands on Death
# Made by NIN1275 --> youtube.com/@nin1275

# commands to run on the player on death
# DON'T PUT "/"
# Placeholders: [killed] shows the killed players name, [killer] shows the person who killed the player name, [noCommand] will not send the command.
commands-to-run
:
  killed
:
    command
: 'tellraw [killed ] [ "", { "text": "You died to ", "color": "red" }, { "text": "[killer]", "color": "gold" } ]'
    # if console is set to false then the command will be sent as the player which means they will need the permmision for that command
    console
: false
  killer
:
    command
: 'tellraw [killer ] [ "", { "text": "You killed ", "color": "green" }, { "text": "[killed]", "color": "red" } ]'
    # if console is set to true then the command will be sent as console
    console
: true

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Command on Death is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20. Downloaded 330 times (via Spigot). Download it and open it directly in the game.

Explore more