command /starttimer: trigger: send "Started the timer!" to player set {start} to true set {death} to false command /stoptimer: trigger: send "Stoped timer!" to player set {start} to false command /restardtimer: trigger: set {seconds} to 0 set {minutes} to 0 set {hours} to 0 send "Timer restarded!" to player every second in "world": if {start} = true: add 1 to {seconds} if {seconds} = 60: add 1 to {minutes} set {seconds} to 0 if {minutes} = 60: add 1 to {hours} set {minutes} to 0 loop all players: if {death} = false: send action bar "%{hours}%h %{minutes}%m %{seconds}%s" to loop-player if {death} = true: send action bar "Stopped Timer" to loop-player command /death: trigger: set gamemode of player to spectator set {death} to true on death of player: set gamemode of player to spectator set {death} to true