Skip to content

@minecraft/server


@minecraft/server / PlayAnimationOptions

Interface: PlayAnimationOptions ​

Defined in: @minecraft/server/index.d.ts:24269

Contains additional options for how an animation is played.

Properties ​

blendOutTime? ​

optional blendOutTime?: number

Defined in: @minecraft/server/index.d.ts:24275

Remarks ​

Amount of time to fade out after an animation stops.


controller? ​

optional controller?: string

Defined in: @minecraft/server/index.d.ts:24282

Remarks ​

Specifies a controller to use that has been defined on the entity.


nextState? ​

optional nextState?: string

Defined in: @minecraft/server/index.d.ts:24288

Remarks ​

Specifies the state to transition to.


players? ​

optional players?: Player[]

Defined in: @minecraft/server/index.d.ts:24294

Remarks ​

A list of players the animation will be visible to.


stopExpression? ​

optional stopExpression?: string

Defined in: @minecraft/server/index.d.ts:24301

Remarks ​

Specifies a Molang expression for when this animation should complete.