mojira.dev
MC-93018

Wild wolves show breeding hearts but do not breed

Wild wolfs show hearts when feed raw meat.
It's misleading if they are not meant to be breed able.

Or make them breed able, i don't see why not.
Use: Make more wild wolfs for different people to tame.

Same with Ocelots. Fixed some point in 1.14

Code Analysis

Code Analysis provided by @unknown

The reasoning this is happening is because in the CanMate boolean method there are two checks for if the wolf is tamed or not. If the wolf isn't tamed it will return false. One possible fix is to remove the checks if it can be tamed or not. The method would then look like this.

Fixed Code

net/minecraft/world/entity/animal/Wolf.java

public boolean canMate(Animal p_30392_) {
      //Removing the checks for if its tamed is a possible fix for MC-93018
      if (p_30392_ == this) {
         return false;
      } else if (!(p_30392_ instanceof Wolf)) {
         return false;
      } else {
         Wolf wolf = (Wolf)p_30392_;
         if (wolf.isInSittingPose()) {
            return false;
         } else {
            return this.isInLove() && wolf.isInLove();
         }
      }
   }

Related issues

Attachments

Comments

migrated
[media][media][media]
migrated

This site is for bug reports only. For feature suggestions or changes please see: Minecraft Suggestions on Reddit.

migrated

But the hearts is a bug?

migrated

No.

migrated

So what are the hearts for? Sorry for sounding stupid but maybe i just don't know. 🙂

migrated

You're giving them meat, dogs love meat.

migrated

Pigs love wheat. They don't show hearts..
I think you would agree it's inconsistent and have no use on the wild wolfs. They don't even heal.

marcono1234

Pigs love carrots. And I think this is intended because meat increases the health
Confirmed for

  • 15w49b The wild wolves "enter love mode" however do not breed as they are not tamed

migrated

If polar bears were given wheat 16w20a they produced hearts and did not breed and that was kinda fixed (I still can't multiply the fluffy balls of cuteness). I don't see why the same can't be done here. Can confirm for 1.10.2.

migrated

Can confirm for 1.11

Asteraoth

Confirmed for 18w30b

Asteraoth

Confirmed for 18w31a

migrated

It's happening with my villagers large scale on snapshot 19w11b

violine1101

@unknown, see MC-145758

Orbic

Can confirm for 20w09a

Orbic

In 20w10a

Orbic

Confirmed for 20w11a

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a. Video attached.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 1.16.5 and 21w08b.

Avoma

Can confirm in 1.17.1.

migrated

I think ocelots should be updated so they cannot be fed when not sneaking and not trusted. (Same for wolves with meat when not tamed)

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2 and 22w11a.

Avoma

Can confirm in 1.19.2.

migrated

Can Confirm 1.19.3 Release Preview 3

Asteraoth

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

breeding, hearts, ocelot, particle, wolf

Minecraft 15w47b, Minecraft 15w49b, Minecraft 1.10.2, Minecraft 1.11, Minecraft 1.11.2, ..., 1.19.3, 23w18a, 1.20.1, 1.20.6, 1.21.3

Retrieved