Mojira Archive
MCPE-186069

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

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.

Awaiting Response

thetheoristmc

2024-08-26, 05:20 AM

2025-01-08, 10:29 PM

2025-01-08, 10:28 PM

0

3

Unconfirmed

1.21.21 Hotfix

-