# cache_lo..cache_hi 범위의 영상을 캐시 큐에 등록한다 (max_index 상한). # 등록 후 keep 초과분은 FIFO 로 축출. 실제 videoCache add/remove 는 큐를 통해 # command_block 으로 실행되므로 모드 없이도 로드된다. execute if score cache_lo func.temp > cache_hi func.temp run return run function mq:videos/cache/evict execute if score cache_lo func.temp > max_index main run return run function mq:videos/cache/evict 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 cache_lo func.temp data modify storage mq:tmp video.cmd set value "cache_add" function mq:videos/macro/cmd with storage mq:tmp video scoreboard players add cache_lo func.temp 1 function mq:videos/cache/fill