# This file was generated by Animated Java via MC-Build. It is not recommended to edit this file directly.
# Data Manager: Prepare for Read / Write
execute store result storage animated_java:temp args.id int 1 run scoreboard players get @s aj.id
# Data Manager: Read
function animated_java:global/data_manager/read with storage animated_java:temp args
function template:dbm_captain/animations/pause_all
tag @s add template.dbm_captain.animation.whirlpool.playing
$scoreboard players set @s aj.tween_duration $(duration)
$scoreboard players set @s aj.whirlpool.frame $(to_frame)
scoreboard players operation #this aj.i = @s aj.tween_duration
tag @s add aj.transforms_only
execute at @s run function template:dbm_captain/animations/whirlpool/zzz/apply_frame {frame: 0}
$execute at @s run function template:dbm_captain/animations/whirlpool/zzz/apply_frame {frame: $(to_frame)}
tag @s remove aj.transforms_only
execute on passengers store result entity @s interpolation_duration int 1 run scoreboard players get #this aj.i