친구들과 야생pvp를 팀나눠서 해볼생각인데 커맨드블록에 플레이어가 죽으면 태그 붙혀서 붙힌 사람만 관전모드로 바꿀수 있도록 하고 싶습니다
여러 예시구문들 보고 시도해보았는데 작동하지 않아서.. 전문가의 손길이 필요합니다.!!
원커맨드가 아니어도 좋습니다..ㅠㅠ
시작 전 명령어:
gamerule commandBlockOutput
scoreboard objectives add death deathCount
커맨드:
[반복형] [무조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run gamemode spectator @s
[연쇄형] [조건적] [항상 활성화]
title @a title [{"selector":"@a[scores={death=1},"color":"aqua"},{"text":" 탈락!","color":"yellow"}]"}]
execute as @a[scores={death=1}] at @s run scoreboard players set @s death 0
레드스톤
노트블럭전문가
2024-06-17
0
업데이트
학교가기싫다
2024-06-14
1
2024-06-05
아티클
2024-06-02
2024-05-26
제작대
2021.06.29시작 전 명령어:
gamerule commandBlockOutput
scoreboard objectives add death deathCount
커맨드:
[반복형] [무조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run gamemode spectator @s
[연쇄형] [조건적] [항상 활성화]
title @a title [{"selector":"@a[scores={death=1},"color":"aqua"},{"text":" 탈락!","color":"yellow"}]"}]
[연쇄형] [조건적] [항상 활성화]
execute as @a[scores={death=1}] at @s run scoreboard players set @s death 0