event entity @e[type=ldz:fares_portal] despawn
event entity @e[type=ldz:fares_portal_dummy] despawn

scoreboard objectives remove FaresPortal
scoreboard objectives add FaresPortal dummy

summon ldz:fares_portal ~ ~ ~
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 beast
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 charger
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 chef
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 chiller
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 gardener
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 hydro
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 mystic
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 scorcher
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 scourge
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 troll
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 vanilla
summon ldz:fares_portal_dummy ~ ~ ~ 0 0 wraith

scoreboard players set @e[type=ldz:fares_portal,c=1] FaresPortal 1
scoreboard players set @e[type=ldz:fares_portal_dummy,r=2] FaresPortal 1

teleport @e[type=ldz:fares_portal] 104 167 67
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_beast] 109.0 168 74
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_charger] 97 168 63
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_chef] 97 168 72
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_chiller] 111 168 69
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_gardener] 97 168 69
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_hydro] 97 168 66
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_mystic] 106.0 168 74
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_scorcher] 111 168 66
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_scourge] 100.0 168 74
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_troll] 111 168 72
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_vanilla] 111 168 63
teleport @e[type=ldz:fares_portal_dummy,family=fares_portal_wraith] 103.0 168 74

function admin/set_portal_barriers