Setting Animation States

Set animations that should play depending on an entity's state (Idle, Jumping, Walking, etc.)

circle-info

image


Applying Animation States

  • Animation states determine what animation should be played based upon a given condition

    Ex: The walk animation should play when the entity is walking

  • Most animation states follow the same format

    image

    • animations → A list of animations picked at random

    • storage → Where the animation is stored

    • animationType → How the animation should be played (LINEAR or LOOP)

    • lockTransition → Prevent switching to a different animation state until the current state's animation finishes

      If animationType is LOOP the model can never switch to a different state without outside intervention (API/Skript/MythicMobs)

    • In reference to the image above, when the entity dies an animation will be picked randomly from LOCAL storage. It will play the animation LINEAR and prevent transitioning to a different animation state until its current animation is finished.

  • States that aren't needed can be removed

  • Walking State Animation with a the Robot (Invisible Zombie) chasing a Villager

    2025-08-07_03 27 32


Final Display Controller File

Last updated