scoreboard players remove @s liftoff_timer 1

execute if score @s liftoff_timer matches 140 run tellraw @a[distance=..250] {"text":"3","bold":true,"color":"yellow"}
execute if score @s liftoff_timer matches 140 run playsound minecraft:block.note_block.pling player @a ~ ~ ~ 5 1

execute if score @s liftoff_timer matches 130 run tellraw @a[distance=..250] {"text":"2","bold":true,"color":"yellow"}
execute if score @s liftoff_timer matches 130 run playsound minecraft:block.note_block.pling player @a ~ ~ ~ 5 1

execute if score @s liftoff_timer matches 120 run tellraw @a[distance=..250] {"text":"1","bold":true,"color":"yellow"}
execute if score @s liftoff_timer matches 120 run playsound minecraft:block.note_block.pling player @a ~ ~ ~ 5 1

execute if score @s liftoff_timer matches 110 run tellraw @a[distance=..250] {"text":"0","bold":true,"color":"yellow"}
execute if score @s liftoff_timer matches 110 run playsound minecraft:block.note_block.pling player @a ~ ~ ~ 5 1

execute if score @s liftoff_timer matches 100 run tellraw @a[distance=..250] {"text":"HOUSTON, WE HAVE LIFTOFF!","bold":true,"color":"yellow"}
execute if score @s liftoff_timer matches 100 run playsound minecraft:entity.firework_rocket.launch player @a ~ ~ ~ 3 0

execute if score @s liftoff_timer matches 50 run tellraw @a[distance=..250] ["",{"selector":"@s"},{"text":" is about to enter orbit!","color":"aqua"}]

execute if score @s liftoff_timer matches 50..99 at @s run effect give @s minecraft:levitation 1 0 true
execute if score @s liftoff_timer matches 21..49 at @s run effect give @s minecraft:levitation 1 20 true
execute if score @s liftoff_timer matches 20 at @s run effect give @s minecraft:levitation 1 40 true

execute if score @s liftoff_timer matches 1..99 at @s run playsound minecraft:block.fire.extinguish player @a ~ ~ ~ 3 2

execute if score @s liftoff_timer matches 1..99 at @s run particle minecraft:lava ~ ~ ~ 0.15 0.15 0.15 0 3 force @a
execute if score @s liftoff_timer matches 1..49 at @s run particle minecraft:lava ~ ~-1 ~ 0.25 0.25 0.25 0 16 force @a