수정
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
|
||||
Reference in New Issue
Block a user