

#execute unless score temp refresh_count matches -2147483648.. run function vanilla_refresh:wand/z/used

scoreboard players add temp refresh_count 1
execute unless block ^ ^ ^1 #vanilla_refresh:permeable run fill ~16 ~12 ~16 ~-16 ~-12 ~-16 blue_stained_glass replace structure_void
execute positioned ^ ^ ^1 if block ^ ^ ^ #vanilla_refresh:permeable unless score temp refresh_count matches 128.. run function vanilla_refresh:wand/z/brush_void1
scoreboard players reset temp refresh_count
advancement revoke @s only vanilla_refresh:wand/brush_void1
