Player Death Variables
Player death variables are filled by the Minecraft Player Died event.
Use them in Chat effects, overlays, counters, sound alerts, or log messages.
| Variable | What it gives you |
|---|---|
$minecraftPlayerName | Minecraft username. |
$minecraftPlayerDisplayName | Display name. |
$minecraftDeathMessage | Full death message from Minecraft. |
$minecraftDeathCause | Damage cause ID, such as fall, lava, or mob_attack. |
$minecraftDeathDimensionId | Raw dimension ID. |
$minecraftDeathDimensionDisplayName | Readable dimension name. |
$minecraftDeathPosition | Coordinates as one text value. |
$minecraftDeathX | X coordinate. |
$minecraftDeathY | Y coordinate. |
$minecraftDeathZ | Z coordinate. |
$minecraftDeathAttackerName | Attacker name when available. |
$minecraftDeathAttackerTypeId | Attacker entity ID when available. |
$minecraftDeathAttackerTypeDisplayName | Readable attacker type. |
$minecraftDeathDirectEntityName | Direct damage source name when available. |
$minecraftDeathDirectEntityTypeId | Direct damage source entity ID. |
$minecraftDeathDirectEntityTypeDisplayName | Readable direct source type. |
Example: Twitch chat death alert
- Create a Minecraft Player Died event.
- Add filter Channel is Live: true if you only want it while live.
- Add a Firebot Chat effect.
- Use this message:
$minecraftPlayerDisplayName died: $minecraftDeathMessage
Example: show death location
Death location: $minecraftDeathPosition in $minecraftDeathDimensionDisplayName
Example: attacker message
Killed by: $minecraftDeathAttackerTypeDisplayName
Direct source: $minecraftDeathDirectEntityTypeDisplayName