Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Information icon.svg
This feature is exclusive to Bedrock Edition. 
This article is missing information about how it works. 
Please expand the article to include this information. Further details may exist on the talk page.
playanimation
Permission level
required

1

Restrictions

Cheat only

Makes one or more entities play a one-off animation.

Syntax[]

playanimation <entity: target> <animation: string> [next_state: string] [blend_out_time: float] [stop_expression: string] [controller: string]

Arguments[]

entity: target: CommandSelector<Actor>

Must be a player name or a target selector.
Specifies the targeted entities.

animation: string: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be an animation name (e.g. animation.wolf.angry), or an animation defined under the Json path "minecraft:client_entity"."animations" in the <a_resource_pack>/entity/<entity_name>.entity.json file (e.g. wolf_angry for only wolf entity).
Specifies an animation to play now.
⚠️Warning: Never add .v1.0 to the end of an animation name because it generates many molang errors while the animation is running, causing the game to lag and possibly crash.

next_state: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be an animation name, or an animation defined under the Json path "minecraft:client_entity"."animations" in the <a_resource_pack>/entity/<entity_name>.entity.json file.
Specifies the animation after the first animation stops playing.

blend_out_time: float: float

Must be a Single-precision floating-point format number.
Specifies the duration of the gradient animation.

stop_expression: string: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be a MoLang expression.[more information needed]
A list of useable strings are Here.
Specifies the conditions for stopping animation.

controller: string: basic_string

Must be a string. And it must be either a single word (no spaces) or a quoted string.
Should be an animation controller name (such as controller.animation.villager_v2.move), or an animation controller defined under the Json path "minecraft:client_entity"."animation_controllers" in the <a_resource_pack>/entity/<entity_name>.entity.json file[needs testing].
Specifies an animation controller.

Result[]

CommandTriggerBedrock Edition
anythe arguments are not specified correctly Failed
if entity: target fails to resolve to one or more online entities (named players must be online)
On successSends the animation request to clients for processing.

Output[]

CommandEditionSituationSuccess Count
anyBedrock EditionOn fail0
On success1

Example[]

Make the foxes sit down until they leave the ground. Once leaving the ground, the foxes become in sleep state:

/playanimation @e[type=fox] sit sleep 0 "!query.is_on_ground"

History[]

Bedrock Edition
1.16.100beta 1.16.100.52Added /playanimation.
1.17.0Added animations for axolotl and goats

List of animations[]

animation.agent.move

animation.agent.swing_arms

animation.armor.boots.offset

animation.armor_stand.athena_pose

animation.armor_stand.brandish_pose

animation.armor_stand.cancan_a_pose

animation.armor_stand.cancan_b_pose

animation.armor_stand.default_pose

animation.armor_stand.entertain_pose

animation.armor_stand.hero_pose

animation.armor_stand.honor_pose

animation.armor_stand.no_pose

animation.armor_stand.riposte_pose

animation.armor_stand.salute_pose

animation.armor_stand.solemn_pose

animation.armor_stand.wiggle

animation.armor_stand.zombie_pose

animation.arrow.move

animation.bat.flying

animation.bat.resting

animation.bee.flying

animation.bee.sting

animation.bee.no_stinger

animation.bee.fly.bobbing

animation.blaze.move

animation.cat.baby_transform

animation.cat.lie_down

animation.cat.sit

animation.cat.sneak

animation.cat.sprint

animation.cat.walk

animation.chicken.general.v1.0

animation.chicken.baby_transform

animation.chicken.general

animation.chicken.move

animation.cod.flop

animation.cod.swim

animation.cow.baby_transform

animation.cow.setup

animation.cow.setup.v1.0

animation.creeper.legs

animation.creeper.swelling

animation.dolphin.move

animation.idle_arm_1

animation.idle_back_1

animation.idle_bottom_1

animation.idle_torso_1

animation.react_arm_1

animation.react_arm_2

animation.react_back_1

animation.react_back_2

animation.react_bored_1

animation.react_bored_arm_1

animation.react_bored_back_1

animation.react_bored_bottom_1

animation.react_bored_head_1

animation.react_bored_torso_1

animation.react_bottom_1

animation.react_bottom_2

animation.react_bottom_3

animation.react_confirm_1

animation.react_confirm_2

animation.react_head_1

animation.react_head_2

animation.react_idle

animation.react_offer_1

animation.react_offer_2

animation.react_offer_arm_1

animation.react_offer_arm_2

animation.react_offer_back_1

animation.react_offer_back_2

animation.react_offer_bottom_1

animation.react_offer_bottom_2

animation.react_offer_head_1

animation.react_offer_head_2

animation.react_offer_torso_1

animation.react_offer_torso_2

animation.react_torso_1

animation.react_torso_2

animation.drowned.attack.rotations

animation.drowned.attack.rotations.v1.0

animation.drowned.swimming.v1.0

animation.elytra.default

animation.elytra.gliding

animation.elytra.sneaking

animation.elytra.sleeping

animation.elytra.swimming

animation.enderman.arms_legs

animation.enderman.base_pose

animation.enderman.carrying

animation.enderman.scary_face

animation.enderman.base_pose_v1.0

animation.enderman.scary_face_v1.0

animation.endermite.move

animation.evocation_fang.bite

animation.evoker.casting

animation.evoker.casting.v1.0

animation.evoker.general

animation.evoker.general.v1.0

animation.fireworks_rocket.move

animation.fox.baby_transform

animation.fox.crouch

animation.fox.pounce

animation.fox.setup

animation.fox.sit

animation.fox.sleep

animation.fox.stuck

animation.fox.wiggle

animation.ghast.move

animation.ghast.scale

animation.guardian.move_eye

animation.guardian.setup

animation.guardian.spikes

animation.guardian.swim

animation.guardian.move_eye.v1.0

animation.guardian.spikes.v1.0

animation.hoglin.baby_scaling

animation.hoglin.look_at_target

animation.hoglin.walk

animation.hoglin.attack

animation.humanoid.attack.rotations

animation.humanoid.base_pose

animation.humanoid.big_head

animation.humanoid.bob

animation.humanoid.bow_and_arrow

animation.humanoid.brandish_spear

animation.humanoid.celebrating

animation.humanoid.charging

animation.humanoid.damage_nearby_mobs

Advertisement