scoreboard players set Detection LastManStanding 0
scoreboard players set @a mined 1000
clear @a
function usdp:hunger_detection_clock
item replace entity @a[tag=pacifist] hotbar.1 with emerald_block 64
item replace entity @a[tag=archer] hotbar.1 with bow{Unbreakable:1b,display:{Name:'{"text":"Obliteration Bow","color": "gold","bold": true}',Lore:['{"text":"Brought to you by S.P.R.I.G. Labs","color": "dark_purple","italic": true}']}} 1
item replace entity @a[tag=brute] hotbar.1 with stick{Unbreakable:1b,Enchantments:[{id:"minecraft:knockback",lvl:2}],display:{Name:'{"text":"Tree Branch","color": "gold","bold": true}',Lore:['{"text":"Not Brought to you by S.P.R.I.G. Labs...","color": "dark_purple","italic": true}','{"text": "Just on the side of the road...","color": "dark_purple","italic": true}']}} 1
item replace entity @a[tag=crazed_fisherman] hotbar.1 with fishing_rod{Unbreakable:1b,display:{Name:'{"text":"Bombing Rod","color": "gold","bold": true}',Lore:['{"text":"Brought to you by S.P.R.I.G. Labs","color": "dark_purple","italic": true}']}} 1
item replace entity @a hotbar.0 with netherite_pickaxe{Enchantments:[{id:"minecraft:efficiency",lvl:10}],Unbreakable:1b,display:{Name:'{"text":"Insta-Miner","bold":true,"color": "gold"}',Lore:['{"text":"Brought to you by S.P.R.I.G. Labs","italic": true,"color": "dark_purple"}']}} 1
item replace entity @a[tag=spy] hotbar.1 with carrot_on_a_stick{display:{Name:'{"text":"Cloaking Device","bold": true,"color": "gold"}',Lore:['{"text": "Brought to you by S.P.R.I.G. Labs","italic": true,"color": "dark_purple"}']}} 1
item replace entity @a hotbar.2 with warped_fungus_on_a_stick{display:{Name:'{"text": "Giant Leap (One Time Use)","bold": true,"color": "gold"}',Lore:['{"text": "Brought to you by S.P.R.I.G. Labs","italic": true,"color": "dark_purple"}']}}
function usdp:clear_map
execute if score Mappy MapSelection matches 1 run function usdp:desert_villa_wins
execute if score Mappy MapSelection matches 2 run function usdp:classic_wins
execute if score Mappy MapSelection matches 3 run function usdp:end_barrens_wins
execute if score Mappy MapSelection matches 4 run function usdp:great_oak_wins
execute if score Mappy MapSelection matches 5 run function usdp:temple_construction_wins
execute if score Mappy MapSelection matches 6 run function usdp:industrial_park_wins
execute if score Mappy MapSelection matches 7 run function usdp:giant_cave_wins
execute if score Mappy MapSelection matches 8 run function usdp:dilapidated_downtown_wins
execute if score Mappy MapSelection matches 9 run function usdp:dueling_bedrocks_wins
execute if score Mappy MapSelection matches 10 run function usdp:vaders_fighter_wins
execute if score Mappy MapSelection matches 11 run function usdp:garys_mod_wins
execute if score Mappy MapSelection matches 12 run function usdp:hilly_minefield_wins
execute if score Mappy MapSelection matches 13 run function usdp:extreme_narcissism_wins
execute if score Mappy MapSelection matches 14 run function usdp:prehistoric_panic_wins
execute if score Mappy MapSelection matches 15 run function usdp:chungus_castle_wins
execute if score Mappy MapSelection matches 16 run function usdp:mesa_canyon_wins
spreadplayers 231.5 120.5 2 50 false @a 
team join Ingame @a
execute as @a[team=Ingame] run scoreboard players add Detection LastManStanding 1
scoreboard players set Yes LobbyTime 0
function usdp:10
team modify Ingame friendlyFire false
scoreboard players set @a Ability_Cooldown 0
scoreboard players set @a FishingRod 0
scoreboard players set @a CarrotSticky 0
setblock 0 25 -10 minecraft:air
setblock -13 33 -7 minecraft:air
setblock -9 33 -11 minecraft:air
setblock -7 33 -11 minecraft:air
setblock -4 33 -8 minecraft:air
setblock -6 33 -4 minecraft:air