Countdown timer on screen
A seconds countdown shown to every player that ends with a big "Time is up" title. Built from one scoreboard and five command blocks.
You need
- 1 repeating command block
- 4 chain command blocks
1Set up and start
Run these to create the timer and set it to 60 seconds. Run the last two again to restart it.
/scoreboard objectives add timer dummyCreates the score that holds the clock.
/scoreboard players set seconds timer 60Sets the countdown to 60 seconds.
/scoreboard players set ticks timer 0Resets the tick counter.
2The clock
Repeating block first, then four chain blocks in this order. All Always Active.
/execute if score seconds timer matches 1.. run scoreboard players add ticks timer 1Counts game ticks while time is left.
/execute if score ticks timer matches 20.. run scoreboard players remove seconds timer 1Every 20 ticks, one second has passed.
/execute if score ticks timer matches 20.. if score seconds timer matches 0 run title @a title §cTime is upFires once, in the tick the countdown reaches zero.
/execute if score ticks timer matches 20.. run scoreboard players set ticks timer 0Starts counting the next second.
/titleraw @a actionbar {"rawtext":[{"text":"§eTime left: §f"},{"score":{"name":"seconds","objective":"timer"}},{"text":"s"}]}Shows the remaining seconds above the hotbar.
No command blocks? Use the function pack
This creation is included in the free 9Minecraft Command Creations behavior pack. Add the pack to your world, then type one command. It does the same thing as the command blocks above, driven by a tick function.
/function n9/countdown_timer_onTurns it on. All the setup commands from the steps above run for you.
/function n9/countdown_timer_offTurns it off again.
How it works
Minecraft runs 20 ticks per second, and a repeating command block runs once per tick. "seconds" and "ticks" are fake player names: scoreboard entries that do not belong to anyone, used here as variables. The order of the chain blocks matters: the title check must run before ticks is reset, or it would never see ticks at 20.
Make it your own
- Start from any length by changing the 60.
- Replace the title command with anything that should happen at zero, for example /tp @a 0 100 0 or /kill @e[type=zombie].
- For minutes and seconds, add a second score and divide with /scoreboard players operation.
Turn it off
/scoreboard objectives remove timerDeletes the timer.
Commands used
More command creations
Coins HUD above the hotbarShows each player their own coin balance above the hotbar at all times, using a scoreboard and titleraw.Easy HUD · 7 commands · videoFlower trailFlowers grow wherever a tagged player walks on grass.Easy World · 3 commandsIce bridge under your feetWater turns to ice in a 3 by 3 square under the player, so tagged players can walk across lakes and oceans.Easy Gameplay · 3 commandsJump pads and speed padsStep on an emerald block to be launched into the air, or on a gold block for a burst of speed.Easy Gameplay · 4 commandsLow gravity roomInside a box-shaped room, players jump high and float down slowly, like on the Moon.Easy Gameplay · 3 commands
Particle halo above every playerA ring of glowing end rod sparks floats above the head of every player and follows them around.Easy Particles · 10 commands · videoMore from 9Minecraft
Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.