execute if entity @s[tag=nitPhantom] unless entity @e[type=phantom,distance=..8] run scoreboard players add @s nitResourceSpawn 1
execute if entity @s[scores={nitResourceSpawn=1..},tag=nitPhantom] run summon minecraft:phantom ~ ~ ~ {PersistenceRequired:1,ArmorItems:[{id:"minecraft:elytra",Count:1b},{},{},{}],ArmorDropChances:[0.25f,0.0f,0.0f,0.0f],Tags:[nitEntity,smithed.entity]}
execute if entity @s[scores={nitResourceSpawn=1..},tag=nitPhantom] run summon minecraft:phantom ~ ~ ~ {PersistenceRequired:1,ArmorItems:[{id:"minecraft:elytra",Count:1b},{},{},{}],ArmorDropChances:[0.25f,0.0f,0.0f,0.0f],Tags:[nitEntity,smithed.entity]}
scoreboard players remove @s[scores={nitResourceSpawn=1..},tag=nitPhantom] nitResourceSpawn 1