我的世界色盲派對2.0指令教學(xué),超級詳細(xì),一看就會。

色盲派對2.0
作者:嗶哩嗶哩小鑫
————————————————
前置指令
scoreboard objectives add 色盲派對 dummy
scoreboard players set 游戲 色盲派對 1
(以上指令可在聊天欄輸入)
==========================
開始游戲
scoreboard players test 人數(shù) 色盲派對 1 4
↑脈,無,紅
title @a[房間區(qū)范圍] title §c人數(shù)不足5人,無法開啟游戲
↑連,有,保
scoreboard players test 人數(shù) 色盲派對 2 10
↑連,無,保
tag @a[房間區(qū)范圍] add 游戲中
↑連,有,保
==========================
準(zhǔn)備階段
scoreboard players test 游戲 色盲派對 1 1
↑循,無,保
(比較器,中續(xù)器,目標(biāo))
①檢測房間人數(shù)
scoreboard players reset 人數(shù) 色盲派對
↑循,無,紅
execute @a[房間區(qū)范圍] ~ ~ ~ scoreboard players add 人數(shù) 色盲派對 1
↑連,無,保
titleraw @a[房間區(qū)范圍] actionbar {"rawtext":[{"text":"§l§6游戲:§f色盲派對 §6人數(shù):§f("},{"score":{"name":"人數(shù)","objective":"色盲派對"}},{"text":"/10)"}]}
↑連,無,保
②部分功能重置
execute @a[tag=游戲中] ~ ~ ~ scoreboard players set 游戲 色盲派對 2
↑循,無,紅
scoreboard players set 回合 色盲派對 0
↑連,無,保
scoreboard players set 倒計時 色盲派對 -1
↑連,無,保
kill @e[type=armor_stand,name=色彩]
↑連,無,保
③游戲結(jié)束后設(shè)定
fill x y z x y z?lever 4(拉桿坐標(biāo))
↑脈,無,紅
tag @a remove 游戲中
↑連,無,保
kill @e[type=armor_stand,name=地形助手]
↑連,無,保
④游戲中途設(shè)定
(紅石火把)
fill x,y z x y z?air 0(拉桿坐標(biāo))
↑脈,無,紅
(兩個中續(xù)器)
execute @a[房間區(qū)范圍] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"§g色盲派對§c游戲已開始,請等待游戲結(jié)束!§b抬頭+跳可傳送至觀戰(zhàn)席
§6正在游戲中人員:§f"},{"selector":"@a[tag=游戲中]"}]}
↑循,無,紅
execute @a[房間區(qū)范圍] ~ ~ ~ detect ~ ~-1 ~ air 0 tp @s[rx=-80] x y z(房間坐標(biāo))
↑連,無,保
==========================
即將開始階段
scoreboard players test 游戲 色盲派對 2 2
↑循,無,保
(比較器,中續(xù)器,目標(biāo))
游戲開始倒計時
clone x y z x y z x y z(地形復(fù)制到游玩)
↑脈,無,紅
tp @a[tag=游戲中] x y z(游玩坐標(biāo))
↑連,無,保
title @a[tag=游戲中] title §e色
↑連,無,保,延10
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~ 100 2
↑連,無,保
title @a[tag=游戲中] title §e色§d盲
↑連,無,保,延30
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~ 100 3
↑連,無,保
title @a[tag=游戲中] title §e色§d盲§a派
↑連,無,保,延25
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~ 100 4
↑連,無,保
title @a[tag=游戲中] title §e色§d盲§a派§c對
↑連,無,保,延20
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~ 100 5
↑連,無,保
title @a[tag=游戲中] title §f色盲派對
↑連,無,保,延15
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~ 100 6
↑連,無,保
scoreboard players random 字 色盲派對 1 9
↑連,無,保
titleraw @a[tag=游戲中] title {"rawtext":[{"text":"§"},{"score":{"name":"字","objective":"色盲派對"}},{"text":"色盲派對"}]}
↑連,無,保,延15
execute @a[tag=游戲中] ~ ~ ~ playsound random.orb @s ~ ~ ~ 100 1
↑連,無,保
title @a[tag=游戲中] title §a游戲開始
↑連,無,保,延20
title @a[tag=游戲中] subtitle §6祝你游戲愉快
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ playsound random.levelup @s ~ ~ ~ 100 3 10
↑連,無,保
scoreboard players set 游戲 色盲派對 3
↑連,無,保
==========================
游玩階段
scoreboard players test 游戲 色盲派對 3 3
↑循,無,保
(比較器,中續(xù)器,目標(biāo))
①檢測游戲狀態(tài)
scoreboard players reset 人數(shù) 色盲派對
↑循,無,紅
execute @a[tag=游戲中] ~ ~ ~ scoreboard players add 人數(shù) 色盲派對 1
↑連,無,保
scoreboard players add 人數(shù) 色盲派對 0
↑連,無,保
scoreboard players test 人數(shù) 色盲派對 0 0
↑連,無,保
scoreboard players set 游戲 色盲派對 1
↑連,有,保
scoreboard players test 人數(shù) 色盲派對 1 1
↑連,無,保
title @a[tag=游戲中] title §a恭喜你獲得了第一
↑連,有,保
tp @a[tag=游戲中] x y z(房間區(qū)坐標(biāo))
↑連,有,保
scoreboard players set 游戲 色盲派對 1
↑連,有,保
execute @a[tag=游戲中] ~ ~ ~ detect ~ ~ ~ structure_void 0 playsound mob.enderdragon.growl @a[tag=游戲中] ~ ~ ~
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ detect ~ ~ ~ structure_void 0 particle minecraft:totem_particle ~ ~ ~
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ detect ~ ~ ~ structure_void 0 tp @s x y z(觀戰(zhàn)區(qū)坐標(biāo))
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ detect ~ ~ ~ structure_void 0 title @s title §c游戲失敗
↑連,無,保
tag @a[觀戰(zhàn)區(qū)范圍] remove 游戲中
↑連,無,保
②盔甲架隨機地形
scoreboard players random @e[type=armor_stand,name=地形助手] 色盲派對 1 14
↑循,無,紅
1.
execute @e[type=armor_stand,name=地形助手,scores={色盲派對=1}] ~ ~ ~ fill ~ ~-1 ~ ~ ~-1 ~ concrete 1
↑連,無,保
2..13省略,只需改分?jǐn)?shù)和數(shù)據(jù)值即可
14.
execute @e[type=armor_stand,name=地形助手,scores={色盲派對=14}] ~ ~ ~ fill ~ ~-1 ~ ~ ~-1 ~ concrete 14
↑連,無,保
execute @e[type=armor_stand,name=地形助手] ~ ~ ~ detect ~ ~-2 ~ redstone_block?0 kill @s
↑連,無,保
execute @e[type=armor_stand,name=地形助手] ~ ~ ~ tp @s ~0.5 ~ ~
↑連,無,保
③盔甲架隨機顏色
(中續(xù)器)
summon armor_stand ~ ~1 ~ 助手 色彩
↑脈,無,紅
(中續(xù)器)
1.
execute @e[type=armor_stand,name=色彩,scores={色盲派對=1}] ~ ~ ~ replaceitem entity @a[tag=游戲中] slot.hotbar 0 concrete 1 1?{"item_lock":{"mode":"lock_in_slot"}}
↑循,無,紅
2..13省略只需改分?jǐn)?shù)和數(shù)據(jù)值
14.
execute @e[type=armor_stand,name=色彩,scores={色盲派對=14}] ~ ~ ~ replaceitem entity @a[tag=游戲中] slot.hotbar 0 concrete 1 14?{"item_lock":{"mode":"lock_in_slot"}}
↑連,無,保
④開始后執(zhí)行的指令
scoreboard players set 倒計時 色盲派對 11
↑脈,無,紅
execute @a[tag=游戲中,m=survival] ~ ~ ~ gamemode adventure @s
↑連,無,保
==========================
倒計時>0
scoreboard players test 倒計時 色盲派對 1 *
↑循,無,保
(比較器,中續(xù)器,目標(biāo))
①循環(huán)執(zhí)行
scoreboard players remove 倒計時 色盲派對 1
↑循,無,紅,延20
titleraw @a[tag=游戲中] actionbar {"rawtext":[{"text":"§l§6第"},{"score":{"name":"回合","objective":"色盲派對"}},{"text":"回合 §r§b方塊將在§f§l"},{"score":{"name":"倒計時","objective":"色盲派對"}},{"text":"§r§b秒后消失"}]}
↑連,無,保
scoreboard players test 倒計時 色盲派對 1 3
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ playsound random.toast @s ~ ~ ~
↑連,有,保
②脈沖執(zhí)行
clone x y z x y z x y z(地形復(fù)制到游玩坐標(biāo))
↑脈,無,紅
scoreboard players add 回合 色盲派對 1
↑連,無,保
scoreboard players random @e[name=色彩,type=armor_stand] 色盲派對 1 14
↑連,無,保
replaceitem entity @a[x=0,y=-37,z=-6,dx=27,dz=27,dy=5] slot.hotbar 0 air 1 0
↑連,無,保
==========================
倒計時=0
scoreboard players test 倒計時 色盲派對 0 0
↑循,無,保
(比較器,中續(xù)器,目標(biāo))
/structure load 地形 x y z(地形助手生成點)
↑脈,無,紅
fill x y z x y z air(游玩區(qū)地形)
↑連,無,保
execute @a[tag=游戲中] ~ ~ ~ playsound random.anvil_land @s ~ ~ ~
↑連,無,保
titleraw @a[tag=游戲中] actionbar {"rawtext":[{"text":"§b剩余玩家:§f§l"},{"score":{"name":"人數(shù)","objective":"色盲派對"}},{"text":"§r§b人 "},{"text":"§b玩家剩余:§g"},{"selector":"@a[tag=游戲中]"}]}
↑連,無,保
1.
execute @e[name=色彩,type=armor_stand,scores={色盲派對=1}] ~ ~ ~ clone x y z x y z x y z filtered normal concrete 1(地形復(fù)制到游玩
↑連,無,保)
2..13省略,分?jǐn)?shù)和數(shù)據(jù)值改一下就行了
14.
execute @e[name=色彩,type=armor_stand,scores={色盲派對=14}] ~ ~ ~ clone x y z x y z x y z filtered normal concrete 14(地形復(fù)制到游玩)
↑連,無,保
scoreboard players test 回合 色盲派對 1 10
↑連,無,保,延60
scoreboard players set 倒計時 色盲派對 10
↑連,有,保
scoreboard players test 回合 色盲派對 11 20
↑連,無,保
scoreboard players set 倒計時 色盲派對 5
↑連,有,保
scoreboard players test 回合 色盲派對 21 *
↑連,無,保
scoreboard players set 倒計時 色盲派對 4
↑連,有,保
————————————————
展示完畢!