TNTRun

TNTRun Using Only Commands!

Supported Versions:

26.1+

Commands by Row:

Row 1

1. [impulse] /scoreboard players set tntRunPlayers tntRun 0
2. [chain] /scoreboard players set tntRunCountdownTimer tntRun 300
3. [chain] /scoreboard players set tntRunReset tntRun 0
4. [chain] /scoreboard players set tntRunBlockTimer tntRun 10
5. [chain] /scoreboard players set tntRunStarted tntRun 0

Row 2

6. [repeat] /execute if score tntRunReset tntRun matches 1 unless entity @e[tag=tntRunReseter] run summon minecraft:armor_stand ~ ~1 ~ {NoGravity:1,Tags:["tntRunReseter"]}
7. [chain] /execute if score tntRunReset tntRun matches 1 unless entity @e[tag=tntRunReseterTop] run summon minecraft:armor_stand ~ ~1 ~ {NoGravity:1,Tags:["tntRunReseterTop"]}
8. [chain] /execute as @e[tag=tntRunReseter] at @s unless entity @e[tag=tntRunReseterTop,distance=..0.5] unless block ~ ~-1 ~ air run fill ~ ~-1 ~ ~ ~-1 ~ minecraft:light_blue_wool
9. [chain] /execute as @e[tag=tntRunReseter] at @s unless entity @e[tag=tntRunReseterTop,distance=..1] run tp @s ~ ~1 ~
10. [chain] /execute as @e[tag=tntRunReseter] at @s if entity @e[tag=tntRunReseterTop,distance=..1] run scoreboard players set tntRunReset tntRun 0
11. [chain] /execute if score tntRunReset tntRun matches 0 run kill @e[tag=tntRunReseter]
12. [chain] /execute if score tntRunReset tntRun matches 0 run kill @e[tag=tntRunReseterTop]

Row 3

13. [repeat] /execute if score tntRunPlayers tntRun matches 1.. if score tntRunStarted tntRun matches 0 run scoreboard players remove tntRunCountdownTimer tntRun 1
14. [chain] /execute if score tntRunCountdownTimer tntRun matches 200 run title @a[tag=tntRunJoin] title "10"
15. [chain] /execute if score tntRunCountdownTimer tntRun matches 100 run title @a[tag=tntRunJoin] title "5"
16. [chain] /execute if score tntRunCountdownTimer tntRun matches 80 run title @a[tag=tntRunJoin] title "4"
17. [chain] /execute if score tntRunCountdownTimer tntRun matches 60 run title @a[tag=tntRunJoin] title "3"
18. [chain] /execute if score tntRunCountdownTimer tntRun matches 40 run title @a[tag=tntRunJoin] title "2"
19. [chain] /execute if score tntRunCountdownTimer tntRun matches 20 run title @a[tag=tntRunJoin] title "1"
20. [chain] /execute if score tntRunCountdownTimer tntRun matches 0 run title @a[tag=tntRunJoin] title "GO"
21. [chain] /execute if score tntRunCountdownTimer tntRun matches 0 run scoreboard players set tntRunStarted tntRun 1
22. [chain] /execute if score tntRunCountdownTimer tntRun matches 0 run scoreboard players set tntRunCountdownTimer tntRun 300
23. [chain] /execute if score tntRunPlayers tntRun matches 0 if score tntRunStarted tntRun matches 0 run scoreboard players set tntRunCountdownTimer tntRun 300

Row 4

24. [repeat] /execute as @a[tag=tntRunJoin,tag=!tntRunLost] at @s if score tntRunStarted tntRun matches 1 if block ~ ~-1 ~ bedrock run title @s title "Game Over"
25. [chain] /execute as @a[tag=tntRunJoin,tag=!tntRunLost] at @s if score tntRunStarted tntRun matches 1 if block ~ ~-1 ~ bedrock run tellraw @s [{"score":{"name":"tntRunPlayers","objective":"tntRun"}}," Place: ",{"selector":"@s"}]
26. [chain] /execute as @a[tag=tntRunJoin,tag=!tntRunLost] at @s if score tntRunStarted tntRun matches 1 if block ~ ~-1 ~ bedrock run scoreboard players remove tntRunPlayers tntRun 1
27. [chain] /execute as @a[tag=tntRunJoin] at @s if score tntRunStarted tntRun matches 1 if block ~ ~-1 ~ bedrock run tag @s add tntRunLost

Row 5

28. [repeat] /execute if score tntRunStarted tntRun matches 1 if score tntRunPlayers tntRun matches 0 run tp @a[tag=tntRunJoin] ~ ~5 ~ 180 0
29. [chain] /execute if score tntRunStarted tntRun matches 1 if score tntRunPlayers tntRun matches 0 run tag @a[tag=tntRunJoin] remove tntRunLost
30. [chain] /execute if score tntRunStarted tntRun matches 1 if score tntRunPlayers tntRun matches 0 run tag @a[tag=tntRunJoin] remove tntRunJoin
31. [chain] /execute if score tntRunStarted tntRun matches 1 if score tntRunPlayers tntRun matches 0 run scoreboard players set tntRunReset tntRun 1
32. [chain] /execute if score tntRunStarted tntRun matches 1 if score tntRunPlayers tntRun matches 0 run scoreboard players set tntRunStarted tntRun 0

Row 6

33. [repeat] /execute as @a[tag=tntRunJoin] at @s if score tntRunStarted tntRun matches 1 if block ~ ~-1 ~ minecraft:light_blue_wool unless entity @e[tag=tntRunTouchedBlock,type=minecraft:armor_stand,distance=..0.5] run summon minecraft:armor_stand ~ ~ ~ {Tags:["tntRunTouchedBlock"]}
34. [chain] /execute as @e[tag=tntRunTouchedBlock] at @s run scoreboard players add @s tntRun 1
35. [chain] /execute as @e[tag=tntRunTouchedBlock] at @s if score @s tntRun >= tntRunBlockTimer tntRun run setblock ~ ~-1 ~ air destroy
36. [chain] /execute as @e[tag=tntRunTouchedBlock] at @s if score @s tntRun >= tntRunBlockTimer tntRun run kill @e[type=item,distance=..2]
37. [chain] /execute as @e[tag=tntRunTouchedBlock] at @s if block ~ ~-1 ~ air run kill @s

Preview

impulse
chain
chain
chain
chain
repeat
chain
chain
chain
chain
chain
chain
repeat
chain
chain
chain
chain
chain
chain
chain
chain
chain
chain
repeat
chain
chain
chain
repeat
chain
chain
chain
chain
repeat
chain
chain
chain
chain

Video

Too lazy to copy and paste each command?