mojira.dev
MC-1320

Dogs wont stop snarling after punched by someone else

Dogs wont stop snarling after someone else than the owner punches it, even if you log off or the puncher logs off and-or goes somewhere else

Related issues

Comments

migrated

I can confirm this. Even after they were not aggressive towards me anymore, they kept growling.

migrated

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Can also ocnfirm this, my minecraft is fully up to date and it's hard to keep wolves. They also seem to still attack when in this aggressive state, even if they are sitting.

migrated

Maybe, I found solution for this problem that have plagued us for years.

In SSP, tamed wolves probably do not growl whatever happens.
But, on SMP, when the owner of wolves hurt other players or are attacked from them,
tamed wolves will growl even if they had sat still.
In addition, when the wolves are angly, they can despawn.
For that reason, they was gone suddenly...

step to magic the wolves away:

  1. tame a wolf

  2. sit him

  3. attack another player (at this time, he growls sitting there)

  4. all players, go to a place which is 200m away from him

  5. go back

  6. he disappeared...

I think, the condition that wolf get angry has a mistake.

Perhaps, This code will work well.

EntityWolf.java (MCP v7.44: MC 1.5.1)

public void setAttackTarget(EntityLiving par1EntityLiving)
{
    super.setAttackTarget(par1EntityLiving);

    // if (par1EntityLiving instanceof EntityPlayer)
    if (par1EntityLiving instanceof EntityPlayer && !this.isTamed())
    {
        this.setAngry(true);
    }
}
migrated

Confirmed in 1.5.1 . If a tamed wolf is "angry with"/"attacking" another player, the tamed wolf will remain angry indefinitely. That is even if players log off and back in, or die from the attacking dog. If angry dog is sitting and all players leave the area (area the size of mob spawning radius), the dog/dogs will de-spawn. I'm guessing since they are angry/attacking, they are considered a hostile mob and are de-spawning as such. It is very difficult to keep tamed wolves for this reason.

migrated

Confirmed in 13w18c.
My dog won't stop growling! 😞

migrated

This still seems to be a bug in 1.5.2

migrated

Still having this in 1.5.2 SMP.

migrated

Not fixed at all. Playing 1.6.1, dogs have been tamed forever, I never hit them and there's no other players to do so. They don't despawn, they're just sitting there growling constantly.

migrated

migrated

Community Consensus

Minecraft 1.4.2, Minecraft 1.4.5, Minecraft 1.4.7, Minecraft 1.5, Minecraft 1.5.1

Snapshot 13w18a

Retrieved