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.

AdvancedHUD9 commandsRecorded in game 1.26.60
Recorded in Minecraft Bedrock 1.26.60.

You need

1Set up and start

Run these to create the timer and set it to 60 seconds. Run the last two again to restart it.

Chat
/scoreboard objectives add timer dummy

Creates the score that holds the clock.

Chat
/scoreboard players set seconds timer 60

Sets the countdown to 60 seconds.

Chat
/scoreboard players set ticks timer 0

Resets the tick counter.

2The clock

Repeating block first, then four chain blocks in this order. All Always Active.

Repeating block
/execute if score seconds timer matches 1.. run scoreboard players add ticks timer 1

Counts game ticks while time is left.

Chain block
/execute if score ticks timer matches 20.. run scoreboard players remove seconds timer 1

Every 20 ticks, one second has passed.

Chain block
/execute if score ticks timer matches 20.. if score seconds timer matches 0 run title @a title §cTime is up

Fires once, in the tick the countdown reaches zero.

Chain block
/execute if score ticks timer matches 20.. run scoreboard players set ticks timer 0

Starts counting the next second.

Chain block
/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_on

Turns it on. All the setup commands from the steps above run for you.

/function n9/countdown_timer_off

Turns it off again.

Download the pack (.mcpack) How to install it

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

Turn it off

/scoreboard objectives remove timer

Deletes the timer.

Commands used

More command creations

More from 9Minecraft

Command reference © 2026 9Minecraft.net. Syntax read from Minecraft Bedrock Edition 1.26.66.1.