Player Combat Kill
Play 0x44, server → client.
play · 0x44 · clientbound (server → client)
Tells the client that the player with entity id playerId died, with the death message to show. The server sends it when the player dies, before the respawn screen. The client shows the death screen with the message if the respawn screen is enabled.
Sent by the server, read by the client. Listen for it with client.on("PlayerCombatKill", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
playerId |
VarInt | |
message |
NBT |
Send it
await client.sendPacket("PlayerCombatKill", {
playerId: /* VarInt */,
message: /* NBT */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/PlayerCombatKill.ts