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.

VariableWhat it gives you
$minecraftPlayerNameMinecraft username.
$minecraftPlayerDisplayNameDisplay name.
$minecraftDeathMessageFull death message from Minecraft.
$minecraftDeathCauseDamage cause ID, such as fall, lava, or mob_attack.
$minecraftDeathDimensionIdRaw dimension ID.
$minecraftDeathDimensionDisplayNameReadable dimension name.
$minecraftDeathPositionCoordinates as one text value.
$minecraftDeathXX coordinate.
$minecraftDeathYY coordinate.
$minecraftDeathZZ coordinate.
$minecraftDeathAttackerNameAttacker name when available.
$minecraftDeathAttackerTypeIdAttacker entity ID when available.
$minecraftDeathAttackerTypeDisplayNameReadable attacker type.
$minecraftDeathDirectEntityNameDirect damage source name when available.
$minecraftDeathDirectEntityTypeIdDirect damage source entity ID.
$minecraftDeathDirectEntityTypeDisplayNameReadable direct source type.

Example: Twitch chat death alert

  1. Create a Minecraft Player Died event.
  2. Add filter Channel is Live: true if you only want it while live.
  3. Add a Firebot Chat effect.
  4. Use this message:
$minecraftPlayerDisplayName died: $minecraftDeathMessage

Example: show death location

Death location: $minecraftDeathPosition in $minecraftDeathDimensionDisplayName

Example: attacker message

Killed by: $minecraftDeathAttackerTypeDisplayName
Direct source: $minecraftDeathDirectEntityTypeDisplayName