이전퀴즈 데이터팩

This commit is contained in:
2026-05-13 15:10:00 +09:00
parent 13ea34ba82
commit 6841b7a4c0
63 changed files with 1261 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
scoreboard players set init main 6
scoreboard players set @s answer 2
function mq:tellraw {"text":"","color":"black","msg":""}
function mq:tellraw {"text":"","color":"black",msg:[{"text":"정답: ","color": "aqua"},{"storage":"mq:main","nbt":"answer.title","color": "yellow","bold": true}]}
function mq:tellraw {"text":"","color":"black",msg:[{"text":"가수: ","color":"aqua"},{"storage":"mq:main","nbt":"answer.author","color": "yellow","bold": true}]}
execute if score skip buttons matches -2 run function mq:tellraw {"text":"","color":"black",msg:[{"text":"정답자: ","color": "aqua"},{"text":"스킵","color": "yellow","bold": true}]}
execute unless score skip buttons matches -2 run function mq:tellraw {"text":"","color":"black",msg:[{"text":"정답자: ","color": "aqua"},{"selector":"@s","color": "yellow","bold": true}]}
function mq:tellraw {"text":"","color":"black",msg:[{"text": "( 15초뒤 다음문제로 넘어갑니다. )","color": "gray"}]}
function mq:tellraw {"text":"","color":"black","msg":""}
title @a subtitle [{"text":"정답: ","color": "aqua"},{"storage":"mq:main","nbt":"answer.title","color": "yellow","bold": true}]
title @a title {"text":""}
scoreboard players set @a ready 0
scoreboard players set @a stop 0
scoreboard players set @a skip 0
scoreboard players set @a hint 0
scoreboard players set @a replay 0
execute if score skip buttons matches -2 run scoreboard players add score 1
execute unless score skip buttons matches -2 run scoreboard players add @s score 1
scoreboard players set stop buttons -3
scoreboard players set skip buttons -3
scoreboard players set hint buttons -3
scoreboard players set replay buttons -3
scoreboard players set timer main 1
function mq:images/image with storage mq:main command_block

View File

@@ -0,0 +1,7 @@
scoreboard players set init main 10
# stopsound @a weather
# say "엔딩"
scoreboard players set timer main 1

View File

@@ -0,0 +1,3 @@
$data modify block $(x) $(y) $(z) Command set value "yp playall song$(index) $(volume)"
function mq:quiz/play with storage mq:main command_block

View File

@@ -0,0 +1,6 @@
$execute if score index main matches $(index) run data modify storage mq:main answer.author set value "$(author)"
$execute if score index main matches $(index) run data modify storage mq:main command_block.name set value "$(title)"
$execute if score index main matches $(index) run data modify storage mq:main command_block.alias set value $(alias)
data modify storage mq:main answer.title set from storage mq:main command_block.name
data modify storage mq:main answer.alias set from storage mq:main command_block.alias

View File

@@ -0,0 +1,8 @@
$execute unless data storage mq:main {command_block:{name:"음악퀴즈"}} run summon minecraft:marker $(x) $(y) $(z) {Tags:["mq","default"],CustomName:"정답입력시작"}
$summon minecraft:marker $(x) $(y) $(z) {Tags:["mq","default"],CustomName:"$(name)"}
execute store result score length func.temp run data get storage mq:main command_block.alias
execute if score length func.temp matches 1.. run data modify storage mq:main command_block.name set from storage mq:main command_block.alias[0]
execute if score length func.temp matches 1.. run data remove storage mq:main command_block.alias[0]
execute if score length func.temp matches 1.. run function mq:quiz/macro/summon2 with storage mq:main command_block
$execute unless data storage mq:main {command_block:{name:"음악퀴즈"}} run summon minecraft:marker $(x) $(y) $(z) {Tags:["mq","default"],CustomName:"정답입력종료"}

View File

@@ -0,0 +1,6 @@
$summon minecraft:marker $(x) $(y) $(z) {Tags:["mq","default"],CustomName:"$(name)"}
execute store result score length func.temp run data get storage mq:main command_block.alias
execute if score length func.temp matches 1.. run data modify storage mq:main command_block.name set from storage mq:main command_block.alias[0]
execute if score length func.temp matches 1.. run data remove storage mq:main command_block.alias[0]
execute if score length func.temp matches 1.. run function mq:quiz/macro/summon2 with storage mq:main command_block

View File

@@ -0,0 +1,6 @@
scoreboard players set init main 4
$data modify block $(x) $(y) $(z) auto set value 1b
$data modify block $(x) $(y) $(z) auto set value 0b
function mq:quiz/setanswer

View File

@@ -0,0 +1,14 @@
scoreboard players add init main 3
scoreboard players set timer main 0
execute if score index main >= max_index main run return run function mq:quiz/end with storage mq:main
scoreboard players add index main 1
execute store result storage mq:main command_block.index int 1 run scoreboard players get index main
# 보스바
bossbar set mq:process name [{"text":"진행도: ","color": "yellow","bold": true},{"score":{"name":"index","objective": "main"},"color": "yellow","bold": true},{"text":"/","color": "yellow","bold": true},{"score":{"name":"max_index","objective": "main"},"color": "yellow","bold": true}]
bossbar set mq:process players @a
execute store result bossbar mq:process value run scoreboard players get index main
function mq:quiz/macro/command_block with storage mq:main command_block

