mojira.dev
MC-54702

Mob AI ignoring damage dealing blocks when randomly walking around/not fleeing when hit by them

The bug

Mob AI ignoring damage dealing blocks when randomly walking around/not fleeing when hit by them.

Affected blocs

  • Cactus

  • Magma block

  • Lava

  • Fire

  • Wither rose

  • Berry bushes

  • Campfire

Example

Here is a great example:

[media]

Linked issues

MC-105931 Villagers don't care of actions Resolved MC-262025 Some mobs don't panic when taking damage from magma blocks Resolved MC-270036 Hello, when we fire at Nder Piglin, he doesn't run away Resolved MC-178826 Piglins don't step off magma blocks if spawned in with a spawn egg Resolved MC-256680 Camel on cactus Resolved

Attachments

Comments 39

Still happening in 1.8. One of my important pre-1.8 villager just died from a cactus.

Confirmed for 1.1, and also for magma blocks.

This still happens in 18w31a.

Confirmed for 1.13.1.

Can confirm for cows in 1.13 with lava.

29 more comments

I can't reproduce this in 1.21.3 and 24w45a either. Attached the image.

Closing this ticket as cannot reproduce.

Here’s a simple way to reproduce the issue in the latest snapshot. play on a flat world with minimum simulation distance for quickest results.

Steps to reproduce:

  1. Build a 5x5 containment chamber with a berry bush in the middle, as shown in the video

  2. spawn a villager inside

  3. run the command /tick spring 1d

@sandro38 Could you also check if this happens when the /tick command isn’t used? I would also be interested if you can reproduce the issue with the other described blocks as well, or if this only affects sweet berry bushes.

I have added an example of this issue happening without the /tick command. The same reproduction steps from my first comment also apply to wither roses, campfires, cacti, fires, lava. Does not apply to a magma block in the floor. If you want to reproduce the bug using magma blocks, you will have to place the magma block sticking out (just like berries, campfires, etc.) and cover the rest of the floor in slabs. I have added a video for that too.

Metelkin Ilya

(Unassigned)

Confirmed

Platform

Important

Mob behaviour

ai, behavior, blocks, damage, hit, ignore, mobs

Minecraft 14w18b, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 15w34a, Minecraft 15w34b, ..., 23w41a, 24w13a, 1.20.6, 24w21b, 1.21.8

Retrieved