#built using mc-build (https://mcbuild.dev/)

bossbar set minecraft:time value 2
bossbar set time name [{"text":"View Time Remaining: "},{"text":"2 seconds","color":"red"}]
playsound minecraft:block.note_block.bass master @a ~ ~ ~ 10 1 1
execute if entity @a[tag=inround] run schedule function main:timerhard/1 1s