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

Entity "minecraft:behavior.eat_block" component "eat_and_replace_block_pairs" property does not work.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.21.21 Hotfix
    • None
    • Unconfirmed
    • Multiple

      I want to use this for my mammoth entity, i got help from the Minecraft Bedrock Community but neither did them know why is this happening. I already added minecraft:sheep runtime identifier and the whole "minecraft:behavior.eat_block" but it's property "eat_and_replace_block_pairs" does not work.

      To test this out:

      ```
      "minecraft:behavior.eat_block": {
       "priority": 3,
       "eat_and_replace_block_pairs": [
         

      {       "eat_block": "grass",       "replace_block": "air"      }

         ],
         success_chance": "q.health < 10 ? 0.50 : 0.20"
      }
      ```

      I tried testing this out on multiple occasions but none seem to work.

            thetheoristmc thetheoristmc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: