execute store result score @s nl.Xcoord run data get entity @s Pos[0]
execute store result score @s nl.Ycoord run data get entity @s Pos[1]
execute store result score @s nl.Zcoord run data get entity @s Pos[2]

execute at @s run title @s actionbar ["",{"text":"[ ","color":"gold"},{"text":"X: ","color":"red"},{"score":{"name":"@p","objective":"nl.Xcoord"},"color":"red"},{"text":" |","color":"gold"},{"text":" Y: ","color":"dark_green"},{"score":{"name":"@p","objective":"nl.Ycoord"},"color":"dark_green"},{"text":" |","color":"gold"},{"text":" Z: ","color":"blue"},{"score":{"name":"@p","objective":"nl.Zcoord"},"color":"blue"},{"text":" ] ","color":"gold"}]