BlueGit

timfa death-firework

Files

death-firework / data / death_firework / function / on_death.mcfunction

on_death.mcfunction

on_death.mcfunction 861 B Download Raw
1# Spelers zonder geldige keuze krijgen rood.
2execute 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.
5scoreboard players set @s df_state 0
6
7execute if score @s df_color matches 1 run function death_firework:route/red
8execute if score @s df_color matches 2 run function death_firework:route/blue
9execute if score @s df_color matches 3 run function death_firework:route/yellow
10execute if score @s df_color matches 4 run function death_firework:route/green
11execute if score @s df_color matches 5 run function death_firework:route/pink
12execute if score @s df_color matches 6 run function death_firework:route/purple
13
14# Veiligheidsnet: een sterfgeval mag nooit stil verdwijnen.
15execute if score @s df_state matches 0 run function death_firework:launch/red/l60_t0_s1