수정
This commit is contained in:
18
music_quiz/data/mq/function/videos/macro/cmd.mcfunction
Normal file
18
music_quiz/data/mq/function/videos/macro/cmd.mcfunction
Normal file
@@ -0,0 +1,18 @@
|
||||
$execute if data storage mq:tmp {video:{cmd:"delete"}} run setblock $(cmd_x) $(cmd_y) $(cmd_z) minecraft:command_block[conditional=false,facing=up]{ \
|
||||
Command:"videoDelete $(x) $(y) $(z)", \
|
||||
auto:0b \
|
||||
}
|
||||
$execute if data storage mq:tmp {video:{cmd:"num"}} run setblock $(cmd_x) $(cmd_y) $(cmd_z) minecraft:command_block[conditional=false,facing=up]{ \
|
||||
Command:"videoPlace $(x) $(y) $(z) $(facing) $(w) $(h) $(sound) video_$(num)", \
|
||||
auto:0b \
|
||||
}
|
||||
$execute if data storage mq:tmp {video:{cmd:"cache"}} run setblock $(cmd_x) $(cmd_y) $(cmd_z) minecraft:command_block[conditional=false,facing=up]{ \
|
||||
Command:"videoCache add video_$(num) $(namespace)/$(cache_num)", \
|
||||
auto:0b \
|
||||
}
|
||||
$execute if data storage mq:tmp {video:{cmd:"cmd"}} run setblock $(cmd_x) $(cmd_y) $(cmd_z) minecraft:command_block[conditional=false,facing=up]{ \
|
||||
Command:"$(cmd_value)", \
|
||||
auto:0b \
|
||||
}
|
||||
|
||||
$data modify block $(cmd_x) $(cmd_y) $(cmd_z) auto set value 1b
|
||||
@@ -0,0 +1,6 @@
|
||||
function mq:videos/clear
|
||||
data modify storage mq:tmp video set from storage mq:main video
|
||||
execute store result storage mq:tmp video.num int 1 run scoreboard players get index main
|
||||
data modify storage mq:tmp video.cmd set value "custom"
|
||||
$data modify storage mq:tmp video.cmd_value set value "$(cmd)"
|
||||
function mq:videos/macro/cmd with storage mq:tmp video
|
||||
Reference in New Issue
Block a user