execute as @a[scores={a2=2}] at @s run setblock <옆 옆 줄 좌표> minecraft:redstone_block
[연쇄형] [조건적] [항상 활성화]
setblock <이 줄 레드스톤 블럭 좌표> minecraft:air
[반복형] [무조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players remove @a a2 1
[연쇄형] [조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players set @s a1 0
[연쇄형] [조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players set @s death 0
[반복형] [무조건적] [레드스톤 필요]
execute as @a[scores={a2=1,a1=1}] at @s run title @a title [{"selector":"@s","color":"yellow","bold":"true"},{"text":" win!","color":"aqua","bold":"true"}]
제작대
2022.08.11gamerule commandBolckOutput false
scoreboard objectives add a1 dummy
scoreboard objectives add a2 dummy
scoreboard objectives add death deathCount
이 위에 있는 것들을 미리 써주세요!!
[반복형] [무조건적] [레드스톤 필요]
scoreboard players add a1 @a[scores={a1=0}] 1
[연쇄형] [조건적] [항상 활성화]
scoreboard players add @a a2 1
[연쇄형] [무조건적] [항상 활성화]
execute as @a[scores={a2=2}] at @s run setblock <옆 옆 줄 좌표> minecraft:redstone_block
[연쇄형] [조건적] [항상 활성화]
setblock <이 줄 레드스톤 블럭 좌표> minecraft:air
[반복형] [무조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players remove @a a2 1
[연쇄형] [조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players set @s a1 0
[연쇄형] [조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players set @s death 0
[반복형] [무조건적] [레드스톤 필요]
execute as @a[scores={a2=1,a1=1}] at @s run title @a title [{"selector":"@s","color":"yellow","bold":"true"},{"text":" win!","color":"aqua","bold":"true"}]
[연쇄형] [조건적] [항상 활성화]
scoreboard players set @a a1 0
[연쇄형] [조건적] [항상 활성화]
scoreboard players set @a a2 0
[연쇄형] [조건적] [항상 활성화]
scoreboard players set @a death 0
[연쇄형] [조건적] [항상 활성화]
setblock <이 줄의 레드스톤 좌표> minecraft:air
이렇게 쓰신 다음에 3줄이 나오시면 됩니다!