我的世界移動檢測登錄播報指令分享

鏈1 :第一條循環(huán)無條件延遲5 后續(xù)連鎖無條件
execute @a[tag=未登入] ~ ~ ~ fill ~1 ~-1 ~-1 ~-1 ~2 ~1 light_block 0 replace air
execute @a[tag=未登入] ~ ~ ~ fill ~1 ~-1 ~-1 ~-1 ~1 ~1 light_block 1 replace air
execute @a[tag=未登入] ~ ~ ~ fill ~ ~ ~ ~ ~ ~ light_block 1
鏈2:登錄 第一條循環(huán)延遲0,后續(xù)連鎖無條件
/scoreboard players add @a 登入 0
execute @a[scores={登入=0}] ~ ~ ~ tag @s add 未登入
/scoreboard objectives remove 登入
/scoreboard objectives add 登入 dummy
/scoreboard players set @a 登入 1
execute @a[tag=未登入] ~ ~ ~ execute @s ~ ~ ~ detect ~ ~ ~ light_block 0 tag @s add 登錄
execute @a[tag=登錄] ~ ~ ~ tag @s remove 未登入
execute @a[tag=登錄] ~ ~ ~ /fill ~5 ~-5 ~-5 ~-5 ~8 ~6 air 0 replace light_block -1
execute @a[tag=登錄] ~ ~ ~ tellraw @a {"rawtext":[{"text":"§f◆ §f稱號§c:"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={稱號=1}]"},{"text":" §6§l?§a流§b云§c二§d逸§6?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={稱號=2}]"},{"text":" §6§l?§a蔡§b徐§d坤§6?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={稱號=0}]"},{"text":" §7暫無稱號§r"}]}},{"text":"\n§f玩家:§e "},{"selector":"@s"},{"text":"§f 登入服務(wù)器!"},{"text":"\n丨 §aUID§c: §f"},{"score":{"name":"@s","objective":"玩家id"}},{"text":" §f丨 §6在線時長§c:§f "},{"score":{"name":"@s","objective":"在線時間"}},{"text":"分鐘 丨 \n§f丨 §g性別§c:§f"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={性別=1}]"},{"text":" §7?§b男§7?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={性別=2}]"},{"text":" §7?§d女§7?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={性別=0}]"},{"text":" §7?§7未知§7?§r"}]}},{"text":" §f丨"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={vip=0}]"},{"text":" §7?未激活VIP§7?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={vip=1..}]"},{"text":" §c?VIP§c?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={身份=3}]"},{"text":"\n§r身份:§6?§a指§b令§c師§6?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={身份=1}]"},{"text":"\n§r身份:§6?服主§6?§r"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={身份=2}]"},{"text":"\n§r身份:§6?§a建§b筑§c師§6?§r"}]}}]}
execute @a[tag=登錄] ~ ~ ~
之后自己拓展發(fā)揮,比如一次性禮包和公告和粒子音效啥的
execute @a[tag=登錄] ~ ~ ~ tag @s remove 登錄