The Bug:
Entities continuously jump when standing on blocks that are 0.93750 blocks tall and attempting to pathfind over blocks that have other blocks above them.
Steps to Reproduce:
Summon the appropriate setup by using the commands provided below.
/fill ~1 ~ ~1 ~7 ~3 ~7 minecraft:polished_andesite
/fill ~1 ~2 ~1 ~7 ~2 ~7 minecraft:air
/fill ~2 ~ ~2 ~6 ~3 ~6 minecraft:air
/fill ~2 ~ ~2 ~6 ~ ~6 minecraft:dirt_path
Summon a pig on the dirt path blocks and attack it so that it panics.
Watch the pig closely as it approaches the edges of the blocks.
Take note as to whether or not entities continuously jump when standing on blocks that are 0.93750 blocks tall and attempting to pathfind over blocks that have other blocks above them.
Observed Behavior:
Entities continuously jump.
Expected Behavior:
Entities would pathfind over the blocks with ease.
Related issues
Attachments
Comments

Can you attach a video showing this bug?

Unfortunately, I don't have programs to make a video. Fortunately, you can find a village with this meeting point, set the time to 9000 and reproduce this.

I have recorded a short video demonstrating this problem π
https://youtu.be/T_jP0tZ1UT4

Greymagic27, the summary needs to be that they cannot jump over 1,0625 blocks, because they also can't jump from farmland on a block or from a block on a block with carpet on it.
I changed the title because jumping that high isn't 1000+ blocks.

Β It is, because the grasspath is only 0,9375 blocks tall.
The grass path is only 1 block above that, not 9000 π

, is the decimal separator in this case

So I have done some further testing, the villagers are more than capable of jumping 1,0625.
This problem is not from them not being able to jump said height but because they are unable to jump through a 2 block gap if they have to jump more than 1 block up to get throug the gap. In that case they hit their head on the top which prevents them from getting through the gap. Seem like they jump too high when they have to jump the 1,0625.
See the attached images for reference
First image shows villager jumping in vain because it is jumping from a path block, the second image shows it succeed in jumping through the gap since it jumped from a full block (cobble) and the third image shows the villager jumping from a path but without an obstruction above the 2 block gap.
[media]
[media]

Can confirm in 1.17.1.

Can confirm in 21w39a.
This issue can be seen with all entities and isn't just exclusive to villagers. I've updated this ticket accordingly with the details from MC-259308.