Track Player Kills on a Scoreboard
Automatically count how many players each player kills
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Creates 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
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Paste the command to create the auto-tracking objective.
- Press Enter.
- Optionally run /scoreboard objectives setdisplay sidebar kills to show a leaderboard.
Related commands
Become nearly invincible
/effect give @p resistance 999999 255 trueSet 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 pointsAutomatically 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