#
execute as @a[scores={p_display_num=1,team_pref=2}] run fill 263 -43 -253 265 -45 -251 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=1,team_pref=1}] run fill 263 -43 -253 265 -45 -251 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=1,team_pref=0}] run fill 263 -43 -253 265 -45 -251 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=2,team_pref=2}] run fill 262 -43 -254 260 -45 -256 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=2,team_pref=1}] run fill 262 -43 -254 260 -45 -256 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=2,team_pref=0}] run fill 262 -43 -254 260 -45 -256 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=3,team_pref=2}] run fill 263 -39 -253 265 -41 -251 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=3,team_pref=1}] run fill 263 -39 -253 265 -41 -251 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=3,team_pref=0}] run fill 263 -39 -253 265 -41 -251 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=4,team_pref=2}] run fill 262 -39 -254 260 -41 -256 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=4,team_pref=1}] run fill 262 -39 -254 260 -41 -256 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=4,team_pref=0}] run fill 262 -39 -254 260 -41 -256 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=5,team_pref=2}] run fill 265 -47 -251 263 -49 -253 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=5,team_pref=1}] run fill 265 -47 -251 263 -49 -253 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=5,team_pref=0}] run fill 265 -47 -251 263 -49 -253 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=6,team_pref=2}] run fill 262 -47 -254 260 -49 -256 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=6,team_pref=1}] run fill 262 -47 -254 260 -49 -256 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=6,team_pref=0}] run fill 262 -47 -254 260 -49 -256 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=7,team_pref=2}] run fill 265 -45 -221 263 -43 -219 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=7,team_pref=1}] run fill 265 -45 -221 263 -43 -219 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=7,team_pref=0}] run fill 265 -45 -221 263 -43 -219 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=8,team_pref=2}] run fill 262 -43 -218 260 -45 -216 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=8,team_pref=1}] run fill 262 -43 -218 260 -45 -216 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=8,team_pref=0}] run fill 262 -43 -218 260 -45 -216 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=9,team_pref=2}] run fill 265 -39 -221 263 -41 -219 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=9,team_pref=1}] run fill 265 -39 -221 263 -41 -219 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=9,team_pref=0}] run fill 265 -39 -221 263 -41 -219 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=10,team_pref=2}] run fill 262 -39 -218 260 -41 -216 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=10,team_pref=1}] run fill 262 -39 -218 260 -41 -216 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=10,team_pref=0}] run fill 262 -39 -218 260 -41 -216 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=11,team_pref=2}] run fill 265 -47 -221 263 -49 -219 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=11,team_pref=1}] run fill 265 -47 -221 263 -49 -219 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=11,team_pref=0}] run fill 265 -47 -221 263 -49 -219 minecraft:purple_concrete replace #game:concrete

execute as @s[scores={p_display_num=12,team_pref=2}] run fill 262 -47 -218 260 -49 -216 minecraft:cyan_concrete replace #game:concrete
execute as @s[scores={p_display_num=12,team_pref=1}] run fill 262 -47 -218 260 -49 -216 minecraft:red_concrete replace #game:concrete
execute as @s[scores={p_display_num=12,team_pref=0}] run fill 262 -47 -218 260 -49 -216 minecraft:purple_concrete replace #game:concrete

#
#execute as @s[scores={p_display_num=1}] run tag @e[type=minecraft:giant,tag=1] add kill
#execute as @s[scores={p_display_num=2}] run tag @e[type=minecraft:giant,tag=2] add kill
#execute as @s[scores={p_display_num=3}] run tag @e[type=minecraft:giant,tag=3] add kill
#execute as @s[scores={p_display_num=4}] run tag @e[type=minecraft:giant,tag=4] add kill
#execute as @s[scores={p_display_num=5}] run tag @e[type=minecraft:giant,tag=5] add kill
#execute as @s[scores={p_display_num=6}] run tag @e[type=minecraft:giant,tag=6] add kill
#execute as @s[scores={p_display_num=7}] run tag @e[type=minecraft:giant,tag=7] add kill
#execute as @s[scores={p_display_num=8}] run tag @e[type=minecraft:giant,tag=8] add kill
#execute as @s[scores={p_display_num=9}] run tag @e[type=minecraft:giant,tag=9] add kill
#execute as @s[scores={p_display_num=10}] run tag @e[type=minecraft:giant,tag=10] add kill
#execute as @s[scores={p_display_num=11}] run tag @e[type=minecraft:giant,tag=11] add kill
#execute as @s[scores={p_display_num=12}] run tag @e[type=minecraft:giant,tag=12] add kill

execute as @s[scores={p_display_num=1}] unless entity @e[type=minecraft:giant,tag=1] run summon giant 259.929 -51.05 -249.5 {Tags:["new","1","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=2}] unless entity @e[type=minecraft:giant,tag=2] run summon giant 256.929 -51.05 -252.5 {Tags:["new","2","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=3}] unless entity @e[type=minecraft:giant,tag=3] run summon giant 259.929 -47.05 -249.5 {Tags:["new","3","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=4}] unless entity @e[type=minecraft:giant,tag=4] run summon giant 256.929 -47.05 -252.5 {Tags:["new","4","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=5}] unless entity @e[type=minecraft:giant,tag=5] run summon giant 259.929 -55.05 -249.5 {Tags:["new","5","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=6}] unless entity @e[type=minecraft:giant,tag=6] run summon giant 256.929 -55.05 -252.5 {Tags:["new","6","main"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-135F,0F],HandItems:[{id:"minecraft:player_head",count:1},{}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}

execute as @s[scores={p_display_num=7}] unless entity @e[type=minecraft:giant,tag=7] run summon giant 259.929 -51.05 -221.5 {Tags:["new","7","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=8}] unless entity @e[type=minecraft:giant,tag=8] run summon giant 256.929 -51.05 -218.5 {Tags:["new","8","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=9}] unless entity @e[type=minecraft:giant,tag=9] run summon giant 259.929 -47.05 -221.5 {Tags:["new","9","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=10}] unless entity @e[type=minecraft:giant,tag=10] run summon giant 256.929 -47.05 -218.5 {Tags:["new","10","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=11}] unless entity @e[type=minecraft:giant,tag=11] run summon giant 259.929 -55.05 -221.5 {Tags:["new","11","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}
execute as @s[scores={p_display_num=12}] unless entity @e[type=minecraft:giant,tag=12] run summon giant 256.929 -55.05 -218.5 {Tags:["new","12","off"],NoGravity:1b,Silent:1b,Invulnerable:1b,Team:"noCol",PersistenceRequired:1b,NoAI:1b,CanPickUpLoot:0b,Rotation:[-45F,0F],HandItems:[{},{id:"minecraft:player_head",count:1}],active_effects:[{id:"minecraft:invisibility",amplifier:2b,duration:999999,ShowParticles:0b}]}

effect give @e[type=minecraft:giant] minecraft:invisibility infinite 1 true

#
execute if entity @e[type=giant,tag=new] run function game:menu/p_display/setup_giants