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