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

'query.is_grazing' doesn't work

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed
    • Platform:
      Multiple

      Description

      When attempting to make an entity eat a block (like how sheep eat grass), when the entity is eating a block, query.is_grazing should trigger allowing us to play a eating animation. This used to work in the past but now doesn't, even using ' "runtime_identifer": "minecraft:sheep" ' in the behavior file (though it shouldn't need it).

       

      Steps To Reproduce:

      1. Create an entity that eats blocks using the "minecraft:behavior.eat_block" component
      2. Create an animation that only fires when the entity is grazing (use query.is_grazing)
      3. Though the entity will eat the block, it will never play the animation

      Expected Behavior:

      • query.is_grazing works for all mobs, not just the sheep

      Actual Behavior:

      • query.is_grazing doesn't work for any mob that isn't a sheep

        Attachments

          Activity

            People

            Reporter:
            Gruntastic Gruntastic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: