| 1 | # Spelers zonder geldige keuze krijgen rood. |
| 2 | execute unless score @s df_color matches 1..6 run scoreboard players set @s df_color 1 |
| 3 | |
| 4 | # Houd per speler bij of een route daadwerkelijk vuurwerk lanceerde. |
| 5 | scoreboard players set @s df_state 0 |
| 6 | |
| 7 | execute if score @s df_color matches 1 run function death_firework:route/red |
| 8 | execute if score @s df_color matches 2 run function death_firework:route/blue |
| 9 | execute if score @s df_color matches 3 run function death_firework:route/yellow |
| 10 | execute if score @s df_color matches 4 run function death_firework:route/green |
| 11 | execute if score @s df_color matches 5 run function death_firework:route/pink |
| 12 | execute if score @s df_color matches 6 run function death_firework:route/purple |
| 13 | |
| 14 | # Veiligheidsnet: een sterfgeval mag nooit stil verdwijnen. |
| 15 | execute if score @s df_state matches 0 run function death_firework:launch/red/l60_t0_s1 |