Skip to content
[/craft]

Track Player Kills on a Scoreboard

Automatically count how many players each player kills

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Creates an objective using the playerKillCount criterion, which automatically goes up by one each time that player kills another player. Show it on the sidebar with /scoreboard objectives setdisplay sidebar kills to make a live PvP leaderboard. Use totalKillCount instead if you want kills of any mob to count, not just players.

/scoreboard objectives add kills playerKillCount {text:"Kills"}
63 characters

How to use

  1. Open chat (T on Java).
  2. Paste the command to create the auto-tracking objective.
  3. Press Enter.
  4. Optionally run /scoreboard objectives setdisplay sidebar kills to show a leaderboard.

Related commands

Become nearly invincible

/effect give @p resistance 999999 255 true

Create or resize the world border boundary

/worldborder set 500

Set up a scoreboard counter to track a value

/scoreboard objectives add points dummy {text:"Points"}

Display an objective's scores on the right side of the screen

/scoreboard objectives setdisplay sidebar points

Automatically count how many times each player dies

/scoreboard objectives add deaths deathCount {text:"Deaths"}

Make a team whose members can't hurt each other

/team add red /team modify red friendlyFire false /team join red @a