



execute positioned -4 61 42 if entity @a[distance=..2] unless score 50 timer matches 2 run scoreboard players set 50 timer 1
execute if score 50 timer matches 1 run scoreboard players add 51 timer 1
execute if score 51 timer matches 10 run fill -6 59 38 -5 59 37 minecraft:mossy_cobblestone
execute if score 51 timer matches 10 run execute positioned -5 59 37 run playsound minecraft:entity.item.pickup block @a[distance=..10] -5 59 37 1111 1
execute if score 51 timer matches 30 run fill -5 59 33 -4 59 32 minecraft:mossy_cobblestone
execute if score 51 timer matches 30 run execute positioned -5 59 37 run playsound minecraft:entity.item.pickup block @a[distance=..10] -5 59 37 1111 1
execute if score 51 timer matches 50 run fill 0 59 29 1 59 28 minecraft:mossy_cobblestone
execute if score 51 timer matches 49 run execute positioned -5 59 37 run playsound minecraft:entity.item.pickup block @a[distance=..10] -5 59 37 1111 1



execute if score 51 timer matches 50 run scoreboard players set 50 timer 2

execute if score 50 timer matches 2 run execute positioned -6 59 38 unless entity @a[distance=..13] run scoreboard players set 52 timer 1
execute if score 52 timer matches 1 run scoreboard players add 51 timer 1
execute if score 51 timer matches 60 run fill -6 59 38 -5 59 37 minecraft:air
execute if score 51 timer matches 70 run fill -5 59 33 -4 59 32 minecraft:air
execute if score 51 timer matches 80 run fill 0 59 29 1 59 28 minecraft:air
execute if score 51 timer matches 80.. run scoreboard players reset 52 timer
execute if score 51 timer matches 80.. run scoreboard players reset 50 timer
execute if score 51 timer matches 80.. run scoreboard players reset 51 timer