#How to make a creature play the same animation all the time?

1 messages · Page 1 of 1 (latest)

fallow rain
#

Hello, I have absolutely no knowledge of programming. The wiki talked about transitions between animations, but there is nothing about playing 1 animation always. I'm the only one who can't do anything.

How to do it?

slender stirrup
#

you mean idling?

static garden
# fallow rain Hello, I have absolutely no knowledge of programming. The wiki talked about tran...

You define an animation for your entity in its client_entity, then in scripts list your animation and it will be executed all the time. Use this example:

{
  "format_version": "1.10.0",
  "minecraft:client_entity": {
    "description": {
      "identifier": "your:identifier_here",
      "materials": {
        "default": "entity_alphatest"
      },
      "textures": {
        "default": "textures/... ?"
      },
      "geometry": {
        "default": "geometry... ?"
      },
      "animations": {
        "idle": "animation.your_animation_here"
      },
      "scripts": {
        "animate": [
          "idle"
        ]
      },
      "render_controllers": [
        "controller.render.default"
      ]
    }
  }
}