This commit is contained in:
tkrmagid-desktop
2026-06-05 18:11:14 +09:00
parent 5d866a1457
commit eeb9b56010
11 changed files with 64 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
# 추적 목록을 비우고 전체 캐시 wipe 를 큐에 적재 (command_block 으로 실행).
data modify storage mq:main video.cached set value []
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 "cache_clear"
function mq:videos/macro/cmd with storage mq:tmp video

View File

@@ -1,3 +1,4 @@
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 "delete"
function mq:videos/macro/cmd with storage mq:tmp video

View File

@@ -1,3 +1,4 @@
# warn-off-file execute-group
# 매 tick: 큐(mq:main video.cmdq)에 대기 중인 모드 명령을 한 개씩 command_block 으로
# 실행한다. command_block 은 auto:1b 면 매 tick 재실행되므로(=videoCache add 중복
# 실패 스팸) 명령을 실행한 다음 tick 에 auto:0b 로 꺼서 1회만 실행되게 한다.

View File

@@ -13,4 +13,4 @@ $execute if data storage mq:tmp {video:{cmd:"cache_add"}} if data storage mq:mai
$execute if data storage mq:tmp {video:{cmd:"cache_add"}} run data modify storage mq:main video.cmdq append value {c:"videoCache add video_$(num) $(namespace)/$(num)"}
$execute if data storage mq:tmp {video:{cmd:"cache_add"}} run data modify storage mq:main video.cached append value {i:$(num)}
$execute if data storage mq:tmp {video:{cmd:"cache_remove"}} run data modify storage mq:main video.cmdq append value {c:"videoCache remove video_$(num)"}
$execute if data storage mq:tmp {video:{cmd:"cache_clear"}} run data modify storage mq:main video.cmdq append value {c:"videoCache clear"}
execute if data storage mq:tmp {video:{cmd:"cache_clear"}} run data modify storage mq:main video.cmdq append value {c:"videoCache clear"}