execute if items block 1518 39 1488 container.* * run scoreboard players set @s producer.base.capital 3
execute if items block 1518 39 1488 container.* *[custom_data~{tier:1}] run scoreboard players set @s producer.base.capital 6
execute if items block 1518 39 1488 container.* *[custom_data~{tier:2}] run scoreboard players set @s producer.base.capital 12
execute if items block 1518 39 1488 container.* *[custom_data~{tier:3}] run scoreboard players set @s producer.base.capital 24
execute if score .eventor eventchoose matches 3 run scoreboard players set @s producer.x 15
execute if score .eventor eventchoose matches 4 run scoreboard players set @s producer.x 2
execute if score .eventor eventchoose matches 3..4 run scoreboard players operation @s producer.base.capital *= @s producer.x
execute if score .eventor eventchoose matches 3 run scoreboard players set @s producer.x 10
execute if score .eventor eventchoose matches 3 run scoreboard players operation @s producer.base.capital /= @s producer.x
scoreboard players operation @s pay += @s producer.base.capital
execute as @s[scores={starterbonus.producer=1..}] run function ws:work/misc/producer/starterbonus
execute store result storage ws:temp base int 1 run scoreboard players get @s producer.base.capital
execute at @a[team=seller,tag=base] run function ws:work/misc/producer/base.display with storage ws:temp
execute at @s run particle minecraft:happy_villager ~ ~2 ~ 0.1 0.1 0.1 1 6
execute at @s run playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.5 1.3
scoreboard players reset @s producer.x
scoreboard players reset @s producer.base.capital
clone 1517 39 1488 1517 39 1488 1518 39 1488