## Broken
execute unless block ~ ~ ~ minecraft:stone run function vb:tick_entity/custom_block/subwoofer/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}

## Woof & Boom
execute if score #VB.Result vb.dummy9 matches 1 run scoreboard players add @s vb.entity.subwoofer_state 1
execute if score #VB.Result vb.dummy9 matches 0 run scoreboard players set @s vb.entity.subwoofer_state 0

execute if score @s vb.entity.subwoofer_state matches 1 run function vb:tick_entity/custom_block/subwoofer/woof
