execute positioned 9 56 42 if entity @a[distance=..1] unless score 63 timer matches 2 run scoreboard players set 63 timer 1
execute if score 63 timer matches 1 run scoreboard players add 62 timer 1


execute if score 62 timer matches 10 run setblock 12 55 40 minecraft:small_amethyst_bud
execute if score 62 timer matches 10 run execute positioned 12 55 40 run playsound minecraft:entity.item.pickup block @a[distance=..6] 12 55 40 1111 1
execute if score 62 timer matches 30 run setblock 16 55 41 minecraft:small_amethyst_bud
execute if score 62 timer matches 30 run execute positioned 12 55 40 run playsound minecraft:entity.item.pickup block @a[distance=..6] 12 55 40 1111 1
execute if score 62 timer matches 50 run setblock 16 55 45 minecraft:small_amethyst_bud
execute if score 62 timer matches 50 run execute positioned 12 55 40 run playsound minecraft:entity.item.pickup block @a[distance=..6] 12 55 40 1111 1

execute if score 62 timer matches 70 run fill 16 55 48 16 56 48 minecraft:air



execute if score 62 timer matches 70 run scoreboard players set 63 timer 2

execute if score 63 timer matches 2 run execute positioned 13 55 43 unless entity @a[distance=..10] run scoreboard players set 64 timer 1
execute if score 64 timer matches 1 run scoreboard players add 62 timer 1
execute if score 62 timer matches 80 run setblock 12 55 40 minecraft:air
execute if score 62 timer matches 85 run setblock 16 55 41 minecraft:air
execute if score 62 timer matches 90 run setblock 16 55 45 minecraft:air
execute if score 62 timer matches 100.. run fill 16 55 48 16 56 48 minecraft:calcite
execute if score 62 timer matches 100.. run scoreboard players reset 64 timer
execute if score 62 timer matches 100.. run scoreboard players reset 63 timer
execute if score 62 timer matches 100.. run scoreboard players reset 62 timer