# repeat 2
execute if score ad_cool b matches 0.. run scoreboard players remove ad_cool b 1

#
execute if score ad_cool b matches 147 run inputpermission set @a movement disabled
execute if score ad_cool b matches 146 run stopsound @a 
execute if score ad_cool b matches 146 run scoreboard players set bgm_loop b 9305
execute if score ad_cool b matches 15..145 run titleraw @a actionbar { "rawtext": [{ "translate": "ad_actionbar.text" }] }

execute if score ad_cool b matches 145 if score ad_choice b matches 3 run playsound c.se1 @a 
execute if score ad_cool b matches 145 if score ad_choice b matches 9 run playsound c.se2 @a 
execute if score ad_cool b matches 145 if score ad_choice b matches 12 run playsound c.se3 @a 
# execute if score ad_cool b matches 5 run particle c:adskip ~ ~ ~

execute if score ad_cool b matches 2 run inputpermission set @a movement enabled
execute if score ad_cool b matches 2 run stopsound @a
execute if score ad_cool b matches 1 run scoreboard players set bgm_loop b 305
