execute store result score .gametime entity run time query gametime
scoreboard players operation .g entity = .gametime entity
scoreboard players operation .g entity %= .24000 number
$scoreboard players remove .g entity $(start)
$scoreboard players operation .g entity %= .$(frames) number
# scoreboard players remove .g entity 1
# $scoreboard players set @s entity $(frames)
execute store result storage entity start int 1 run scoreboard players get .g entity
function main:mechanics/animation/entity/give with storage entity