【我的世界】二級雪球菜單

前置指令:1./scoreboard objectives add 雪球菜單 dummy
2./gamerule commandblockoutput false
3./tickingarea add circle ~~~ 2
指令區(qū)一、菜單基礎(chǔ)運(yùn)行:
1.replaceitem entity @a slot.hotbar 8 destroy snowball 2 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}2.execute @e[type=snowball] ~~~ scoreboard players add @p[r=2] 雪球菜單 13.execute @e[type=snowball] ~~~ playsound random.toast @p4.kill @e[type=snowball]5.execute @a[scores={雪球菜單=1..6}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b ? 『雪球菜單』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=1}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『個(gè)人信息』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=2}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『定點(diǎn)傳送』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=3}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"③.『快捷功能』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=4}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"④.『SVIP功能』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=5}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑤.『玩家互傳』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=6}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑥.『使用動作』\n"},{"text":"§b?==================?\n§a抬頭確定? §c低頭關(guān)閉?\n\n\n\n\n"}]}6.execute @a[scores={雪球菜單=7}] ~~~ scoreboard players set @s 雪球菜單 17.execute @a[scores={雪球菜單=!0},rxm=88] ~~~ title @s actionbar §l§c已關(guān)閉菜單8.execute @a[scores={雪球菜單=!0},rxm=88] ~~~ scoreboard players set @s 雪球菜單 0二、用于實(shí)現(xiàn)翻頁的指令1.execute @a[scores={雪球菜單=1},rx=-88] ~~~ scoreboard players set @s 雪球菜單 -12.execute @a[scores={雪球菜單=2},rx=-88] ~~~ scoreboard players set @s 雪球菜單 103.execute @a[scores={雪球菜單=3},rx=-88] ~~~ scoreboard players set @s 雪球菜單 204.execute @a[scores={雪球菜單=4},rx=-88] ~~~ scoreboard players set @s 雪球菜單 305.execute @a[scores={雪球菜單=5},rx=-88] ~~~ scoreboard players set @s 雪球菜單 406.execute @a[scores={雪球菜單=6},rx=-88] ~~~ scoreboard players set @s 雪球菜單 50三、個(gè)人信息execute @a[scores={雪球菜單=-1}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b您的名稱§f: §7 "},{"selector":"@s"},{"text":"\n§d在線時(shí)間§f: §7 "},{"score":{"name":"@s","objective":"在線時(shí)間"}},{"text":"\n§e金幣數(shù)量§f: §7"},{"score":{"name":"@s","objective":"金幣"}},{"text":"\n§6游戲模式§f: §7"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[m=0]"},{"text":"§7生存模式"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[m=1]"},{"text":"§7創(chuàng)造模式"}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[m=2]"},{"text":"§7冒險(xiǎn)模式"}]}},{"text":"\n§c最近實(shí)體§f: §7"},{"selector":"@e[r=15,rm=0.5,c=1,type=!arrow,type=!npc,type=!armor_stand,type=!item]"},{"text":"\n§a最近掉落§l§f: §7"},{"selector":"@e[r=15,rm=0.5,c=1,type=item]"}]}四、定點(diǎn)傳送1.execute @a[scores={雪球菜單=10..15}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b ? 『定點(diǎn)傳送』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=11}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『傳送主城』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=12}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『傳送商店』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=13}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"③.『傳送副本』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=14}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"④.『傳送地皮』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=15}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑤.『隨機(jī)礦區(qū)』\n"},{"text":"§b?==================?\n§a抬頭確定? §c低頭關(guān)閉?\n\n\n"}]}2.execute @a[scores={雪球菜單=11},rx=-88] ~~~ tp @s 坐標(biāo)3.execute @a[scores={雪球菜單=12},rx=-88] ~~~ tp @s 坐標(biāo)4.execute @a[scores={雪球菜單=13},rx=-88] ~~~ tp @s 坐標(biāo)5.execute @a[scores={雪球菜單=14},rx=-88] ~~~ tp @s 坐標(biāo)6.execute @a[scores={雪球菜單=15},rx=-88] ~~~ tp @s 坐標(biāo)7.execute @a[scores={雪球菜單=11..15},rx=-88] ~~~ title @s actionbar §l§b傳送成功?8.execute @a[scores={雪球菜單=11..15},rx=-88] ~~~ scoreboard players set @s 雪球菜單 09.execute @a[scores={雪球菜單=16}] ~~~ scoreboard players set @s 雪球菜單 10五、快捷功能1.execute @a[scores={雪球菜單=20..25}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b ? 『快捷功能』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=21}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『原地去世』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=22}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『設(shè)重生點(diǎn)』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=23}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"③.『生存模式』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=24}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"④.『創(chuàng)造模式』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=25}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑤.『隨機(jī)傳送』\n"},{"text":"§b?==================?\n§a抬頭確定? §c低頭關(guān)閉?\n\n\n"}]}2.execute @a[scores={雪球菜單=21},rx=-88] ~~~ kill @s3.execute @a[scores={雪球菜單=22},rx=-88] ~~~ spawnpoint @s4.execute @a[scores={雪球菜單=23},rx=-88] ~~~ gamemode 0 @s5.execute @a[scores={雪球菜單=24},rx=-88,tag=允許創(chuàng)造] ~~~ gamemode 1 @s6.execute @a[scores={雪球菜單=21..24},rx=-88] ~~~ title @s actionbar §l§a執(zhí)行成功?7.execute @a[scores={雪球菜單=24},rx=-88,tag=!允許創(chuàng)造] ~~~ title @s actionbar §l§c您沒有變成創(chuàng)造模式的權(quán)限!8.execute @a[scores={雪球菜單=25},rx=-88] ~~~ effect @s resistance 20 255 true9.execute @a[scores={雪球菜單=25},rx=-88] ~~~ title @s title §e隨機(jī)傳送中...10.execute @a[scores={雪球菜單=25},rx=-88] ~~~ spreadplayers ~~ 350 2000 @s11.execute @a[scores={雪球菜單=21..25},rx=-88] ~~~ scoreboard players set @s 雪球菜單 012.execute @a[scores={雪球菜單=26}] ~~~ scoreboard players set @s 雪球菜單 20六、SVIP功能(注意有些命令方塊是有條件)1.execute @a[scores={雪球菜單=30..36}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§d ? 『SVIP功能』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=31}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『調(diào)成白天』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=32}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『調(diào)成黑夜』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=33}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"③.『更改晴天』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=34}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"④.『更改雨天』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=35}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑤.『更改雷暴』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=36}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"⑥.『加速1小時(shí)』\n"},{"text":"§d?==================?\n§a抬頭確定? §c低頭關(guān)閉?\n\n\n\n"}]}2.execute @a[scores={雪球菜單=31},rx=-88,tag=svip] ~~~ time set day3.say SVIP玩家§l§e @a[scores={雪球菜單=31},rx=-88,tag=svip] §r將時(shí)間調(diào)為了白天。4.execute @a[scores={雪球菜單=32},rx=-88,tag=svip] ~~~ time set night5.say SVIP玩家§l§e @a[scores={雪球菜單=32},rx=-88,tag=svip] §r將時(shí)間調(diào)為了黑夜。6.execute @a[scores={雪球菜單=33},rx=-88,tag=svip] ~~~ weather clear7.say SVIP玩家§l§e @a[scores={雪球菜單=33},rx=-88,tag=svip] §r將天氣更改為晴天。8.execute @a[scores={雪球菜單=34},rx=-88,tag=svip] ~~~ weather rain9.say SVIP玩家§l§e @a[scores={雪球菜單=34},rx=-88,tag=svip] §r將天氣更改為雨天。10.execute @a[scores={雪球菜單=35},rx=-88,tag=svip] ~~~ weather thunder11.say SVIP玩家§l§e @a[scores={雪球菜單=35},rx=-88,tag=svip] §r將天氣更改為雷暴。12.execute @a[scores={雪球菜單=36},rx=-88,tag=svip] ~~~ time add 240013.say SVIP玩家§l§e @a[scores={雪球菜單=36},rx=-88,tag=svip] §r將世界時(shí)間加速了1小時(shí)。14.execute @a[scores={雪球菜單=31..36},rx=-88,tag=svip] ~~~ title @s actionbar §l§dSVIP特權(quán)使用成功?15.execute @a[scores={雪球菜單=31..36},rx=-88,tag=!svip] ~~~ title @s actionbar §l§c您還不是SVIP!16.execute @a[scores={雪球菜單=31..36},rx=-88] ~~~ scoreboard players set @s 雪球菜單 017.execute @a[scores={雪球菜單=37}] ~~~ scoreboard players set @s 雪球菜單 30七、玩家互傳(注意有些命令方塊是有條件)1.execute @a[scores={雪球菜單=40..42}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b ? 『玩家互傳』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=41}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『發(fā)起傳送』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=42}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『接受傳送』\n"},{"text":"§b?==================?\n§a抬頭確定? §c低頭關(guān)閉?\n\n\n"}]}2.execute @a[scores={雪球菜單=41},rx=-88] ~~~ title @s title §l§b發(fā)起傳送成功,請等待同意。3.execute @a[scores={雪球菜單=41},rx=-88] ~~~ title @s subtitle §a一分鐘后無人同意自動取消。4.execute @a[scores={雪球菜單=41},rx=-88] ~~~ tag @s add 傳送5.execute @a[scores={雪球菜單=41},rx=-88] ~~~ scoreboard players set 計(jì)時(shí) 雪球菜單 606.say 玩家§l§e @a[scores={雪球菜單=41},rx=-88] §r發(fā)起了傳送,打開雪球菜單接受傳送即可將他傳送過來。7.execute @a[scores={雪球菜單=42},rx=-88] ~~~ tp @a[tag=傳送] @s8.say 已將玩家§l§e @a[tag=傳送] §r傳送至§l§e @a[scores={雪球菜單=42},rx=-88]9.tag @a remove 傳送10.execute @a[tag=傳送] ~~~ titleraw @a[scores={雪球菜單=0}] actionbar {"rawtext":[{"text":"§l§b傳送請求倒計(jì)時(shí)§f: "},{"score":{"name":"計(jì)時(shí)","objective":"雪球菜單"}}]}11.execute @a[scores={雪球菜單=41..42},rx=-88] ~~~ scoreboard players set @s 雪球菜單 012.execute @a[scores={雪球菜單=43}] ~~~ scoreboard players set @s 雪球菜單 4013.scoreboard players test 計(jì)時(shí) 雪球菜單 0 60 (這條指令需要設(shè)延遲20,其他的指令延遲都是0)14.scoreboard players remove 計(jì)時(shí) 雪球菜單 115.scoreboard players test 計(jì)時(shí) 雪球菜單 * 016.tag @a remove 傳送17.say 超時(shí)無人同意,已自動取消傳送請求。八、使用動作1.execute @a[scores={雪球菜單=50..56}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b ? 『使用動作』\n?==================?\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=51}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"①.『躺平』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=52}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"②.『坐下』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=53}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"③.『大頭』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=54}]"},{"text":" ? §6"},{"text":" ? §e"}]}},{"text":"④.『擁抱』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={雪球菜單=55}]"},{"text":" ? §6"},{"text":" ? §e"