(=°ω°)丿
我尝试用 此帖 的方法,跨维度将玩家 tp 到记分板指定的坐标,但是失败了。
已知记分板上的分数没有问题,请问该如何解决?

代码:

  1. execute as @a at @s run function foo:main

代码:

  1. # function foo:main
  2. tag @s add self
  3. summon armor_stand ~ ~ ~ {Tags:["marker"]}
  4. teleport @e[tag=marker] ~ ~ ~ ~ ~
  5. execute as @e[tag=marker] run function foo:tp
  6. tag @s remove self

代码:

  1. #function foo:tp
  2. execute if score #d value matches 0 in overworld run teleport @s ~ ~ ~
  3. execute if score #d value matches -1 in the_nether run teleport @s ~ ~ ~
  4. execute if score #d value matches 1 in the_end run teleport @s ~ ~ ~
  5. execute store result entity @s Pos[0] double 0.01 run scoreboard players get #x value
  6. execute store result entity @s Pos[1] double 0.01 run scoreboard players get #y value
  7. execute store result entity @s Pos[2] double 0.01 run scoreboard players get #z value
  8. execute at @s run teleport @a[tag=self] @s
  9. kill @s

解决办法:

⊙u⊙
描述一下哪里失败了,最后marker还在吗?
不清楚先转维度后tp坐标会不会有影响,可以试试先tp到坐标在转维度

(=°ω°)丿
⊙u⊙ 发表于 2020-2-27 11:16
描述一下哪里失败了,最后marker还在吗?
不清楚先转维度后tp坐标会不会有影响,可以试试先tp到坐标在转维 ...

盔甲架可以跨维度,玩家不行。
先转维度后 tp 坐标也没用。

⊙u⊙
隐退 发表于 2020-2-26 19:02
盔甲架可以跨维度,玩家不行。
先转维度后 tp 坐标也没用。

试了下貌似和维度加载有关


暂时帮不上忙,抱歉....

糯团吟著
直接tp,,,,,,,,