###Builds the portals###
place template nitref:invasion/planar_portal ~-2 ~-6 ~-12

###Summons hostile mobs###
summon ghast ~5 ~-3 ~8 {PersistenceRequired:1,Passengers:[{id:blaze,CustomName:'{"text":"Tyrant\'s Invader"}',DeathLootTable:"nitk:entities/tyrant_jockey",PersistenceRequired:1,Tags:[nitEntity,smithed.entity]}],Tags:[nitEntity,smithed.entity,nitTyrantGhast]}
summon ghast ~5 ~-3 ~-8 {PersistenceRequired:1,Passengers:[{id:blaze,CustomName:'{"text":"Tyrant\'s Invader"}',DeathLootTable:"nitk:entities/tyrant_jockey",PersistenceRequired:1,Tags:[nitEntity,smithed.entity]}],Tags:[nitEntity,smithed.entity,nitTyrantGhast]}

###Progress the invasion score and performs cosmetics###
summon minecraft:lightning_bolt