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

query.noise will not accept coordinate values in a behavior animation controller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.43 Hotfix
    • None
    • Unconfirmed
    • Windows

      I can't make a behavior pack animation controller state accept either integer or queried XZ coordinates using query.noise.

      Queried: "v.x = query.position(0); v.z = query.position(2); query.noise(v.x,v.z) < 0;"
       
      Integers: "query.noise(-78,-156) < 0"
       
      Both return a version of the same error: 
       
      Queried:
      [Molang][error]-<file_path>/animation_controllers/player.animation_controllers.json | animation_controllers | controller.animation.perlin | states | default | transitions | noise_below_0 | v.x = query.position(0); v.z = query.position(2); query.noise(v.x,v.z) < 0; | unrecognized token: query.noise(v.x,v.z) < 0;

      Integers:
      [Molang][error]-<file_path>/animation_controllers/player.animation_controllers.json | animation_controllers | controller.animation.perlin | states | default | transitions | noise_below_0 | query.noise(-78,-156) < 0 | unrecognized token: query.noise(-78,-156) < 0

            jjkubik jjkubik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: