# Layout
summon marker 0 12 65 {Tags:["center","armory","unspellable","tutorial_obj"]}
execute positioned 0 12 65 run scoreboard players set @e[distance=..0.5,tag=center,limit=1] room_state 6

# Holders
summon armor_stand 4 16.5 68 {DisabledSlots:4144703,CustomNameVisible:1b,CustomName:'{"bold":true,"color":"red","translate":"Coming soon"}',Rotation:[90.0f,0.0f],ArmorItems:[{id:"leather_boots",Count:1b},{id:"leather_leggings",Count:1b},{id:"leather_chestplate",Count:1b},{id:"player_head",tag:{SkullOwner:"Jarofdirt"},Count:1b}],Tags:["holder","tutorial_obj","unspellable","wand","D"],Pose:{RightArm:[-20f,0f,5f]},ShowArms:1b,HandItems:[{id:"barrier",Count:1b,tag:{Armory:1b}},{}]}
summon armor_stand 4 16.5 62 {DisabledSlots:4144703,CustomNameVisible:1b,CustomName:'{"bold":true,"color":"red","translate":"Coming soon"}',Rotation:[90.0f,0.0f],ArmorItems:[{id:"leather_boots",Count:1b},{id:"leather_leggings",Count:1b},{id:"leather_chestplate",Count:1b},{id:"player_head",tag:{SkullOwner:"Jarofdirt"},Count:1b}],Tags:["holder","tutorial_obj","unspellable","weapon","D"],Pose:{RightArm:[-20f,0f,5f]},ShowArms:1b,HandItems:[{id:"barrier",Count:1b,tag:{Armory:1b}},{}]}
summon armor_stand -4 16.5 68 {DisabledSlots:4144703,CustomNameVisible:1b,CustomName:'{"bold":true,"color":"red","translate":"Coming soon"}',Rotation:[-90.0f,0.0f],ArmorItems:[{id:"leather_boots",Count:1b},{id:"leather_leggings",Count:1b},{id:"leather_chestplate",Count:1b},{id:"player_head",tag:{SkullOwner:"Jarofdirt"},Count:1b}],Tags:["holder","tutorial_obj","unspellable","D","passive"],Pose:{RightArm:[-20f,0f,5f]},ShowArms:1b,HandItems:[{id:"barrier",Count:1b,tag:{Armory:1b}},{}]}
summon armor_stand -4 16.5 62 {DisabledSlots:4144703,CustomNameVisible:1b,CustomName:'{"bold":true,"color":"red","translate":"Coming soon"}',Rotation:[-90.0f,0.0f],ArmorItems:[{id:"leather_boots",Count:1b},{id:"leather_leggings",Count:1b},{id:"leather_chestplate",Count:1b},{id:"player_head",tag:{SkullOwner:"Jarofdirt"},Count:1b}],Tags:["holder","tutorial_obj","unspellable","D","armor"],Pose:{RightArm:[-20f,0f,5f]},ShowArms:1b,HandItems:[{id:"barrier",Count:1b,tag:{Armory:1b}},{}]}

# Ingame Items
kill @e[tag=ingame_items]
summon marker 5 47 6 {Tags:["ingame_items","unspellable"]}
execute as @a run data modify entity @e[tag=ingame_items,limit=1] Tags append from entity @s Tags[]

# Fill holders
execute positioned 0 12 65 as @e[tag=holder,tag=wand,limit=1,sort=nearest] at @s run function items_py:holder/wand/rank
execute positioned 0 12 65 as @e[tag=holder,tag=armor,limit=1,sort=nearest] at @s run function items_py:holder/armor/rank
execute positioned 0 12 65 as @e[tag=holder,tag=passive,limit=1,sort=nearest] at @s run function items_py:holder/passive/rank
execute positioned 0 12 65 as @e[tag=holder,tag=weapon,limit=1,sort=nearest] at @s run function items_py:holder/weapon/rank

# Text
summon text_display 0 19.5 56.99 {billboard:"fixed",text:'{"translate":"tutorial.armory","color":"gold","bold":true}',Tags:["unspellable","tutorial_obj"],Rotation:[180f,0f]}
summon text_display 0 19.25 56.99 {billboard:"fixed",text:'{"translate":"tutorial.armory1","color":"gray","bold":true}',Tags:["unspellable","tutorial_obj"],Rotation:[180f,0f]}

summon text_display 3 16.25 65 {billboard:"fixed",text:'{"translate":"tutorial.armory2"}',Tags:["unspellable","tutorial_obj"],Rotation:[90f,0f]}
summon text_display -3 16.25 65 {billboard:"fixed",text:'{"translate":"tutorial.armory3"}',Tags:["unspellable","tutorial_obj"],Rotation:[-90f,0f]}

summon text_display 4 19 65 {billboard:"fixed",text:'{"translate":"offensive","color":"gold","bold":true}',Tags:["unspellable","tutorial_obj"],Rotation:[90f,0f]}
summon text_display -4 19 65 {billboard:"fixed",text:'{"translate":"defensive","color":"gold","bold":true}',Tags:["unspellable","tutorial_obj"],Rotation:[-90f,0f]}

summon text_display 4 19 68 {billboard:"center",text:'{"translate":"wand","color":"gray"}',Tags:["unspellable","tutorial_obj"]}
summon text_display 4 19 62 {billboard:"center",text:'{"translate":"weapon","color":"gray"}',Tags:["unspellable","tutorial_obj"]}
summon text_display -4 19 68 {billboard:"center",text:'{"translate":"passive","color":"gray"}',Tags:["unspellable","tutorial_obj"]}
summon text_display -4 19 62 {billboard:"center",text:'{"translate":"armor","color":"gray"}',Tags:["unspellable","tutorial_obj"]}
