execute unless items entity @s container.* *[minecraft:custom_data~{box:1}] run return 0
scoreboard players add @s pay 3
execute if score .eventor eventchoose matches 8 run scoreboard players add @s pay 3
execute if score .eventor eventchoose matches 7 run scoreboard players add @s pay 2
execute as @s[scores={starterbonus.loader=1..}] run function ws:work/misc/loader/starterbonus
clear @s *[custom_data~{box:1}]
execute at @s run summon minecraft:area_effect_cloud ~ ~ ~ {CustomName:'{"color":"dark_green","text":"+3$"}',CustomNameVisible:1b,Duration:40}
execute if score .eventor eventchoose matches 8 at @s run summon minecraft:area_effect_cloud ~ ~0.2 ~0.2 {CustomName:'{"color":"dark_green","text":"+3$"}',CustomNameVisible:1b,Duration:40}
execute if score .eventor eventchoose matches 7 at @s run summon minecraft:area_effect_cloud ~ ~0.2 ~0.2 {CustomName:'{"color":"dark_green","text":"+2$"}',CustomNameVisible:1b,Duration:40}
execute at @s run playsound minecraft:entity.experience_orb.pickup player @p ~ ~ ~ 1
execute at @s run particle minecraft:happy_villager ~ ~2 ~ 0.1 0.1 0.1 1 10
scoreboard players set @s pickup 0