execute as @e[tag=quest1_shelf.open] run scoreboard players add @s temp 1
execute as @e[tag=quest1_shelf.open] if score @s temp matches 20.. at @s run function lbdm:quest1/shelf/close

execute at @e[tag=quest1_crafting_table.hitbox,tag=crafting] run particle enchant ~0.2 ~1 ~ 0.5 0.5 0.5 1 5