###Spreads markers for hell attacks###
scoreboard players add @s nitSpreadLim 1
spreadplayers ~ ~ 40 120 false @e[tag=nitHellSite,tag=nitID_match]

###Repeats spread if features are within 40 blocks of settler's wagon###
execute if entity @e[tag=nitHellSite,tag=nitID_match,distance=..40] unless entity @s[scores={nitSpreadLim=10..}] run function nitk:spread_hell

execute if entity @s[scores={nitSpreadLim=10..}] run tag @s add nitDistanceWarn