我的世界色盲派对2.0指令教学,超级详细,一看就会。

色盲派对2.0
作者:哔哩哔哩小鑫
————————————————
前置指令
scoreboard objectives add 色盲派对 dummy
scoreboard players set 游戏 色盲派对 1
(以上指令可在聊天栏输入)
==========================
开始游戏
scoreboard players test 人数 色盲派对 1 4
↑脉,无,红
title @a[房间区范围] title §c人数不足5人,无法开启游戏
↑连,有,保
scoreboard players test 人数 色盲派对 2 10
↑连,无,保
tag @a[房间区范围] add 游戏中
↑连,有,保
==========================
准备阶段
scoreboard players test 游戏 色盲派对 1 1
↑循,无,保
(比较器,中续器,目标)
①检测房间人数
scoreboard players reset 人数 色盲派对
↑循,无,红
execute @a[房间区范围] ~ ~ ~ scoreboard players add 人数 色盲派对 1
↑连,无,保
titleraw @a[房间区范围] actionbar {"rawtext":[{"text":"§l§6游戏:§f色盲派对 §6人数:§f("},{"score":{"name":"人数","objective":"色盲派对"}},{"text":"/10)"}]}
↑连,无,保
②部分功能重置
execute @a[tag=游戏中] ~ ~ ~ scoreboard players set 游戏 色盲派对 2
↑循,无,红
scoreboard players set 回合 色盲派对 0
↑连,无,保
scoreboard players set 倒计时 色盲派对 -1
↑连,无,保
kill @e[type=armor_stand,name=色彩]
↑连,无,保
③游戏结束后设定
fill x y z x y z lever 4(拉杆坐标)
↑脉,无,红
tag @a remove 游戏中
↑连,无,保
kill @e[type=armor_stand,name=地形助手]
↑连,无,保
④游戏中途设定
(红石火把)
fill x,y z x y z air 0(拉杆坐标)
↑脉,无,红
(两个中续器)
execute @a[房间区范围] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"§g色盲派对§c游戏已开始,请等待游戏结束!§b抬头+跳可传送至观战席
§6正在游戏中人员:§f"},{"selector":"@a[tag=游戏中]"}]}
↑循,无,红
execute @a[房间区范围] ~ ~ ~ detect ~ ~-1 ~ air 0 tp @s[rx=-80] x y z(房间坐标)
↑连,无,保
==========================
即将开始阶段
scoreboard players test 游戏 色盲派对 2 2
↑循,无,保
(比较器,中续器,目标)
游戏开始倒计时
clone x y z x y z x y z(地形复制到游玩)
↑脉,无,红
tp @a[tag=游戏中] x y z(游玩坐标)
↑连,无,保
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
↑循,无,保
(比较器,中续器,目标)
①检测游戏状态
scoreboard players reset 人数 色盲派对
↑循,无,红
execute @a[tag=游戏中] ~ ~ ~ scoreboard players add 人数 色盲派对 1
↑连,无,保
scoreboard players add 人数 色盲派对 0
↑连,无,保
scoreboard players test 人数 色盲派对 0 0
↑连,无,保
scoreboard players set 游戏 色盲派对 1
↑连,有,保
scoreboard players test 人数 色盲派对 1 1
↑连,无,保
title @a[tag=游戏中] title §a恭喜你获得了第一
↑连,有,保
tp @a[tag=游戏中] x y z(房间区坐标)
↑连,有,保
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(观战区坐标)
↑连,无,保
execute @a[tag=游戏中] ~ ~ ~ detect ~ ~ ~ structure_void 0 title @s title §c游戏失败
↑连,无,保
tag @a[观战区范围] 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省略,只需改分数和数据值即可
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 ~ ~
↑连,无,保
③盔甲架随机颜色
(中续器)
summon armor_stand ~ ~1 ~ 助手 色彩
↑脉,无,红
(中续器)
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省略只需改分数和数据值
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"}}
↑连,无,保
④开始后执行的指令
scoreboard players set 倒计时 色盲派对 11
↑脉,无,红
execute @a[tag=游戏中,m=survival] ~ ~ ~ gamemode adventure @s
↑连,无,保
==========================
倒计时>0
scoreboard players test 倒计时 色盲派对 1 *
↑循,无,保
(比较器,中续器,目标)
①循环执行
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 ~ ~ ~
↑连,有,保
②脉冲执行
clone x y z x y z x y z(地形复制到游玩坐标)
↑脉,无,红
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
↑循,无,保
(比较器,中续器,目标)
/structure load 地形 x y z(地形助手生成点)
↑脉,无,红
fill x y z x y z air(游玩区地形)
↑连,无,保
execute @a[tag=游戏中] ~ ~ ~ playsound random.anvil_land @s ~ ~ ~
↑连,无,保
titleraw @a[tag=游戏中] actionbar {"rawtext":[{"text":"§b剩余玩家:§f§l"},{"score":{"name":"人数","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(地形复制到游玩
↑连,无,保)
2..13省略,分数和数据值改一下就行了
14.
execute @e[name=色彩,type=armor_stand,scores={色盲派对=14}] ~ ~ ~ clone x y z x y z x y z filtered normal concrete 14(地形复制到游玩)
↑连,无,保
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
↑连,有,保
————————————————
展示完毕!