execute if entity @e[type=wither,distance=..10,tag=!smithed.entity,tag=!smithed.strict] run tag @s add nitClearCondition
execute if entity @s[tag=nitClearCondition] run advancement grant @a[distance=..30,tag=nitDenizen] only nitco:nitco/ach5.1
execute if entity @s[tag=nitClearCondition] run data merge entity @e[type=wither,distance=..10,limit=1,tag=!smithed.entity] {Attributes:[{Name:"generic.movement_speed",Base:0.1}],CustomName:'{"text":"The Tyrant"}',CustomNameVisible:0b,ActiveEffects:[{Id:2,Amplifier:2,Duration:999999}],PersistenceRequired:1b,Tags:[nitEntity,nitTyrant,smithed.entity,smithed.strict],DeathLootTable:"nitk:entities/tyrant_nether"}
execute if entity @s[tag=nitClearCondition] run kill @s