execute unless score #frame aj.i = #frame aj.i run scoreboard players set #frame aj.i 0
execute unless score #variant aj.i = #variant aj.i run scoreboard players set #variant aj.i 0
execute unless score #animation aj.i = #animation aj.i run scoreboard players set #animation aj.i -1
scoreboard players set @s aj.anim_time 0
scoreboard players set @s aj.laura.rig_loaded 1
scoreboard players operation @s aj.laura.export_version = aj.laura.export_version aj.i
execute store result score @s aj.id run scoreboard players add .aj.last_id aj.id 1
tp @s ~ ~ ~ ~ ~
execute at @s on passengers run function animated_java:laura/zzzzzzzz/summon/as_rig_entities
execute if score #variant aj.i = $aj.laura.variant.default aj.id run function animated_java:laura/zzzzzzzz/apply_variant/default/as_root
execute if score #animation aj.i matches 0.. run scoreboard players operation @s aj.anim_time = #frame aj.i
execute if score #animation aj.i = $aj.laura.animation.running aj.id run function animated_java:laura/zzzzzzzz/animations/running/apply_frame_as_root
execute if score #animation aj.i = $aj.laura.animation.running aj.id run scoreboard players operation @s aj.laura.animation.running.local_anim_time = #frame aj.i
execute if score #animation aj.i = $aj.laura.animation.head_punching aj.id run function animated_java:laura/zzzzzzzz/animations/head_punching/apply_frame_as_root
execute if score #animation aj.i = $aj.laura.animation.head_punching aj.id run scoreboard players operation @s aj.laura.animation.head_punching.local_anim_time = #frame aj.i
execute if score #animation aj.i = $aj.laura.animation.meet1 aj.id run function animated_java:laura/zzzzzzzz/animations/meet1/apply_frame_as_root
execute if score #animation aj.i = $aj.laura.animation.meet1 aj.id run scoreboard players operation @s aj.laura.animation.meet1.local_anim_time = #frame aj.i
execute if score #animation aj.i = $aj.laura.animation.pointing aj.id run function animated_java:laura/zzzzzzzz/animations/pointing/apply_frame_as_root
execute if score #animation aj.i = $aj.laura.animation.pointing aj.id run scoreboard players operation @s aj.laura.animation.pointing.local_anim_time = #frame aj.i
execute if score #animation aj.i = $aj.laura.animation.crazy aj.id run function animated_java:laura/zzzzzzzz/animations/crazy/apply_frame_as_root
execute if score #animation aj.i = $aj.laura.animation.crazy aj.id run scoreboard players operation @s aj.laura.animation.crazy.local_anim_time = #frame aj.i
execute at @s run function #animated_java:laura/on_summon/as_root
tag @s remove aj.new
scoreboard players reset #frame aj.i
scoreboard players reset #variant aj.i
scoreboard players reset #animation aj.i