Files
mc_datapack/music_quiz/data/mq/function/load.mcfunction

65 lines
1.8 KiB
MCFunction

# say "서버 리로드 성공"
function mq:tellraw {"text":"서버 리로드 성공!","color":"white","msg":'""'}
data merge storage mq:main { \
title: "", \
max_index: 50, \
answer: { author: "", title: "", alias: [] }, \
command_block: { \
name: "", \
image: "", \
alias: [], \
index: 1, \
volume: 30, \
x: 144, \
y: 59, \
z: -219, \
r: "SOUTH", \
x1: 131, \
y1: 77, \
z1: -262, \
x2: 157, \
y2: 91, \
z2: -262 \
}, \
spawn: { \
x: 144, \
y: 61, \
z: -219, \
r: 180, \
f: 0 \
} \
}
data merge storage func:temp {}
scoreboard objectives remove func.temp
scoreboard objectives remove status
scoreboard objectives remove main
scoreboard objectives remove map
scoreboard objectives remove buttons
scoreboard objectives remove answer
scoreboard objectives remove leave_game
scoreboard objectives add func.temp dummy
scoreboard objectives add status dummy
scoreboard objectives add main dummy
scoreboard objectives add map dummy
scoreboard objectives add buttons dummy
scoreboard objectives add answer dummy
scoreboard objectives add leave_game custom:leave_game
scoreboard players set timer status 0
scoreboard players set skript status 0
scoreboard players set yp status 0
scoreboard players set ts status 0
scoreboard players set two func.temp 2
scoreboard players set tree map -1
fill 94 78 -279 194 78 -279 minecraft:red_wool
scoreboard players set lamp1 map -1
bossbar add mq:process [{"text":"진행도: ","color": "yellow","bold": true},{"text":"0","color": "yellow","bold": true},{"text":"/","color": "yellow","bold": true},{"text":"0","color": "yellow","bold": true}]
function mq:commands/stop with storage mq:main
function mq:players/login with storage mq:main spawn