View File

@@ -0,0 +1,309 @@
function mq:quiz/macro/setanswer { \
index: 1, \
title: "Lose My Mind", \
author: "Don Toliver", \
alias: [" "," ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 2, \
title: "The Chase", \
author: "Hearts2Hearts", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 3, \
title: "HOT SAUCE", \
author: "BABYMONSTER", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 4, \
title: "Golden", \
author: "HUNTR/X", \
alias: [""," "] \
}
function mq:quiz/macro/setanswer { \
index: 5, \
title: "", \
author: "", \
alias: ["Spin the wheel"] \
}
function mq:quiz/macro/setanswer { \
index: 6, \
title: "OVERDRIVE", \
author: "TWS", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 7, \
title: "", \
author: "QWER", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 8, \
title: "", \
author: "tripleS", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 9, \
title: "like JENNIE", \
author: "", \
alias: [" ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 10, \
title: "Rich Man", \
author: "aespa", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 11, \
title: "I DO ME", \
author: "KiiiKiii", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 12, \
title: "SIGN", \
author: "izna", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 13, \
title: "WICKED", \
author: "ALLDAY PROJECT", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 14, \
title: "Good Thing", \
author: "i-dle", \
alias: ["굿 ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 15, \
title: "0+0", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 16, \
title: "HANDS UP", \
author: "MEOVV", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 17, \
title: "Blue Valentine", \
author: "NMIXX", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 18, \
title: "Flower", \
author: "", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 19, \
title: "Soda Pop", \
author: "Saja Boys", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 20, \
title: "REBEL HEART", \
author: "IVE", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 21, \
title: "GO!", \
author: "CORTIS", \
alias: ["", "!", "GO", "", "!"] \
}
function mq:quiz/macro/setanswer { \
index: 22, \
title: "BEEP", \
author: "izna", \
alias: ["", "", ""] \
}
function mq:quiz/macro/setanswer { \
index: 23, \
title: "Pookie", \
author: "FIFTY FIFTY", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 24, \
title: "DAISIES", \
author: "Justin Bieber", \
alias: ["", "", ""] \
}
function mq:quiz/macro/setanswer { \
index: 25, \
title: " ", \
author: "ILLIT", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 26, \
title: "TOO BAD", \
author: "OfficialGDRAGON", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 27, \
title: " ", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 28, \
title: "STYLE", \
author: "Hearts2Hearts", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 29, \
title: "Good Goodbye", \
author: "", \
alias: ["굿 굿", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 30, \
title: " ", \
author: "10CM", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 31, \
title: "IRIS OUT", \
author: "Kenshi Yonezu", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 32, \
title: "Sugar On My Tongue", \
author: "Tyler, The Creator", \
alias: [" ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 33, \
title: "Hollywood Action", \
author: "BOYNEXTDOOR", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 34, \
title: "SPAGHETTI", \
author: "LE SSERAFIM", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 35, \
title: "Gabriela", \
author: "KATSEYE", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 36, \
title: "LIKE YOU BETTER", \
author: "", \
alias: [" ", " ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 37, \
title: "", \
author: "BLACKPINK", \
alias: ["jump"] \
}
function mq:quiz/macro/setanswer { \
index: 38, \
title: "CHANEL", \
author: "Tyla", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 39, \
title: " I LOVE YOU", \
author: "BOYNEXTDOOR", \
alias: [" ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 40, \
title: "earthquake", \
author: "", \
alias: ["", "", ""," "] \
}
function mq:quiz/macro/setanswer { \
index: 41, \
title: "!", \
author: "", \
alias: [""] \
}
function mq:quiz/macro/setanswer { \
index: 42, \
title: "Abracadabra", \
author: "Lady Gaga", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 43, \
title: "", \
author: "", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 44, \
title: "Dirty Work", \
author: "aespa", \
alias: [" ", " ", " ", " ", " "] \
}
function mq:quiz/macro/setanswer { \
index: 45, \
title: "HOT", \
author: "LE SSERAFIM", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 46, \
title: "FAMOUS", \
author: "ALLDAY PROJECT", \
alias: ["", ""] \
}
function mq:quiz/macro/setanswer { \
index: 47, \
title: "XOXZ", \
author: "IVE", \
alias: [" ", " ", ""] \
}
function mq:quiz/macro/setanswer { \
index: 48, \
title: "", \
author: "H1-KEY", \
alias: [] \
}
function mq:quiz/macro/setanswer { \
index: 49, \
title: "LOV3", \
author: "", \
alias: ["3", "3"] \
}
function mq:quiz/macro/setanswer { \
index: 50, \
title: "Drive", \
author: "Ed Sheeran", \
alias: ["", ""] \
}
scoreboard players set stop buttons -1
scoreboard players set skip buttons -1
scoreboard players set hint buttons -1
scoreboard players set replay buttons -1
scoreboard players set init main 5
function mq:quiz/macro/summon with storage mq:main command_block

View File

@@ -0,0 +1,8 @@
scoreboard players set init main 2
# say 퀴즈 시작!
scoreboard players set index main 0
bossbar set mq:process visible true
scoreboard players set timer main 1