c=1 selector sometimes selects the entity which is not the nearest.
example:/tp @e[type=ArmorStand,c=1] ~0.5 ~ ~-0.5 (be run by player)
If many armorstands around you,sometimes it will not tp the nearest armorstands.
c=1 selector sometimes selects the entity which is not the nearest.
example:/tp @e[type=ArmorStand,c=1] ~0.5 ~ ~-0.5 (be run by player)
If many armorstands around you,sometimes it will not tp the nearest armorstands.
Nearest to who/what? Is the command being run in a command block or by the player? In either case, I cannot reproduce your issue. If run via command block, it will target the nearest armor stand to the command block as expected. If run by the player, it will target the nearest armor stand to the player.