###Spreads special features###
spreadplayers ~ ~ 40 120 false @e[tag=nitCSpecialFeature,tag=nitID_match]

###Repeats spread if features are within 40 blocks of portal###
execute if entity @e[tag=nitCSpecialFeature,distance=..40,tag=nitID_match] run function nitco:spread_features

###Sinks the special features to the appropriate depth###
execute as @e[tag=nitHellShip,tag=nitID_match] at @s run tp ~ 31 ~
execute as @e[tag=nitHellFactory,tag=nitID_match] at @s run tp ~ 107 ~
execute as @e[tag=nitHellDrill,tag=nitID_match] at @s run tp ~ 9 ~
execute as @e[tag=nitWithermaw,tag=nitID_match] at @s run tp ~ 72 ~