$execute at @e[tag=quest1_crafting_table.hitbox] run summon item ~ ~0.5 ~ {PickupDelay:20s,Motion:[-0.2d,0.2d,0.0d],Item:{count:$(flower_count),id:"firework_star",components:{"minecraft:item_model":"lbdm:quest1/dye_$(flower_type)","minecraft:item_name":'{"text":"$(dye_name)"}'}}} 

$scoreboard players add total_dye_count quest1 $(flower_count)
execute store result storage lbdm:main quest1.total_dye_count int 1 run scoreboard players get total_dye_count quest1