mojira.dev
MC-95323

fences, carpets and mob ai

Players can jump over fences when there's carpet on top of them, but mobs can't. I know that mob ai's only see "block" or "no block". This makes them see paths that they can't go and not see paths they can go many times, but in this case it could be fixed without changing the whole pathfinding system. Fences are probably set as "block and another block on top", because mobs can't go over it normally. My idea is to make fences be seen (for the mobs) as "block and another block on top, if the block on top isn't carpet or something like that". That would be an easy fix for this mob behaviour, the mobs would see the fence as block, but the block above as empty, so they would jump and be on the correct height to go over the carpet.

Related issues

Comments

migrated

well, you can't colide with pressure plates, so that's not as usefull, I suggest you change your wording a bit, as this almost sounds like a suggestion

FaRo1

@FVbico Like this?

migrated

yes, that makes it a better report and sound less as a suggestion

kumasasa

Fail to see a bug here.
Fences are 1.5 blocks high so to make mobs jump over fences with carpet there needs to be an exception of the exception:

  • Mobs cannot jump on fences because too high

  • Is there a block on top of the fence mobs still cannot jump on top

  • Is that block a carpet, mobs can jump on top

FaRo1

Yes, that's exactly what I meant.

kumasasa

Yes, that's exactly what I meant.

Then it's a feature request and not a bug. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

FaRo1

No, it's a bug, because the mobs could theoretically jump over the fence, but they don't do it, because they don't see the path.

FaRo1

(Unassigned)

Unconfirmed

Minecraft 15w51b

Retrieved