Commands/playanimation

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

Arguments

 * Specifies the targeted entities.
 * Specifies the targeted entities.


 * And it must be either a single word (no spaces) or a quoted string.
 * Should be an animation name (e.g. ), or an animation defined under the Json path   in the /entity/.entity.json file (e.g.   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.


 * 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  in the /entity/.entity.json file.
 * Specifies the animation after the first animation stops playing.


 * Specifies the duration of the gradient animation.
 * Specifies the duration of the gradient animation.


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


 * And it must be either a single word (no spaces) or a quoted string.
 * Should be an animation controller name (such as ), or an animation controller defined under the Json path   in the /entity/.entity.json file.
 * Specifies an animation controller.

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

History
= 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

命令/playanimation