Рет қаралды 9,240
[json 문법 쉽게 만드는 사이트]
www.minecraftj...
[아머스탠드 소환]
/summon minecraft:armor_stand ~ ~ ~ {Tags:["timer"]}
[time 스코어보드 생성]
/scoreboard objectives add time dummy
[second 스코어보드 생성]
/scoreboard objectives add second dummy
[타이머 시간 초기화]
(반응형)
scoreboard players set @e[tag=timer] second 원하는시간
(연쇄형)
scoreboard players set @e[tag=timer] time 0
[타이머 작동]
(반복형)
execute as @e[tag=timer,scores={second=1..}] run scoreboard players add @s time 1
(연쇄형)
execute as @e[tag=timer,scores={time=20}] run scoreboard players remove @s second 1
(조건적 연쇄형)
scoreboard players set @e[tag=timer] time 0
[타이머를 actionbar에 띄우기]
(반복형)
title @a actionbar [{"score":{"name":"@e[tag=timer]","objective":"second"}}]
[스톱워치 시간 초기화]
(반응형)
scoreboard players set @e[tag=timer] second 0
(연쇄형)
scoreboard players set @e[tag=timer] time 0
[스톱워치 작동]
(반복형)
execute as @e[tag=timer] run scoreboard players add @s time 1
(연쇄형)
execute as @e[tag=timer,scores={time=20}] run scoreboard players add @s second 1
(조건적 연쇄형)
scoreboard players set @e[tag=timer] time 0
[스톱워치를 actionbar에 띄우기]
title @a actionbar [{"score":{"name":"@e[tag=timer]","objective":"second"}}]
+ 보너스
[남은 시간 글자를 함께 출력하기]
title @a actionbar [{"text":"남은 시간 : "},{"score":{"name":"@e[tag=timer]","objective":"second"}}]