tag @s add give
clear @s minecraft:carrot_on_a_stick
execute if entity @s[tag=!game] run item replace entity @s hotbar.6 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:32},minecraft:custom_model_data={floats:[1010.0f]},minecraft:custom_name='{"bold":true,"color":"white","italic":false,"text":"Spectate the game"}']
execute if entity @s[tag=!game] run item replace entity @s hotbar.7 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:6},minecraft:custom_model_data={floats:[1005.0f]},minecraft:custom_name='{"bold":true,"color":"red","italic":false,"text":"Join red team"}']
execute if entity @s[tag=!game] run item replace entity @s hotbar.8 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:5},minecraft:custom_model_data={floats:[1004.0f]},minecraft:custom_name='{"bold":true,"color":"blue","italic":false,"text":"Join blue team"}']


#execute as @s[tag=game,tag=!winner,team=!spectate] run item replace entity @s hotbar.0 with minecraft:wooden_sword[minecraft:custom_model_data=3001,minecraft:custom_name='{"text":"Chicken net","color":"white","bold":true,"italic":false}',unbreakable={show_in_tooltip:false}]
#execute as @s[tag=game,tag=winner,team=!spectate] run item replace entity @s hotbar.0 with minecraft:wooden_sword[minecraft:custom_model_data=3002,minecraft:custom_name='{"text":"Chicken net","color":"gold","bold":true,"italic":false}',unbreakable={show_in_tooltip:false}]


execute if score .map map = .3 map if entity @s[tag=game,team=!spectate] run item replace entity @s hotbar.1 with minecraft:trident[minecraft:custom_name='{"color":"white","extra":[{"bold":true,"color":"red","italic":false,"text":" (Only use it for riptide)"}],"italic":false,"text":"Riptide Trident"}',minecraft:lore=['{"color":"dark_green","italic":false,"text":"0 Attack Damage"}'],minecraft:unbreakable={show_in_tooltip:0b},minecraft:enchantments={levels:{"minecraft:riptide":2}},minecraft:attribute_modifiers={modifiers:[{id:"attack_damage",type:"minecraft:attack_damage",amount:-10,operation:"add_multiplied_base",slot:"mainhand"}],show_in_tooltip:0b},minecraft:hide_additional_tooltip={}] 1
execute if entity @s[tag=game,tag=!winner,team=!spectate] run item replace entity @s hotbar.0 with minecraft:stick[minecraft:custom_name='{"bold":true,"italic":false,"text":"Chicken net"}',minecraft:custom_model_data={floats:[2012.0f]},minecraft:attribute_modifiers={modifiers:[{id:"armor",type:"minecraft:attack_damage",amount:4,operation:"add_value",slot:"mainhand"},{id:"armor",type:"minecraft:attack_speed",amount:-2.4,operation:"add_value",slot:"mainhand"}]}] 1
execute if entity @s[tag=game,tag=winner,team=!spectate] run item replace entity @s hotbar.0 with minecraft:stick[minecraft:custom_name='{"bold":true,"italic":false,"text":"Chicken net"}',minecraft:custom_model_data={floats:[2013.0f]},minecraft:attribute_modifiers={modifiers:[{id:"armor",type:"minecraft:attack_damage",amount:4,operation:"add_value",slot:"mainhand"},{id:"armor",type:"minecraft:attack_speed",amount:-2.4,operation:"add_value",slot:"mainhand"}]}] 1


#execute as @s[tag=!game,tag=!ready,team=blue] run item replace entity @s hotbar.0 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:7},minecraft:custom_model_data=1006,minecraft:custom_name='{"text":"Join the queue","color":"white","bold":true,"italic":false}']
#execute as @s[tag=!game,tag=ready,team=blue] run item replace entity @s hotbar.0 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:8},minecraft:custom_model_data=1007,minecraft:custom_name='{"text":"Leave the queue","color":"white","bold":true,"italic":false}']

#execute as @s[tag=!game,tag=!ready,team=red] run item replace entity @s hotbar.0 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:7},minecraft:custom_model_data=1006,minecraft:custom_name='{"text":"Join the queue","color":"white","bold":true,"italic":false}']
#execute as @s[tag=!game,tag=ready,team=red] run item replace entity @s hotbar.0 with minecraft:carrot_on_a_stick[minecraft:custom_data={customTag:8},minecraft:custom_model_data=1007,minecraft:custom_name='{"text":"Leave the queue","color":"white","bold":true,"italic":false}']
