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"}- 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
God Mode (Resistance + Regeneration)
Become nearly invincible
Set World Border Size
Create or resize the world border boundary
Create a Scoreboard Objective
Set up a scoreboard counter to track a value
Show a Scoreboard on the Sidebar
Display an objective's scores on the right side of the screen
Track Deaths on a Scoreboard
Automatically count how many times each player dies
Create a Team With Friendly Fire Off
Make a team whose members can't hurt each other