execute store result score @s cmps_x run data get entity @s Pos[0]
execute store result score @s cmps_y run data get entity @s Pos[1]
execute store result score @s cmps_z run data get entity @s Pos[2]

execute as @s[predicate=!survivalplus:compass,predicate=survivalplus:depth_meter] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_y"}},{"text":"|","color":"gold"}]
execute as @s[predicate=survivalplus:compass,predicate=!survivalplus:depth_meter] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_x"}},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_z"}},{"text":"|","color":"gold"}]
execute as @s[predicate=survivalplus:compass,predicate=survivalplus:depth_meter] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_x"}},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_y"}},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_z"}},{"text":"|","color":"gold"}]

execute as @s[predicate=survivalplus:compass,predicate=!survivalplus:depth_meter,predicate=survivalplus:backrooms] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_x"},"obfuscated":true},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_z"},"obfuscated":true},{"text":"|","color":"gold"}]
execute as @s[predicate=!survivalplus:compass,predicate=survivalplus:depth_meter,predicate=survivalplus:backrooms] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_y"},"obfuscated":true},{"text":"|","color":"gold"}]
execute as @s[predicate=survivalplus:compass,predicate=survivalplus:depth_meter,predicate=survivalplus:backrooms] run title @s actionbar [{"text":"|","color":"gold"},{"color":"white","score":{"name":"@s","objective":"cmps_x"},"obfuscated":true},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_y"},"obfuscated":true},{"text":" ","color":"white"},{"color":"white","score":{"name":"@s","objective":"cmps_z"},"obfuscated":true},{"text":"|","color":"gold"}]

scoreboard players reset @a cmps_x
scoreboard players reset @a cmps_y
scoreboard players reset @a cmps_z
advancement revoke @s only survivalplus:tools/tick/tracking_pos