data remove entity @s interaction
execute if entity @s[tag=quest1_shelf.open] run return fail
execute as @n[tag=aj.quest1_shelf.root] run function animated_java:quest1_shelf/animations/open/play
playsound block.barrel.open master @a
playsound block.chest.open master @a ~ ~ ~ 1 0.8
tag @s add quest1_shelf.open

execute if entity @s[tag=loot.flower1] run function lbdm:quest1/shelf/loot/flower {count:1}
execute if entity @s[tag=loot.flower3] run function lbdm:quest1/shelf/loot/flower {count:3}
execute if entity @s[tag=loot.jumpscare] run function lbdm:quest1/shelf/loot/jumpscare

tag @s remove loot.flower1
tag @s remove loot.flower3
tag @s remove loot.jumpscare