本帖最后由 阡喏 于 2020-8-19 21:18 编辑
用 execute store result score 边界 test run worldborder get 实时获取边界(变数),但得到的是直径,我想要把半径(除以2)显示在右侧计分栏上,有没有简便的办法实现?
我真的不想用同步计时来减分显示
用 execute store result score 边界 test run worldborder get 实时获取边界(变数),但得到的是直径,我想要把半径(除以2)显示在右侧计分栏上,有没有简便的办法实现?
我真的不想用同步计时来减分显示
/scoreboard objectives add temp dummy
/scoreboard players set #2 temp 2
/execute store result score 边界 test run worldborder get
/scoreboard players operation 边界 test /= #2 temp
/scoreboard players set #2 temp 2
/execute store result score 边界 test run worldborder get
/scoreboard players operation 边界 test /= #2 temp
所以你试试放在函数里执行呢?