This commit is contained in:
tkrmagid-desktop
2026-06-04 22:06:49 +09:00
parent f211b16224
commit 5e80385ab0
66 changed files with 295 additions and 124 deletions

View 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

View File

@@ -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