execute as @e[tag=quest3_shelf.open] run scoreboard players add @s temp 1
execute as @e[tag=quest3_shelf.open] if score @s temp matches 20.. at @s run function lbdm:quest3/shelf/close
function lbdm:quest3/gooners/loop
execute as @e[tag=quest3_stop] at @s if entity @a[distance=..1.5] run function lbdm:quest3/end