이전퀴즈 데이터팩
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
8
music_quiz/data/mq/function/quiz/macro/summon.mcfunction
Normal file
8
music_quiz/data/mq/function/quiz/macro/summon.mcfunction
Normal 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:"정답입력종료"}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user