###Spreads special features###
scoreboard players add @s nitSpreadLim 1
spreadplayers ~ ~ 60 300 false @e[tag=nitKSpecialFeature,tag=nitID_match]

###Repeats spread if features are within 40 blocks of settler's wagon###
execute if entity @e[tag=nitKSpecialFeature,distance=..60,tag=nitID_match] run function nitk:spread_features

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