mojira.dev
MC-207993

Rabbits don't follow players holding carrots on sticks

The bug

Rabbits don't follow players holding carrots on sticks. This is inconsistent with the behavior of pigs, who do follow players holding carrots on sticks.

How to reproduce

  1. Spawn a rabbit

  2. Hold a carrot on a stick

  3. Walk away from the rabbit
    ❌ The rabbit does not follow you

Expected behavior

The rabbit would follow you as you're holding the carrot on a stick.

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 20

Can confirm.
This is inconsistent with other mobs which follow both the item and the item on a stick. (Pig and Strider)

Can confirm in 20w49a.

Can confirm in 1.16.5 and 21w07a.

Can confirm in 21w13a.

Can confirm in 21w16a.

10 more comments

Confirmed with 1.19.3 Pre-release 2

Confirmed with 1.19.3 Release Candidate 1

Confirmed with 1.19.3 Release Candidate 3

Confirmed with 1.19.4 Pre-release 4
Our current reporter has been inactive for over a year.
Therefore, would you please give me ownership of this ticket?
We will update this report in the future.

Pizza Sweet

Tanuki_Bakero

(Unassigned)

Confirmed

Mob behaviour

carrot_on_a_stick, rabbit

1.16.4, 20w49a, 20w51a, 1.16.5, 21w07a, ..., 1.20.2, 23w40a, 23w41a, 1.20.4, 24w35a

Retrieved