20 lines
1.6 KiB
Mcfunction
20 lines
1.6 KiB
Mcfunction
|
scoreboard players set @s dut_count 6400
|
||
|
scoreboard players operation @s dut_count -= @s dut_motion_y
|
||
|
scoreboard players operation @s[scores={dut_count=..6280}] dut_motion_y += @s dut_acceleration_y
|
||
|
scoreboard players add @s[scores={dut_count=6281..6370}] dut_motion_y 3
|
||
|
scoreboard players add @s[scores={dut_count=6371..}] dut_motion_y 1
|
||
|
scoreboard players set @s[scores={dut_motion_y=4801..}] dut_motion_y 4800
|
||
|
execute store result entity @s Motion[1] double 0.001 run scoreboard players get @s dut_motion_y
|
||
|
playsound minecraft:block.fire.extinguish voice @a ~ ~-12.8 ~ 0.5 1.6
|
||
|
playsound minecraft:block.fire.extinguish voice @a ~ ~-0.8 ~ 0.3 0.4
|
||
|
particle minecraft:soul_fire_flame ~ ~-0.8 ~ 0.1 0.1 0.1 0.01 1 force
|
||
|
particle minecraft:soul_fire_flame ~ ~-0.8 ~ 0.2 0.2 0.2 0.06 3 force
|
||
|
particle createbigcannons:shrapnel_cloud ~ ~-2.6 ~ 0.1 0.1 0.1 0.04 1 force
|
||
|
particle create:steam_jet 2 ^-0.67 ^-0.3 ^ 0.0 0.0 0.0 0.1 5 force
|
||
|
particle create:steam_jet 2 ^0.67 ^-0.3 ^ 0.0 0.0 0.0 0.1 5 force
|
||
|
execute store result score @s dut_pos_y run data get entity @s Pos[1]
|
||
|
execute as @s[scores={dut_pos_y=..314}] at @s unless block ~ ~5 ~ air run function dut:carrier_rocket/running/explode
|
||
|
execute as @s[scores={dut_pos_y=..315}] at @s unless block ~ ~4 ~ air run function dut:carrier_rocket/running/explode
|
||
|
execute as @s[scores={dut_pos_y=..316}] at @s unless block ~ ~3 ~ air run function dut:carrier_rocket/running/explode
|
||
|
execute as @s[scores={dut_pos_y=..317}] at @s unless block ~ ~2 ~ air run function dut:carrier_rocket/running/explode
|
||
|
execute as @s[scores={dut_pos_y=600..}] at @s run function dut:carrier_rocket/running/transport
|