# erroneous behaviour of selectors within JSON-Text scoreboard objectives add test_value dummy scoreboard players set @s test_value 10 setblock ^ ^ ^10 minecraft:sign tp ^ ^ ^10 execute at @s run data merge block ~ ~ ~ {Text1:"[{\"text\":\"@s: \"},{\"score\":{\"name\":\"@s\",\"objective\":\"test_value\"}}]"} execute at @s run data merge block ~ ~ ~ {Text2:"[{\"text\":\"0.1: \"},{\"score\":{\"name\":\"@e[distance=..0.1,type=armor_stand,sort=nearest,limit=1]\",\"objective\":\"test_value\"}}]"} execute at @s run data merge block ~ ~ ~ {Text3:"[{\"text\":\"20: \"},{\"score\":{\"name\":\"@e[distance=..20,type=armor_stand,sort=nearest,limit=1]\",\"objective\":\"test_value\"}}]"} # place armor_stand and call following command #/execute as @e[type=minecraft:armor_stand,sort=nearest,limit=1] at @s run function :test