The Bug:
Rabbits can occasionally get stuck on the edges of blocks.
Steps to Reproduce:
Build the setup as shown in the attachment below.
Summon multiple rabbits on any of the diamond blocks.
Switch into survival mode and approach the rabbits so that they will run away from you.
Pay close attention to the behavior of the rabbits as they try to jump over blocks.
Take note as to whether or not rabbits can occasionally get stuck on the edges of blocks.
Observed Behavior:
Rabbits can occasionally get stuck on the edges of blocks.
Expected Behavior:
Rabbits would not occasionally get stuck on the edges of blocks.
Related issues
is duplicated by
Attachments
Comments


Can confirm, though for me it also affects doors, trapdoors in the open (vertical) position, and rabbits under closed trapdoors placed on the top half of a block.

can confirm. for me they are getting stuck either to the top of the fence post, or the side of the glass. i'm not sure. either way, they're getting crushed/suffocated, and cannot escape. same effect happens horizontally, on the side of the fence post, instead of above it.

For me they would just stop moving, but not suffocated.

Can confirm for 1.14.4 and under half slabs

Can confirm stairs for 1.15.2
Is this still an issue in 1.16-pre5 or later? MC-172531 got fixed.
Hi there!
This is still present in 1.16.1.
Hi there!
Can confirm in 20w27a. I'll attach a video as proof.
[media]Can confirm in 20w51a.

1.16.5
Can confirm in 21w07a.
Can confirm in 21w11a.

Can confirm in 1.17-Release-Candidate1.

can confirm in 1.17-rc2.

Still an issue. Please fix.

Can confirm in 21w38a.

Can confirm in 21w40a.

can confirm in 1.17.1

1.17.1 is already marked as affected.

Can confirm in 21w42a.

Can confirm in 1.18 Pre-release 1.
I'd like to request ownership of this ticket since the current reporter has been inactive since September of 2019.

Hi, there!
I'd like to add to this that the rabbit gets stuck (1.18.1) on blocks or even up stairs, when you get it to follow you using carrots or even using a lead. It's quite annoying when you have a house up the mountains and is trying to bring rabbits there.

Can confirm on 1.18.1 and 1.18.2, rabbit's gyrate when they go on stairs

I can confirm rabbits still get stuck on the edges of blocks, stairs seem to be the most common. Version Java 1.19.1

1.19.1 is not out yet. Do you mean a pre-release?

On 1.19.2 this bug is still a problem.

confirmed for 23w07a

I can confirm for 1.20 pre-release 7 that rabbits get stuck on blocks, Actually I found out that they cannot even jump up any blocks. I made a 1 block deep pit and the rabbit got stuck in it for the remainder of the play session.

still happens in 1.20.1

In 1.20.2 Pre-Release 2

1.20.1 and rabbits still get stuck in open trapdoors and some seem too stupid to jump one block up. Wonder when this will be fixed, because it ruins things

23w41a rabbits still can't jump up full blocks unless panicking.

Affects 1.20.4.
Rabbits get stuck on full blocks if they are right next to the block, but they can jump up onto a block if they are at least half a block away from it.

Can confirm in 24w13a.

Can confirm in 24w14a. I really hate this bug. Mojang, fix it quickly.

This bug seem to also affect bedrock edition... Some of my rabit are stuck on iron bar.

Possible Cause:
This may be caused by the unique behavior when rabbits move. They jump low instead of walk. They don't always jump high when they need to jump onto blocks.
Possible Solution:
Rabbits should jump low where other mobs will walk, and they should jump high when other mobs will jump.

Can confirm in 1.20.5.

Seems to affect 24w37a

There are multiple problems inside rabbit pathfinding and related code causing this issue:
1. The calculation of the jump height/velocity is incorrect and poorly implemented. This results in too small jumps for climbing over a block (hops aren't high enough).
2. Rabbits sometimes "stall" (no horizontal movement) during jumps - due to this they just jump upwards in the same place when trying to climb a block.
3. Rabbits are stuck / try to wander around forever:
The root cause is that
PathNavigation#doStuckDetection
sets its timeouts based on movement speed. If the movement speed is 0 (this is the case when a rabbit/mob is "stuck"), the timeout is also 0... and if the timeout is 0 it's ignored and therefore it's executed forever (or until interrupted by something external like another goal).Rabbits only have a single goal when idle:
WaterAvoidingRandomStrollGoal/RandomStrollGoal
. Most other entities also useRandomLookAroundGoal
. Thus the above mentioned infinite navigation is likely never stopped in favor of executing another goal like in most other mobs.RabbitMoveControl#tick
constantly updates the rabbits speed (Rabbit#setSpeedModifier
). While doing this it also indirectly executesmoveControl#setWantedPosition
thus the rabbit always tries to reach it's last target even when it shouldn't do that.
Further helpful links:
See also: MC-277500

Affects 1.21.2-pre3.
Although this ticket is as old as 1.14, this issue got significantly worse in 1.20, specifically in 1.20-pre1, where rabbits seem to have completely lost their ability to do medium jumps during normal pathfinding. I think this is a genuinely new issue. However, new tickets describing the new issue continue to be resolved as duplicates of this ticket.
While this ticket describes rare or temporary issues where rabbits could get stuck in novel block arrangements, rabbits currently are incapable of jumping up a block unless panicking, so wild rabbits are found hopping uselessly into the side of a block nearly 100% of the time now within seconds.
I think that since this issue was triaged before 1.20-pre1 where the issue became significantly worse, either it should be re-triaged or a new ticket should be created.