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