Рет қаралды 8,362
예스!
[커맨드]
(초단위 타이머)
스코어보드 생성
/scoreboard objectives add 0timer dummy
/scoreboard objectives add 0timertick dummy
커맨드
scoreboard players add @a[tag=timer] 0timertick 1
execute as @a[tag=timer,scores={0timertick=20..}] at @s run scoreboard players add @s 0timer 1
execute as @a[tag=timer,scores={0timertick=20..}] at @s run scoreboard players set @s 0timertick 0
title @a[tag=timer] actionbar [{"score":{"name":"@a[tag=timer]","objective":"0timer"},"color":"green","bold":true}]
(소수점 1단위 타이머)
스코어보드 생성
/scoreboard objectives add 1timer dummy
/scoreboard objectives add 1timertick dummy
/scoreboard objectives add 1timerti dummy
커맨드
scoreboard players add @a[tag=timer] 1timertick 1
execute as @a[tag=timer,scores={1timertick=2..}] at @s run scoreboard players add @s 1timerti 1
execute as @a[tag=timer,scores={1timertick=2..}] at @s run scoreboard players set @s 1timertick 0
execute as @a[tag=timer,scores={1timerti=10..}] at @s run scoreboard players add @s 1timer 1
execute as @a[tag=timer,scores={1timerti=10..}] at @s run scoreboard players set @s 1timerti 0
title @a[tag=timer] actionbar [{"score":{"name":"@a[tag=timer]","objective":"1timer"},"color":"green","bold":true},{"text":"."},{"score":{"name":"@a[tag=timer]","objective":"1timerti"},"color":"green","bold":true}]
(소수점 2단위 타이머)
스코어보드
/scoreboard objectives add 2timer dummy
/scoreboard objectives add 2timertick dummy
커맨드
scoreboard players add @a[tag=timer] 2timertick 5
execute as @a[tag=timer,scores={2timertick=100..}] at @s run scoreboard players add @s 2timer 1
execute as @a[tag=timer,scores={2timertick=100..}] at @s run scoreboard players set @s 2timertick 0
title @a[tag=timer] actionbar [{"score":{"name":"@a[tag=timer]","objective":"2timer"},"color":"green","bold":true},{"text":"."},{"score":{"name":"@a[tag=timer]","objective":"2timertick"},"color":"green","bold":true}]
(초기화 커맨드)
scoreboard players set @a 0timer 0
scoreboard players set @a 0timertick 0
scoreboard players set @a 1timer 0
scoreboard players set @a 1timertick 0
scoreboard players set @a 1timerti 0
scoreboard players set @a 2timer 0
scoreboard players set @a 2timertick 0
#마크타이머커맨드 #마크소수점타이머 #마크커맨드