请问如何将实体传送至玩家的相对位置,比如我叫P,所在的坐标为(x,y,z),如何将实体传送至(x+2,y,z+2)
本帖最后由 阴阳师元素祭祀 于 2019-8-29 20:27 编辑
tp ~2 ~ ~2
execute at playerName run tp @e[tag=foo] ~2 ~ ~2
具体版本?
tp ~2 ~ ~2
execute at playerName run tp @e[tag=foo] ~2 ~ ~2
具体版本?
用的命令方块
友好Creeper 发表于 2019-8-29 20:35
用的命令方块
execute at 玩家ID run tp ~2 ~ ~2
1.13以下:execute P ~ ~ ~ tp 要传送的实体 ~2 ~ ~2
1.13+:execute at P run tp 要传送的实体 ~2 ~ ~2
1.13+:execute at P run tp 要传送的实体 ~2 ~ ~2
/tp P(玩家名字) x+2 y z+2
/tp 指定实体 ~2 ~ ~2
tp @e[name=实体名字] ~2 ~ ~2
本帖最后由 MinecraftPeace 于 2019-8-31 18:26 编辑
execute at P run tp 目标 ~2 ~ ~2
execute at P run tp 目标 ~2 ~ ~2
tp @e[name=实体名字] ~2 ~ ~2或execult @e[name=实体名字] ~ ~ ~tp @p ~2 ~ ~2
这个指令/tp ~+2 ~ ~+2