網(wǎng)易可用坐騎菜單教程

網(wǎng)易版坐騎菜單
作者:安河無(wú)羨
1cb面板顯示改的是up主晴淵藍(lán)的
1.前置指令
①scoreboard objectives add 坐騎菜單 dummy
②scoreboard objectives add 金幣dummy
③/gamerule commandBlockOutput false
2.實(shí)現(xiàn)翻頁(yè)
①replaceitem entity @a slot.hotbar 8 destroy egg 2 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}
②execute @e[type=egg] ~~~ scoreboard players add @p 坐騎菜單 1
③execute @e[type=egg] ~~~ playsound random.toast @p
④kill @e[type=egg]
⑤execute @a[scores={坐騎菜單=!0},rxm=88] ~~~ title @s actionbar §l§c已關(guān)閉菜單?
⑥execute @a[scores={坐騎菜單=!0},rxm=88] ~~~ playsound fire.ignite @p
⑦execute @a[scores={坐騎菜單=!0},rxm=88] ~~~ scoreboard players set @s 坐騎菜單 0
⑧execute @a[scores={坐騎菜單=6}] ~~~ scoreboard players set @s 坐騎菜單 2
⑨execute @a[scores={坐騎菜單=16}] ~~~ scoreboard players set @s 坐騎菜單 11
3.菜單顯示
①title @a[scores={坐騎菜單=1}] actionbar §l§b坐騎菜單
§b?==================?
§e①.傳說(shuō)坐騎
§e②.史詩(shī)坐騎
§e③.稀有坐騎
§e④.普通坐騎
§b?==================?
§a抬頭確定? §c低頭取消?
§r
§r
§r
②execute @a[scores={坐騎菜單=2..5}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b坐騎菜單\n?==================?§e\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=2}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"①傳說(shuō)坐騎『32w』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=3}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"②史詩(shī)坐騎『20w』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=4}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"③稀有坐騎『10w』\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=5}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"④普通坐騎『1w』\n"},{"text":"§b?==================?\n§a抬頭確定? §c低頭取消?\n\n\n\n"}]}
③execute @a[scores={坐騎菜單=10..16}] ~~~ titleraw @s actionbar {"rawtext":[{"text":"§l§b坐騎菜單\n==================§e\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=11}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"①機(jī)械翼龍\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":"④勝利戰(zhàn)車\n"},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[scores={坐騎菜單=15}]"},{"text":" §6"},{"text":" §e"}]}},{"text":"⑤慧星極影\n"},{"text":"§a抬頭確定? §c低頭取消?\n\n\n\n"}]}
④execute @a[scores={坐騎菜單=2},rx=-88] ~~~ scoreboard players set @s 坐騎菜單 10
4.扣金幣召喚(有的是有條件)
①/scoreboard players test @a[scores={坐騎菜單=11},rx=-85] 金幣 * 320000
②execute @a[scores={坐騎菜單=11..15},rx=-85] ~~~ title @s title §l§c金幣不足
③/scoreboard players test @a[scores={坐騎菜單=11},rx=-85] 金幣 320000 *
④execute @a[scores={坐騎菜單=11..15},rx=-85] ~~~ scoreboard players remove @s 金幣 320000
⑤execute @a[scores={坐騎菜單=11..15},rx=-85] ~~~ title @s title §l§b召喚成功
⑥execute @a[scores={坐騎菜單=11},rx=-85] ~ ~ ~ structure load 機(jī)械翼龍 ~~~
⑦execute @a[scores={坐騎菜單=11..15},rx=-85] ~~~ scoreboard players set @s 坐騎菜單 0