execute store success entity @s data.viable int 1 if blocks ~1 ~1 ~1 ~3 ~4 ~3 ~1 ~-5 ~1 all
execute if score @s gardener.bush.cd matches 1.. run return 0
execute if data entity @s {data:{viable:0}} run return run function ws:work/misc/tier2/gardener/viablefalse with entity @s data
fill ~1 ~1 ~1 ~3 ~4 ~3 dead_tube_coral_block replace #ws:gardener.leaves
execute store result score @s gardener.bush.cd run random value 300..800
particle minecraft:heart ~2 ~2 ~2 0.75 1 0.75 2 50
$playsound minecraft:entity.player.levelup player @a[scores={gardener.leaves.id$(id)=1..}] ~ ~ ~ 1 2
$execute as @a[scores={gardener.leaves.id$(id)=1..},team=gardener] run function ws:work/misc/tier2/gardener/pay {id:$(id)}
$scoreboard players reset @a[scores={gardener.leaves.id$(id)=1..}] gardener.leaves.id$(id)