mojira.dev
MC-304535

Rabbits are not scared of certain monsters

Rabbits are supposed to avoid monsters, however, they are not scared of the following mobs:

  • Camel Husk

  • Ender Dragon

  • Ghast

  • Hoglin

  • Magma Cube

  • Phantom

  • Shulker

  • Skeleton Horse

  • Slime

  • Zombie Horse

  • Zombie Nautilus

This is because: The ender dragon, ghasts, hoglins, magma cubes, phantoms, shulkers and slimes only count as “enemies“ in the game code, instead of monsters. The same is true for camel husks, skeleton horses, zombie horses and zombie nautiluses, counting only as animals and not enemies as well. As rabbits are programmed to run away from “monsters“ they ignore all of the 11 above mentioned mobs.

Steps to reproduce the issue:

  • Summon a rabbit and one of the above mentioned mobs nearby, the rabbit will not run away.

Expected result:

  • The rabbit runs away when nearby these monsters.

Actual result:

  • The rabbit does not run away.

Code analysis by YouTuber JASON13 can be found here: https://youtu.be/BBFaNYwZ8-o?si=a72bozT8NQZ8SqRY&t=263

Comments 0

No comments.

Custom Name

(Unassigned)

Confirmed

(Unassigned)

1.21.10, 1.21.11 Pre-Release 2, 1.21.11 Pre-Release 3, 1.21.11 Pre-Release 4, 1.21.11 Pre-Release 5, ..., 1.21.11 Release Candidate 2, 1.21.11 Release Candidate 3, 26.1 Snapshot 1, 26.1 Snapshot 2, 26.1 Snapshot 3

Retrieved