我想使用命令方块 来获取玩家坐标 并且通过tellraw 发送出去 但是不知道能不能实现(
版本?
1.14.4 版本 = =
本帖最后由 467440721 于 2019-8-24 13:48 编辑
单独获取坐标
/data get @s Pos
如果用tellraw发送消息
/tellraw @a {"entity":"@s","nbt":"Pos"}
单独获取坐标
/data get @s Pos
如果用tellraw发送消息
/tellraw @a {"entity":"@s","nbt":"Pos"}
467440721 发表于 2019-8-24 13:46
单独获取坐标
/data get @s Pos
如果用tellraw发送消息
关于取小数点位呢= =
467440721 发表于 2019-8-24 13:49
那就有点复杂了
你确定要知道?
嗯 确定要知道 = =
7649102 发表于 2019-8-24 13:51
嗯 确定要知道 = =
/execute store result score x <sb> run data get entity player Pos[0]
/execute store result score y <sb> run data get entity player Pos[1]
/execute store result score z <sb> run data get entity player Pos[2]
然后tellraw x y z分数即可