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

##scoreboard objectives setdisplay sidebar FaresPortal

scoreboard players add @e[type=ldz:fares_portal] FaresPortal 0
scoreboard players add @e[type=ldz:fares_portal_dummy] FaresPortal 0

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

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


#say dupe check