초보를 위한 스톱워치 만들기

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии • 1

  • @DaegwonTV
    @DaegwonTV  Год назад +1

    커맨드
    scoreboard objectives add stopwatch dummy
    scoreboard objectives add second dummy
    scoreboard objectives add minute dummy
    scoreboard objectives add hour dummy
    커맨드 블럭
    -반복형
    scoreboard players add @a stopwatch 1
    -연쇄형
    scoreboard players add @a[scores={stopwatch=20..}] second 1
    scoreboard players set @a[scores={stopwatch=20..}] stopwatch 0
    scoreboard players add @a[scores={second=60..}] minute 1
    scoreboard players set @a[scores={second=60..}] second 0
    scoreboard players add @a[scores={minute=60..}] hour 1
    scoreboard players set @a[scores={minute=60..}] minute 0
    title @a actionbar [{"score":{"name":"@a","objective":"hour"},"color":"green"},{"text":" : "},{"score":{"name":"@a","objective":"minute"},"color":"green"},{"text":" : "},{"score":{"name":"@a","objective":"second"},"color":"green"}]
    커맨드
    scoreboard players set @a minute 0
    scoreboard players set @a hour 0
    정상인지 확인하는 커맨드
    scoreboard objectives setdisplay sidebar stopwatch
    자신의 닉네임 옆에 숫자가 올라가고 20에서 초기화가 돼면 정상입니다
    *모든 커맨드의 앞부분에 "/"를 붙여야 합니다*