event entity @e[type=ldz:teleport_pad] despawn

scoreboard objectives remove TeleportPad
scoreboard objectives add TeleportPad dummy

summon ldz:teleport_pad ~ ~ ~ 0 0 beast_hub
summon ldz:teleport_pad ~ ~ ~ 0 0 mystic_hub
summon ldz:teleport_pad ~ ~ ~ 0 0 scourge_hub
summon ldz:teleport_pad ~ ~ ~ 0 0 wraith_hub

summon ldz:teleport_pad ~ ~ ~ 0 0 beast_dungeon
summon ldz:teleport_pad ~ ~ ~ 0 0 mystic_dungeon
summon ldz:teleport_pad ~ ~ ~ 0 0 scourge_dungeon
summon ldz:teleport_pad ~ ~ ~ 0 0 wraith_dungeon

scoreboard players add @e[type=ldz:teleport_pad,r=2] TeleportPad 1

teleport @e[type=ldz:teleport_pad,family=beast_pad_hub] 104 149 7
teleport @e[type=ldz:teleport_pad,family=mystic_pad_hub] 70 157 31
teleport @e[type=ldz:teleport_pad,family=scourge_pad_hub] 104 149 55
teleport @e[type=ldz:teleport_pad,family=wraith_pad_hub] 138 157 31

teleport @e[type=ldz:teleport_pad,family=beast_pad_dungeon] 73 160 -475
teleport @e[type=ldz:teleport_pad,family=mystic_pad_dungeon] -512 169 -196
teleport @e[type=ldz:teleport_pad,family=scourge_pad_dungeon] 6 171 436
teleport @e[type=ldz:teleport_pad,family=wraith_pad_dungeon] 591 171 50