scoreboard objectives add x dummy #x좌표
scoreboard objectives add y dummy #y좌표
scoreboard objectives add z dummy #z좌표
execute as @a at @s store result score @s x run data get entity @s Pos.[0] #플레이어의 x좌표 저장
execute as @a at @s store result score @s y run data get entity @s Pos.[1] #플레이어의 y좌표 저장
execute as @a at @s store result score @s z run data get entity @s Pos.[2] #플레이어의 z좌표 저장
execute as @a at @s run title @s actionbar [{"score":{"name":"@s","objective":"x"},"color":"white"},{"text":", ","color":"gray"},{"score":{"name":"@s","objective":"y"},"color":"white"},{"text":", ","color":"gray"},{"score":{"name":"@s","objective":"z"},"color":"white"}] #좌표 보여주기 (반복/레드스폰 필요/무조건)
yusin12
2023.04.04