How to create a countdown timer that triggers an event on ending?
You can instead use /scoreboard players test
:
/scoreboard players test nonexistentuser timerObjective 0 0
The command succeeds if the number is 0, and fails if it is not. Just place a conditional chain command block after that with your /fill
command and it will only execute if the command succeeds.