# Title
summon area_effect_cloud 6 52.25 0 {CustomName:'{"translate":"display.shop","color":"gold","bold":true}',Tags:["lobby"],Duration:2147483647}

execute if score floor dungeon matches 1 run function lobby:shop/summon_on_off

# Info
summon area_effect_cloud 10 54.5 -4.1 {CustomName:'{"translate":"display.shop.info2.l0"}',Tags:["lobby"],Duration:2147483647}
summon area_effect_cloud 10 54 -4.1 {CustomName:'{"translate":"display.shop.info2.l1"}',Tags:["lobby"],Duration:2147483647}
summon area_effect_cloud 10 53.5 -4.1 {CustomName:'{"translate":"display.shop.info2.l2"}',Tags:["lobby"],Duration:2147483647}

# Info ON/OFF
summon area_effect_cloud 10 54.75 4.99 {CustomName:'["",{"translate":"display.shop.info1.l0.s0","color":"green"},{"translate":"display.shop.info1.l0.s1"}]',Tags:["lobby"],Duration:2147483647}
summon area_effect_cloud 10 54.25 4.99 {CustomName:'{"translate":"display.shop.info1.l1"}',Tags:["lobby"],Duration:2147483647}
summon area_effect_cloud 10 53.75 4.99 {CustomName:'["",{"translate":"display.shop.info1.l2.s0","color":"red"},{"translate":"display.shop.info1.l2.s1"}]',Tags:["lobby"],Duration:2147483647}
summon area_effect_cloud 10 53.25 4.99 {CustomName:'{"translate":"display.shop.info1.l3"}',Tags:["lobby"],Duration:2147483647}


# Generation restock
execute positioned 9 53 -2 rotated 90 ~ run function items:shop/display_place
execute positioned 10 53 0 rotated 90 ~ run function items:shop/display_place
execute positioned 9 53 2 rotated 90 ~ run function items:shop/display_place
execute positioned 9 52 0 run tag @e[tag=shop_d,distance=..4] add lobby
execute as @e[tag=lobby,tag=buy,limit=3] at @s run function items:shop/display_sold_out

execute as @e[tag=lobby,tag=buy,limit=3] at @s run function items_py:mshop/display
