# Project created by the koncept

execute store result storage bingo.macro space int 1 run scoreboard players get @s bingo.space

execute store result storage bingo.macro number_id_player int 1 run scoreboard players get @s bingo.number.id.player

execute as @s[tag=bingo.actionbar.bottom] at @s run data modify storage minecraft:bingo.macro top_or_bottom set value bottom
execute as @s[tag=bingo.actionbar.top] at @s run data modify storage minecraft:bingo.macro top_or_bottom set value top

#execute as @s[scores={bingo.icon.size=1}] at @s run data modify storage minecraft:bingo.macro icon_size set value "size_1"
#execute as @s[scores={bingo.icon.size=2}] at @s run data modify storage minecraft:bingo.macro icon_size set value "size_2"

execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=1}] at @s run data modify storage minecraft:bingo.macro height set value "height_1"
execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=2}] at @s run data modify storage minecraft:bingo.macro height set value "height_2"
execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=3}] at @s run data modify storage minecraft:bingo.macro height set value "height_3"
execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=4}] at @s run data modify storage minecraft:bingo.macro height set value "height_3"
execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=5}] at @s run data modify storage minecraft:bingo.macro height set value "height_3"
execute as @s[tag=bingo.actionbar.bottom,scores={bottom.gui.Scale=6}] at @s run data modify storage minecraft:bingo.macro height set value "height_3"
execute as @s[tag=bingo.actionbar.top] at @s run data modify storage minecraft:bingo.macro height set value "top"

execute as @s[team=gold.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/gold with storage minecraft:bingo.macro
execute as @s[team=green.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/green with storage minecraft:bingo.macro
execute as @s[team=aqua.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/aqua with storage minecraft:bingo.macro
execute as @s[team=blue.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/blue with storage minecraft:bingo.macro
execute as @s[team=dark_red.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/dark_red with storage minecraft:bingo.macro
execute as @s[team=light_purple.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/light_purple with storage minecraft:bingo.macro
execute as @s[team=red.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/red with storage minecraft:bingo.macro
execute as @s[team=white.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/white with storage minecraft:bingo.macro
execute as @s[team=yellow.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_1/yellow with storage minecraft:bingo.macro

execute as @s[scores={bingo.icon.size=1}] at @s run return fail

execute as @s[team=gold.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/gold with storage minecraft:bingo.macro
execute as @s[team=green.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/green with storage minecraft:bingo.macro
execute as @s[team=aqua.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/aqua with storage minecraft:bingo.macro
execute as @s[team=blue.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/blue with storage minecraft:bingo.macro
execute as @s[team=dark_red.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/dark_red with storage minecraft:bingo.macro
execute as @s[team=light_purple.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/light_purple with storage minecraft:bingo.macro
execute as @s[team=red.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/red with storage minecraft:bingo.macro
execute as @s[team=white.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/white with storage minecraft:bingo.macro
execute as @s[team=yellow.bingo] at @s run function koncept.bingo:bingo/bossbar/file_selection/size_2/yellow with storage minecraft:bingo.macro
