mojira.dev
MC-264915

Some mobs can still attack you through blocks

Despite the fix of MC-2310, some mobs can still hit you through walls and corners, when they're aggravated. The list of mobs is as follows:

  • Bee

  • Iron golem

  • Panda (aggressive)

  • Polar bear

  • Spider

  • Cave spider

  • Ravager (might be intended?)

These mobs can still attack you diagonally through blocks or even if there's thin blocks in between, like trapdoors. The rest of mobs like zombies, hoglins and wardens (melee) are unable to attack through blocks as expected.

How to reproduce

  1. Spawn one of the mobs on the list, either inside a box with no outer corners or beside a wall of trapdoors.

  2. Apply slowness if necessary.

  3. Aggravate the mob by letting it see you, then quickly hide on the other side of the wall(s) very close to its hitbox.

  4. Notice you get hit by the mob.

Expected result
These mobs would be unable to hit you through walls/corners, as they're unable to see the player, like how the rest of mobs do.

Observed result
These mobs can still hit you through walls and corners, even if the conditions haven't been met.

Linked issues

MC-265029 Projectiles can enter the portal through the corners of the block Resolved MC-252697 Frog can use its tongue to hurt the entity behind it when it's on a boat, boat with chest, bamboo raft or bamboo raft with chest Open MC-265134 Pufferfish can sting entities through blocks Resolved MC-1297 You can attack and be attacked through glass panes Resolved MC-2310 Wrong attack radius calculation damages/kills entities through blocks and corners Resolved

Attachments

Comments 5

Judging by the duplicates of MC-2310, the list may be incomplete, as i haven't tested dolphins and pufferfish.

Can confirm. Endermen can still hit you through corners.

@unknown, are you sure? i intentionally didn't put endermen on the list because from my testing they weren't affected, you have to make sure the mob doesn't have any way to see you through the wall, in the case of endermen the wall/corner needs to be 3-block tall.

Ravagers are intended per the changelog:

Also, Ravagers won't be able to attack you through a few block thick walls anymore

(Emphasis added by me.) The image attached shows a less-than-single-block thick wall, not a few blocks.

Partial duplicate of MC-264900.

Nevermind, I had MC-264908 so the version was actually 23w32 the whole time...

syarumi

gnembon

Confirmed

Gameplay

Normal

Mob behaviour

23w33a

23w35a

Retrieved