advancement revoke @s only nitk:power_station/lights_lantern
clear @s lantern{nitk_light:2b}
scoreboard players set @e[tag=nitLightSeller,limit=1,sort=nearest] nitLightType 2

scoreboard players operation #nitID nitTemp = @s nitID
execute as @e[tag=nitkLampPost,distance=..100] if score @s nitID = #nitID nitTemp run tag @s add nitID_match
execute as @e[tag=nitkLampPost,tag=nitID_match] at @s run function nitk:recurs/power_station/lamppost_update
tag @e[tag=nitkLampPost,tag=nitID_match] remove nitID_match
execute if entity @e[tag=nitPostSeller,distance=..10,scores={nitPostType=1..7}] run tellraw @s [{"text":"[۩]","color":"green","bold":true},{"text":": ","color":"white","bold":false},{"text":"New lamp posts have been installed in your town.","color":"white","bold":false}]