Mojira Archive
MC-228273

Goats do not move correctly after they are tempted during a long jump

The bug

A goat that is tempted by a player holding wheat while the goat is in the middle of a long jump does not move correctly after completing their jump. It essentially loses friction with the ground.

How to reproduce

  1. Recreate the setup shown in the following image (different types of leaves used only to show size, but leaves should still be used when building the setup [any type]): MC-228273-setup.png
  2. Use a goat spawn egg to summon a goat on the block between the four rails
  3. Hold wheat in your hand, and make sure the goat is tempted (looking at you)
  4. Wait a minute, or until minecraft:long_jump_cooling_down is no longer existent in the goat's memory:
    /data get entity @e[type=goat,limit=1,sort=nearest] Brain.memories
  5. Switch your selected item to something other than wheat, then switch back to the wheat after a second
  6. Wait until the goat jumps onto the second cobblestone block, and continue to hold the wheat
    The frictionless goat, moving as if it is on ice, attempts to follow the player

Expected behavior

After following the steps listed above, the goat should move normally, and should not move as if it is frictionless.

Video

See this Twitch clip for the bug in action.
See this YouTube video by FX - PR0CESS for more information about the problem and how to reproduce this issue.

Code analysis

Code analysis by FX - PR0CESS can be found in this comment.

Unresolved

Bob Green

2021-06-10, 02:56 AM

2023-11-20, 02:58 PM

8

6

Confirmed

(Unassigned)

1.17 - 1.19.1 Release Candidate 11.17, 1.17.1, 21w40a, 1.18 Pre-release 1, 1.18.1, 22w05a, 22w11a, 1.19.1 Release Candidate 1

-