execute store result score @s vb.dummy1 run data get entity @s Rotation[0]
execute store result score @s vb.dummy2 run data get entity @s Rotation[1]

execute if score @s vb.dummy1 matches 180 if score @s vb.dummy2 matches 0 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:0,y:0,z:-1}
execute if score @s vb.dummy1 matches 0 if score @s vb.dummy2 matches 0 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:0,y:0,z:1}
execute if score @s vb.dummy1 matches -90 if score @s vb.dummy2 matches 0 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:1,y:0,z:0}
execute if score @s vb.dummy1 matches 90 if score @s vb.dummy2 matches 0 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:-1,y:0,z:0}
execute if score @s vb.dummy1 matches 0 if score @s vb.dummy2 matches -90 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:0,y:1,z:0}
execute if score @s vb.dummy1 matches 0 if score @s vb.dummy2 matches 90 run function vb:tick_entity/custom_block/copper_fan/blow_action {x:0,y:-1,z:0}

execute if block ^ ^ ^1 #vb:passover run setblock ^ ^ ^1 air destroy
execute if block ^ ^ ^2 #vb:passover run setblock ^ ^ ^2 air destroy
execute if block ^ ^ ^3 #vb:passover run setblock ^ ^ ^3 air destroy

data merge entity @s {item:{components:{"minecraft:item_model":"vb:custom_block/copper_fan_on"}}}