execute at @p if entity @p in minecraft:overworld run advancement grant @p[limit=1000,distance=..50] only niknok:minecraft/the_beginning_wither
execute at @p if entity @p in minecraft:the_nether run advancement grant @p[limit=1000,distance=..50] only niknok:minecraft/the_beginning_wither
execute at @p if entity @p in minecraft:the_end run advancement grant @p[limit=1000,distance=..50] only niknok:minecraft/the_beginning_wither