Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-116440

Empty animation_controller states take too long to exit.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.16.201 Hotfix
    • None
    • Unconfirmed
    • Windows

      For example, use the following animation_controller.
      The interval before "/say on_exit" is too long.
      There is no "animations" in "test_state" and the transition is "1" already, but the state still exits too late.

      If "on_entry" is "/setblock ~ ~ ~ grass" and "on_exit" is "/setblock ~ ~ ~ air", which means grass will disappear immediately, but the player is moving, the position where the second command be executed could be wrong.
      Don't tell me

       "on_entry": ["/setblock ~ ~ ~ grass", "/setblock ~ ~ ~ air"] 

      because it doesn't work in my case! That's another bug I'm about to report. MCPE-116447

      {
          "format_version": "1.10.0",
          "animation_controllers": {
              "controller.animation.player.__example__": {
                  "initial_state": "default",
                  "states": {
                      "default": {
                          "transitions": [
                              {
                                  "test_state": "query.is_sneaking"
                              }
                          ]
                      },
                      "test_state": {
                          "on_entry": [
                              "/say on_entry"
                          ],
                          "on_exit": [
                              "/say on_exit"
                          ],
                          "transitions": [
                              {
                                  "default": "1"
                              }
                          ]
                      }
                  }
              }
          }
      }
      

            Worldwidebrine Worldwidebrine
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: