###Determine which visitor was randomly chosen###
execute if entity @s[distance=..1,predicate=nitk:town_square/visitor_caravan] run scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 1
execute if entity @s[distance=..1,predicate=nitk:town_square/visitor_mooshroom] run scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 2
execute if entity @s[distance=..1,predicate=nitk:town_square/visitor_wolf] run scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 3
execute if entity @s[distance=..1,predicate=nitk:town_square/visitor_witch] run scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 4
execute if entity @s[distance=..1,predicate=nitk:town_square/visitor_piglin] run scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 5
kill @s