玩家自定義坐標(biāo)傳送功能

[三個記分板]
/scoreboard objectives add 坐標(biāo)x dummy
/scoreboard objectives add 坐標(biāo)y dummy
/scoreboard objectives add 坐標(biāo)z dummy
[執(zhí)行傳送部分]
x正坐標(biāo)傳送
execute @a[scores={坐標(biāo)x=128..},tag=傳送] ~ ~ ~ tp @s ~128 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=128..},tag=傳送] 坐標(biāo)x 128
execute @a[scores={坐標(biāo)x=63..},tag=傳送] ~ ~ ~ tp @s ~63 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=63..},tag=傳送] 坐標(biāo)x 63
execute @a[scores={坐標(biāo)x=32..},tag=傳送】 ~ ~ ~ tp @s ~32 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=32..},tag=傳送] 坐標(biāo)x 32
execute @a[scores={坐標(biāo)x=16..},tag=傳送] ~ ~ ~ tp @s ~16 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=16..},tag=傳送] 坐標(biāo)x 16
execute @a[scores={坐標(biāo)x=8..},tag=傳送] ~ ~ ~ tp @s ~8 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=8..},tag=傳送] 坐標(biāo)x 8
execute @a[scores={坐標(biāo)x=4..},tag=傳送] ~ ~ ~ tp @s ~4 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=4..},tag=傳送] 坐標(biāo)x 4
execute @a[scores={坐標(biāo)x=2..},tag=傳送] ~ ~ ~ tp @s ~2 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=2..},tag=傳送] 坐標(biāo)x 2
execute @a[scores={坐標(biāo)x=1..},tag=傳送] ~ ~ ~ tp @s ~1 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=1..},tag=傳送] 坐標(biāo)x 1
x負(fù)坐標(biāo)
execute @a[scores={坐標(biāo)x=..-128},tag=傳送] ~ ~ ~ tp @s ~-128 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-128},tag=傳送] 坐標(biāo)x -128
execute @a[scores={坐標(biāo)x=..-63},tag=傳送] ~ ~ ~ tp @s ~-63 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-63},tag=傳送] 坐標(biāo)x -63
execute @a[scores={坐標(biāo)x=..-32},tag=傳送] ~ ~ ~ tp @s ~-32 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-32},tag=傳送] 坐標(biāo)x -32
execute @a[scores={坐標(biāo)x=..-16},tag=傳送] ~ ~ ~ tp @s ~-16 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-16},tag=傳送] 坐標(biāo)x -16
execute @a[scores={坐標(biāo)x=..-8},tag=傳送] ~ ~ ~ tp @s ~-8 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-8},tag=傳送] 坐標(biāo)x -8
execute @a[scores={坐標(biāo)x=..-4},tag=傳送] ~ ~ ~ tp @s ~-4 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-4},tag=傳送] 坐標(biāo)x -4
execute @a[scores={坐標(biāo)x=..-2},tag=傳送] ~ ~ ~ tp @s ~-2 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-2},tag=傳送] 坐標(biāo)x -2
execute @a[scores={坐標(biāo)x=..-1},tag=傳送] ~ ~ ~ tp @s ~-1 ~ ~
scoreboard players remove @a[scores={坐標(biāo)x=..-1},tag=傳送] 坐標(biāo)x -1
剩下的自己改吧,我累了
y正坐標(biāo)傳送?
execute @a【scores={坐標(biāo)y=4..},tag=傳送】 ~ ~ ~ tp @s ~ ~4 ~
scoreboard players remove @a【scores={坐標(biāo)y=4..},tag=傳送】 坐標(biāo)y 4
execute @a【scores={坐標(biāo)y=2..},tag=傳送】 ~ ~ ~ tp @s ~ ~2 ~
scoreboard players remove @a【scores={坐標(biāo)y=2..},tag=傳送】 坐標(biāo)y 2
execute @a【scores={坐標(biāo)y=1..},tag=傳送】 ~ ~ ~ tp @s ~ ~1 ~
scoreboard players remove @a【scores={坐標(biāo)y=1..},tag=傳送】 坐標(biāo)y 1
y負(fù)坐標(biāo)傳送?
execute @a【scores={坐標(biāo)y=..-4},tag=傳送】 ~ ~ ~ tp @s ~ ~-4 ~
scoreboard players remove @a【scores={坐標(biāo)y=..-4},tag=傳送】 坐標(biāo)y -4
execute @a【scores={坐標(biāo)y=..-2},tag=傳送】 ~ ~ ~ tp @s ~ ~-2 ~
scoreboard players remove @a【scores={坐標(biāo)y=..-2},tag=傳送】 坐標(biāo)y -2
execute @a【scores={坐標(biāo)y=..-1},tag=傳送】 ~ ~ ~ tp @s ~ ~-1 ~
scoreboard players remove @a【scores={坐標(biāo)y=..-1},tag=傳送】 坐標(biāo)y -1
z正坐標(biāo)傳送?
execute @a【scores={坐標(biāo)z=128..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~128
scoreboard players remove @a【scores={坐標(biāo)z=128..},tag=傳送】 坐標(biāo)z 128
execute @a【scores={坐標(biāo)z=63..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~63
scoreboard players remove @a【scores={坐標(biāo)z=63..},tag=傳送】 坐標(biāo)z 63
execute @a【scores={坐標(biāo)z=32..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~32
scoreboard players remove @a【scores={坐標(biāo)z=32..},tag=傳送】 坐標(biāo)z 32
execute @a【scores={坐標(biāo)z=16..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~16
scoreboard players remove @a【scores={坐標(biāo)z=16..},tag=傳送】 坐標(biāo)z 16
execute @a【scores={坐標(biāo)z=8..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~8
scoreboard players remove @a【scores={坐標(biāo)z=8..},tag=傳送】 坐標(biāo)z 8
execute @a【scores={坐標(biāo)z=4..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~4
scoreboard players remove @a【scores={坐標(biāo)z=4..},tag=傳送】 坐標(biāo)z 4
execute @a【scores={坐標(biāo)z=2..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~2
scoreboard players remove @a【scores={坐標(biāo)z=2..},tag=傳送】 坐標(biāo)z 2
execute @a【scores={坐標(biāo)z=1..},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~1
scoreboard players remove @a【scores={坐標(biāo)z=1..},tag=傳送】 坐標(biāo)z 1
z負(fù)坐標(biāo)傳送?
execute @a【scores={坐標(biāo)z=..-128},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-128
scoreboard players remove @a【scores={坐標(biāo)z=..-128},tag=傳送】 坐標(biāo)z -128
execute @a【scores={坐標(biāo)z=..-63},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-63
scoreboard players remove @a【scores={坐標(biāo)z=..-63},tag=傳送】 坐標(biāo)z -63
execute @a【scores={坐標(biāo)z=..-32},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-32
scoreboard players remove @a【scores={坐標(biāo)z=..-32},tag=傳送】 坐標(biāo)z -32
execute @a【scores={坐標(biāo)z=..-16},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-16
scoreboard players remove @a【scores={坐標(biāo)z=..-16},tag=傳送】 坐標(biāo)z -16
execute @a【scores={坐標(biāo)z=..-8},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-8
scoreboard players remove @a【scores={坐標(biāo)z=..-8},tag=傳送】 坐標(biāo)z -8
execute @a【scores={坐標(biāo)z=..-4},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-4
scoreboard players remove @a【scores={坐標(biāo)z=..-4},tag=傳送】 坐標(biāo)z -4
execute @a【scores={坐標(biāo)z=..-2},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-2
scoreboard players remove @a【scores={坐標(biāo)z=..-2},tag=傳送】 坐標(biāo)z -2
execute @a【scores={坐標(biāo)z=..-1},tag=傳送】 ~ ~ ~ tp @s ~ ~ ~-1
scoreboard players remove @a【scores={坐標(biāo)z=..-1},tag=傳送】 坐標(biāo)z -1
【T顯部分】
execute @a【x=●,y=●,z=●,dx=●,dy=●,dz=●】 ~ ~ ~ titleraw @s actionbar {"rawtext":【{"text":"§l§o§e 【§b進入傳送功能§e】§r"},{"text":"\n§l§o§f請輸入要傳送的坐標(biāo)§r"},{"text":"\n§l§cX§f坐標(biāo) §r:"},{"score":{"name":"@s","objective":"坐標(biāo)x"}},{"text":"\n§l§aY§f坐標(biāo) §r:"},{"score":{"name":"@s","objective":"坐標(biāo)y"}}
,{"text":"\n§l§bZ§f坐標(biāo) §r:"},{"score":{"name":"@s","objective":"坐標(biāo)z"}}】}
[積分榜激活]
execute @a【x=●y=-●,z=●,dx=●,dy=●,dz=●】 ~ ~ ~ scoreboard players add @a 坐標(biāo)x 0
execute @a【x=●,y=-●,z=●,dx=●,dy=●,dz=●】 ~ ~ ~ scoreboard players add @a 坐標(biāo)y 0
execute @a【x=●,y=-●,z=●,dx=●,dy=●,dz=●】 ~ ~ ~ scoreboard players add @a 坐標(biāo)z 0
【玩家坐標(biāo)操作部分】
X正坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)x 1
(十位)
scoreboard players add @p 坐標(biāo)x 10
(百位)
scoreboard players add @p 坐標(biāo)x 100
(千位)
scoreboard players add @p 坐標(biāo)x 1000
X負(fù)坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)x -1
(十位)
scoreboard players add @p 坐標(biāo)x -10
(百位)
scoreboard players add @p 坐標(biāo)x -100
(千位)
scoreboard players add @p 坐標(biāo)x -1000
Y正坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)y 1
(十位)
scoreboard players add @p 坐標(biāo)y 10
Y負(fù)坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)y -1
(十位)
scoreboard players add @p 坐標(biāo)y -10
Z正坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)z 1
(十位)
scoreboard players add @p 坐標(biāo)z 10
(百位)
scoreboard players add @p 坐標(biāo)z 100
(千位)
scoreboard players add @p 坐標(biāo)z 1000
X負(fù)坐標(biāo)?
(個位)
scoreboard players add @p 坐標(biāo)z -1
(十位)
scoreboard players add @p 坐標(biāo)z -10
(百位)
scoreboard players add @p 坐標(biāo)z -100
(千位)
scoreboard players add @p 坐標(biāo)z -1000
[標(biāo)簽與坐標(biāo)矯正部分]
tp @a【tag=傳送a】 0 0 0
tag @a【tag=傳送a】 add 傳送
tag @a【tag=傳送a】 remove 傳送a
tag @a【scores={坐標(biāo)x=0,坐標(biāo)y=0,坐標(biāo)z=0},tag=傳送】 remove 傳送
tp @a【x=0,y=0,z=0,r=2,tag=!傳送】 ●
[●=傳送臺坐標(biāo)]
[告示牌操作提示模板文本部分]
§l§o§e【§cX§f坐標(biāo)§e】§f+1
§l§o§e【§cX§f坐標(biāo)§e】§f+10
§l§o§e【§cX§f坐標(biāo)§e】§f+100
§l§o§e【§cX§f坐標(biāo)§e】§f+1000
§l§o§e【§cX§f坐標(biāo)§e】§f-1
§l§o§e【§cX§f坐標(biāo)§e】§f-10
§l§o§e【§cX§f坐標(biāo)§e】§f-100
§l§o§e【§cX§f坐標(biāo)§e】§f-1000
§l§o§e【§aY§f坐標(biāo)§e】§f1
§l§o§e【§aY§f坐標(biāo)§e】§f10
§l§o§e【§aY§f坐標(biāo)§e】§f-1
§l§o§e【§aY§f坐標(biāo)§e】§f-10
§l§o§e【§bZ§f坐標(biāo)§e】§f+1
§l§o§e【§bZ§f坐標(biāo)§e】§f+10
§l§o§e【§bZ§f坐標(biāo)§e】§f+100
§l§o§e【§bZ§f坐標(biāo)§e】§f+1000
§l§o§e【§bZ§f坐標(biāo)§e】§f-1
§l§o§e【§bZ§f坐標(biāo)§e】§f-10
§l§o§e【§bZ§f坐標(biāo)§e】§f-100
§l§o§e【§bZ§f坐標(biāo)§e】§f-1000