clear @s
kill @e[type=item]
item replace entity @s hotbar.0 with lime_dye[custom_data={green_flag:1b},item_name={"color":"green","italic":false,"text":"Place Green Flag Location"},lore=[{"color":"blue","italic":false,"text":"The BLUE team needs to PROTECT this flag!"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s hotbar.1 with light_blue_dye[custom_data={aqua_flag:1b},item_name={"color":"aqua","italic":false,"text":"Place Aqua Flag Location"},lore=[{"color":"blue","italic":false,"text":"The BLUE team needs to PROTECT this flag!"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s hotbar.2 with magenta_dye[custom_data={light_purple_flag:1b},item_name={"color":"light_purple","italic":false,"text":"Place Magenta Flag Location"},lore=[{"color":"red","italic":false,"text":"The RED team needs to PROTECT this flag!"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s hotbar.3 with yellow_dye[custom_data={yellow_flag:1b},item_name={"color":"yellow","italic":false,"text":"Place Yellow Flag Location"},lore=[{"color":"red","italic":false,"text":"The RED team needs to PROTECT this flag!"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s hotbar.4 with nether_star[custom_data={return:1b},item_name={"color":"white","italic":false,"text":"Return to Lobby"},food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s hotbar.5 with lime_concrete 1
item replace entity @s hotbar.6 with light_blue_concrete 1
item replace entity @s hotbar.7 with magenta_concrete 1
item replace entity @s hotbar.8 with yellow_concrete 1

item replace entity @s inventory.8 with tnt_minecart[custom_data={destroy_all:1b},item_name={"color":"dark_red","italic":false,"text":"Reset All Markers"},lore=[{"color":"gray","italic":false,"text":"This will remove all markers"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.18 with red_dye[item_name={"color":"red","italic":false,"text":"Place Red Spawn"},lore=[{"color":"gray","italic":false,"text":"This should be located WITH"},[{"color":"gray","italic":false,"text":"the "},{"bold":true,"color":"yellow","italic":false,"text":"YELLOW "},{"bold":false,"color":"gray","italic":false,"text":"and "},{"bold":true,"color":"light_purple","italic":false,"text":"MAGENTA "},{"bold":false,"color":"gray","italic":false,"text":"flags"}]],custom_data={red_spawn:1b},food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s inventory.19 with blue_dye[item_name={"color":"blue","italic":false,"text":"Place Blue Spawn"},lore=[{"color":"gray","italic":false,"text":"This should be located WITH"},[{"color":"gray","italic":false,"text":"the "},{"bold":true,"color":"aqua","italic":false,"text":"AQUA "},{"bold":false,"color":"gray","italic":false,"text":"and "},{"bold":true,"color":"green","italic":false,"text":"GREEN "},{"bold":false,"color":"gray","italic":false,"text":"flags"}]],custom_data={blue_spawn:1b},food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.0 with light_gray_dye[custom_data={death_plane:1b},item_name={"color":"white","italic":false,"text":"Place Death Plane"},lore=[{"color":"gray","italic":false,"text":"Any players that fall below this plane will die instantly"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.9 with fermented_spider_eye[custom_data={red_dropoff:1b},item_name={"color":"red","italic":false,"text":"Place Red Flag Dropoff"},lore=[{"color":"gray","italic":false,"text":"This is where the red team will"},{"color":"gray","italic":false,"text":"bring stolen flags back to"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s inventory.10 with heart_of_the_sea[custom_data={blue_dropoff:1b},item_name={"color":"blue","italic":false,"text":"Place Blue Flag Dropoff"},lore=[{"color":"gray","italic":false,"text":"This is where the blue team will"},{"color":"gray","italic":false,"text":"bring stolen flags back to"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.17 with gold_ingot[custom_data={shop:1b},item_name={"color":"gold","italic":false,"text":"Place Shop"},lore=[{"color":"gray","italic":false,"text":"There needs to be 2 of these"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1
item replace entity @s inventory.26 with slime_ball[custom_data={create:1b},item_name={"color":"dark_green","italic":false,"text":"Create Map"},lore=[{"color":"gray","italic":false,"text":"Done? Use this and follow text in the chat!"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.16 with rabbit_hide[item_model="minecraft:flow_armor_trim_smithing_template",custom_data={powerup:1b},tooltip_display={hidden_components:["attribute_modifiers","can_place_on","trim"]},item_name={"color":"#4bb675","italic":false,"text":"Place Powerup"},lore=[{"color":"gray","italic":false,"text":"There can be 0-4 of these"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

item replace entity @s inventory.13 with echo_shard[custom_data={destroy_nearest:1b},item_name={"color":"dark_aqua","italic":false,"text":"Destroy Nearest Marker"},lore=[{"color":"gray","italic":false,"text":"This will destroy the nearest"},{"color":"gray","italic":false,"text":"marker on the block you are on"}],food={nutrition:0,saturation:0,can_always_eat:true},consumable={consume_seconds:1000000,has_consume_particles:false}] 1

tellraw @s ["",{"text":"You are working on Map ","bold":true,"color":"light_purple"},{"score":{"name":"@s","objective":"map_maker_id"},"bold":true,"color":"light_purple"}]

tellraw @s ["",{"text":"Try to contain your map within the ","color":"gray"},{"text":"green circle","color":"green"},{"text":"\n"},{"text":"Players that travel outside the ","color":"gray"},{"text":"red circle","color":"red"},{"text":" will die","color":"gray"}]
tellraw @s ["",{"text":"DO ","color":"yellow"},{"text":"NOT","bold":true,"color":"dark_red"},{"text":" USE ","color":"yellow"},{"text":"BLUE WOOL/WARPED PLANKS","color":"blue"},{"text":" OR ","color":"yellow"},{"text":"RED WOOL/CRIMSON PLANKS","color":"red"},{"text":" IN YOUR MAP! (You can use double slabs to avoid removal) ","color":"yellow"},{"text":"IT WILL BE DELETED!","bold":true,"color":"dark_red"}]
schedule function pctf:mode/z_map_maker/remind 30s
function pctf:mode/z_map_maker/return_tellraw