## RUN BY ldz:teleport_pad
## RUN FROM animation.teleport_pad.duplication_check

#scoreboard objectives setdisplay sidebar TeleportPad

scoreboard players add @e[type=ldz:teleport_pad] TeleportPad 0

execute as @e[scores={TeleportPad=0}] run event entity @s despawn

scoreboard players add @s[scores={TeleportPad=1..}] TeleportPad 1
execute as @s[scores={TeleportPad=3..}] run event entity @s remove_duplication_check_toggle

execute as @s[type=ldz:teleport_pad,family=beast_pad] run fill ~-1 ~ ~-1 ~1 ~ ~1 ldz:teleport_pad_beast
execute as @s[type=ldz:teleport_pad,family=mystic_pad] run fill ~-1 ~ ~-1 ~1 ~ ~1 ldz:teleport_pad_mystic
execute as @s[type=ldz:teleport_pad,family=scourge_pad] run fill ~-1 ~ ~-1 ~1 ~ ~1 ldz:teleport_pad_scourge
execute as @s[type=ldz:teleport_pad,family=wraith_pad] run fill ~-1 ~ ~-1 ~1 ~ ~1 ldz:teleport_pad_wraith

#say dupe check