10 lines
478 B
MCFunction
10 lines
478 B
MCFunction
data modify storage mq:tmp video set from storage mq:main video
|
|
|
|
scoreboard players operation cache_idx func.temp = index main
|
|
scoreboard players add cache_idx func.temp 1
|
|
execute store result storage mq:tmp video.cache_num int 1 run scoreboard players get cache_idx func.temp
|
|
|
|
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 "cache"
|
|
function mq:videos/macro/cmd with storage mq:tmp video
|