mojira.dev
MC-150224

Rabbits can occasionally get stuck on the edges of blocks

The Bug:

Rabbits can occasionally get stuck on the edges of blocks.

Steps to Reproduce:

  1. Build the setup as shown in the attachment below.

[media]
  1. Summon multiple rabbits on any of the diamond blocks.

  2. Switch into survival mode and approach the rabbits so that they will run away from you.

  3. Pay close attention to the behavior of the rabbits as they try to jump over blocks.

  4. 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

MC-146616 Baby rabbits can't always jump up blocks MC-148289 Rabbits stuck on fences MC-149969 Rabbits were trapped by fences MC-150061 Rabbit stuck in slab & stair MC-150528 Rabbits get stuck in fence/jump over fence MC-157927 A bug with the rabbits MC-164953 rabbit jumping not working properly MC-166462 Rabbits have trouble path-finding when on a half most most part of a stair, on the side of a block, under an upper slab. MC-168332 Baby rabbits sometimes get stuck when right next to corner fences MC-169178 Rabbits get stuck in slabs MC-189603 Rabbits stuck on blocks' side MC-190394 Rabbit jump bug MC-192317 Rabbits cannot find a way while being pushed into an iron fence MC-199753 rabbit can't/don't want to jump on a block MC-203226 Rabbit stuck in north west corner of fence under water and drown MC-210733 rabbits get stuck hopping in one place when on lower stair MC-214785 Bunnies cant really jump on blocks anymore/ glitched animation MC-225616 rabbits get stuck under azalea bushes MC-227673 Rabbits get stuck in walls MC-229644 Rabbits stuck on glass panes MC-230389 Rabbits get stuck jumping up a block MC-232705 Bunnies get stuck under Azaleas MC-232958 Rabbits getting stuck on stairs and iron bars. MC-233014 Rabbits get stuck under azalea saplings MC-237492 Rabbits cannot jump over one block MC-238263 Rabbit AI breaks on iron bars MC-252735 rabbits get stuck in trap door MC-259225 Rabbits Hitboxes getting stuck MC-262046 The rabbit can't jump on a block, but only in place MC-262092 rabbits don't jump well MC-262293 Rabbit often bugs when he wants to jump on the block. MC-263070 Rabbits can't jump up blocks MC-263076 rabbit does not jump blocks. MC-264195 Rabbits keep getting stuck and have too little health MC-268062 Rabbit Pathfinding Broken MC-270958 Rabbit AI Glitch: Rabbits get stuck by one-block-high obstacles MC-273934 Rabbit pathfinding bug MC-274052 Desert rabbits are getting stuck!

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
Sonicwave

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.

migrated

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.

migrated

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

migrated

Can confirm for 1.14.4 and under half slabs

anthony cicinelli

Can confirm stairs for 1.15.2

violine1101

Is this still an issue in 1.16-pre5 or later? MC-172531 got fixed.

[Mod] markderickson

Hi there!

This is still present in 1.16.1.

[Mod] markderickson

Hi there!

Can confirm in 20w27a. I'll attach a video as proof.

[media]
Avoma

Can confirm in 20w51a.

Niknokinater

1.16.5

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

migrated

Can confirm in 1.17-Release-Candidate1.

migrated

can confirm in 1.17-rc2.

migrated

Still an issue. Please fix.

ampolive

Can confirm in 21w38a.

ampolive

Can confirm in 21w40a.

Kokonut

can confirm in 1.17.1

ampolive

1.17.1 is already marked as affected.

ampolive

Can confirm in 21w42a.

ampolive

Can confirm in 1.18 Pre-release 1.

Avoma

I'd like to request ownership of this ticket since the current reporter has been inactive since September of 2019.

migrated

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.

migrated

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

migrated

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

ampolive

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

migrated

On 1.19.2 this bug is still a problem.

migrated

confirmed for 23w07a

migrated

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.

migrated

still happens in 1.20.1

migrated

In 1.20.2 Pre-Release 2

migrated

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

migrated

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

 

bdm68

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.

batbrain1998

Can confirm in 24w13a.

akozm

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

migrated

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

migrated

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.

batbrain1998

Can confirm in 1.20.5.

muzikbike

Seems to affect 24w37a

litetex

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 use RandomLookAroundGoal. 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 executes moveControl#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

CreeperMagnet_

Affects 1.21.2-pre3.

tryashtar

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.

Avoma

Ali Yassiry

Confirmed

Gameplay

Important

Mob behaviour

Minecraft 19w12b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, ..., 1.21, 1.21.1, 24w37a, 1.21.2 Pre-Release 3, 1.21.3

24w46a

Retrieved