The AnimationOptions interface in @minecraft/server.
Interface in @minecraft/server
import type { AnimationOptions } from '@minecraft/server';Properties
Section titled “Properties”animation
Section titled “animation”animation: SplineAnimation;Types
totalTimeSeconds
Section titled “totalTimeSeconds”totalTimeSeconds: number;