scoreboard objectives add samsung_sidebar dummy {"text":"Info","color":"dark_blue","bold":true}
scoreboard objectives add value dummy
scoreboard objectives setdisplay sidebar samsung_sidebar
scoreboard objectives add add_functions trigger
scoreboard objectives add buy_samsung_item trigger
scoreboard objectives add buy_upgrade trigger
scoreboard players set samsung_money samsung_sidebar 4
scoreboard players set store_quality samsung_sidebar 3
scoreboard players set #customer_cooldown value 122
scoreboard players set samsung_phones_for_sale samsung_sidebar 2
scoreboard players set software_divider samsung_sidebar 1
scoreboard players set one_ui_version samsung_sidebar 0
scoreboard players set samsung_functions samsung_sidebar -1
scoreboard players display name samsung_phones_for_sale samsung_sidebar {"text":"Devices:"}
scoreboard players display name samsung_money samsung_sidebar {"text":"Money:"}
scoreboard players display name store_quality samsung_sidebar {"text":"Store Quality:"}
scoreboard players display name one_ui_version samsung_sidebar {"text":"One UI:"}
scoreboard players display name software_divider samsung_sidebar ""
scoreboard players display numberformat software_divider samsung_sidebar blank
scoreboard players display name samsung_functions samsung_sidebar {text:"Functions:"}
execute unless score #max_phones value matches 1.. run scoreboard players set #max_phones value 3
execute unless score #samsung_phones_for_sale value matches 0.. run scoreboard players set #samsung_phones_for_sale value 0
execute unless score #store_quality value matches 0.. run scoreboard players set #store_quality value 0
execute unless score #one_ui_version value matches 1.. run scoreboard players set #functions_needed value 3
execute unless score #samsung_functions value matches 0.. run scoreboard players set #samsung_functions value 0
execute unless score #samsung_money value matches 0.. run scoreboard players set #samsung_money value 0