minerace/data/emk/functions/kart/finish.mcfunction

34 lines
3.8 KiB
Mcfunction
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#tp @p[tag=emk-sel] ~ ~ ~
scoreboard players operation @p[tag=emk-sel] emk-place = @s emk-place
clear @p[tag=emk-sel]
replaceitem entity @p[tag=emk-sel] weapon.offhand minecraft:air
tag @s add emk-finished
#? points depending on place and total players (2+(players-place)*3)
#execute store result score #tmp emk-id at @e[tag=emk-map,distance=..500,limit=1] if entity @a[distance=..500]
#players × 2 - place
scoreboard players operation @p[tag=emk-sel] emk-points += @e[tag=emk-map,distance=..500,limit=1] emk-id
scoreboard players operation @p[tag=emk-sel] emk-points += @e[tag=emk-map,distance=..500,limit=1] emk-id
scoreboard players operation @p[tag=emk-sel] emk-points -= @s emk-place
#scoreboard players set #tmp emk-stun 3
#scoreboard players operation #tmp emk-id *= #tmp emk-stun
#execute if score #tmp emk-id matches 1.. run scoreboard players add @p[tag=emk-sel] emk-points 2
tp @s ~ -10 ~
#normal
#execute unless score @p[tag=emk-sel] emk-fw matches 1.. run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;14602026,15435844],FadeColors:[I;15435844,11743532]}]}}},LifeTime:20}
execute unless score @p[tag=emk-sel] emk-fw matches 1.. run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;16758835,16754976,16745500],FadeColors:[I;16738327,16733972]}]}}},LifeTime:20}
#blue
execute if score @p[tag=emk-sel] emk-fw matches 1 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;3029209,2858969,3587321],FadeColors:[I;1652985,1525503]}]}}},LifeTime:20}
#green
execute if score @p[tag=emk-sel] emk-fw matches 2 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;2424604,2419996,1697812],FadeColors:[I;1688084,1292045]}]}}},LifeTime:20}
#trans
execute if score @p[tag=emk-sel] emk-fw matches 3 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;6016762,16099768],FadeColors:[I;16777215]}]}}},LifeTime:20}
#nonbiney
execute if score @p[tag=emk-sel] emk-fw matches 4 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;16774195,16777215,10181072,0],FadeColors:[I;16774195,16777215,10181072,0]}]}}},LifeTime:20}
#execute if score @p[tag=emk-sel] emk-fw matches 3 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;16774195,10181072],FadeColors:[I;16777215,0]}]}}},LifeTime:20}
#lbsenai
execute if score @p[tag=emk-sel] emk-fw matches 5 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;14035200,16751445,16777215,13918630,10813538],FadeColors:[I;14035200,16751445,16777215,13918630,10813538]}]}}},LifeTime:20}
#gay
execute if score @p[tag=emk-sel] emk-fw matches 6 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;14942465,16747520,16772352,32798,19711,7668615],FadeColors:[I;14942465,16747520,16772352,32798,19711,7668615]}]}}},LifeTime:20}
#black&white
execute if score @p[tag=emk-sel] emk-fw matches 7 run summon minecraft:firework_rocket ^ ^.5 ^1 {FireworksItem:{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:1b,Explosions:[{Type:0b,Colors:[I;0,16777215]}]}}},LifeTime:20}
kill