## Broken
execute unless block ~ ~ ~ minecraft:stone run function vb:tick_entity/custom_block/copper_fan/broken

## Check if powered
scoreboard players set #VB.Result vb.dummy9 0
execute if block ~ ~ ~ minecraft:stone run function vb:tick_entity/custom_block/check_redstone_power {block:stone}

## Blow
execute if score #VB.Result vb.dummy9 matches 1 run function vb:tick_entity/custom_block/copper_fan/blow

## Off
execute if score #VB.Result vb.dummy9 matches 0 run data merge entity @s {item:{components:{"minecraft:item_model":"vb:custom_block/copper_fan_off"}}}
