16 lines
1.5 KiB
MCFunction
16 lines
1.5 KiB
MCFunction
scoreboard players reset @a hint
|
|
|
|
execute if score init main matches 0 run return run function mq:tellraw {"text":"아직 퀴즈가 시작되지 않았습니다.","color":"red",msg:'""'}
|
|
execute if score init main matches 1..4 run return run function mq:tellraw {"text":"아직 힌트를 받을 수 없습니다.","color":"red",msg:'""'}
|
|
execute if score init main matches 6.. run return run function mq:tellraw {"text":"아직 다음노래가 재생되지 않았습니다.","color":"red",msg:'""'}
|
|
execute if score init main matches 10 run return run function mq:tellraw {"text":"퀴즈가 종료되었습니다.","color":"red",msg:'""'}
|
|
|
|
# warn-off execute-group
|
|
execute if score init main matches 5 run data modify storage mq:main hint.text set from storage mq:main answer.title
|
|
execute if score init main matches 5 run data modify storage mq:main hint.hint set value ""
|
|
execute if score init main matches 5 run function func:hint with storage mq:main hint
|
|
execute if score init main matches 5 run data modify storage mq:main hint.hint set from storage func:temp join.text
|
|
execute if score init main matches 5 run function mq:tellraw {"text":"","color":"black",msg:'""'}
|
|
execute if score init main matches 5 run function mq:tellraw {"text":"","color":"black",msg:[{"text":"힌트: ","color":"aqua","bold":true},{"storage":"mq:main","nbt":"hint.hint","color": "yellow","bold": true}]}
|
|
execute if score init main matches 5 run function mq:tellraw {"text":"","color":"black",msg:'""'}
|