execute if score vending_machine scenes matches 1 run playsound vending_machine master @a 1 53 -61 1 1
execute if score vending_machine scenes matches 1 run data merge entity @e[type=interaction,tag=vending_machine1,limit=1] {response:false}
execute if score vending_machine scenes matches 1 run scoreboard players set interact_machine info 0
execute if score vending_machine scenes matches 1 run scoreboard players set machine_empty scenes 999
execute if score vending_machine scenes matches 1 run title @a actionbar ""
execute if score vending_machine scenes matches 1 run bossbar set obj_detail visible false

execute if score vending_machine scenes matches 240 run data merge entity @e[type=interaction,tag=vending_machine1,limit=1] {response:true}
execute if score vending_machine scenes matches 240 run scoreboard players set interact_machine info 2
execute if score vending_machine scenes matches 240 run scoreboard players set objectives bossbar 3
execute if score vending_machine scenes matches 240 run scoreboard players set ticks bossbar 1

execute if score vending_machine scenes matches 300 run playsound snack_grab master @a ~ ~ ~ 9999999999
execute if score vending_machine scenes matches 300 run scoreboard players set interact_machine info 0
execute if score vending_machine scenes matches 300 run data merge entity @e[type=interaction,tag=vending_machine1,limit=1] {response:false}
execute if score vending_machine scenes matches 300 run scoreboard players set interact_machine info 0
execute if score vending_machine scenes matches 300 run title @a actionbar ""
execute if score vending_machine scenes matches 300 run scoreboard players set objectives bossbar 4
execute if score vending_machine scenes matches 300 run scoreboard players set ticks bossbar 1
execute if score vending_machine scenes matches 300 run scoreboard players set power_off scenes 0


execute if score vending_machine scenes matches 1..240 run scoreboard players add vending_machine scenes 1
execute if score vending_machine scenes matches 300 run scoreboard players add vending_machine scenes 1