mojira.dev
MC-154092

Zombie Pigmen lose aggro even when they're in range and have a line of sight

This breaks gold farms

Here is a short clip that demonstrates it: https://youtu.be/S9EnYiZr9Os

As you can see in the video, the Pigmen lose their aggro after around 30 seconds even with there being alarm Pigmen looking at me.

Linked issues

Attachments

Comments 9

I can confirm this as of 1.14.2 pre2. Pigman should only loose aggression when leaving their line of sight (seems like render distance usually). Instead, the pigman loose aggression after 1 minute of being in the line of sight, within the same chunk., which isn't normal behavior.

I didn't see this post when before posting my own (taking it down now), but here is my explanation of the problem. 

In 1.13, pigmen kept aggroing newly spawned pigmen until you left the area (with for example a nether portal) and came back. This meant that pigmen were scary to the average player (as they should be), but not impossible to deal with.

However, in 1.14.3 pre-1 and possibly the other 1.14 versions, I think there was a bug where pigmen never deaggrored at all, even when leaving through a nether portal and coming back. This obviously would make them much harder to deal with, only making them deaggro when all affected pigmen despawn, which they won't do when leaving through a portal.

In 1.14.3 pre-2, you attempted to fix this back to 1.13. However, it seems that newly spawned pigmen won't aggro at all and if you hit a pigman, the rush of them will end too fast as no new ones are getting aggroed.

I believe this is a bug, and that the system should be reverted to the 1.13 system.

I think this could be resolved by propagating the anger values only if the alarming pigman is out of line of sight of the player. If they have line of sight the new anger value is 400+random.nextInt(400)

Edit: Attached to the issue I've added a mod's source code for FabricMC for minecraft version 1.14.3-pre2 that puts this into practice. (fabricmc.net/use) 

Not fixed in 1.14.3-pre3, now ONLY pigmen with line of sight will anger, leaving pigmen farms still broken and making pigmen significantly less dangerous than in 1.13

That's not included in this ticket. This ticket is only about angry pigmen losing aggro even if they can see the player that they're aggro on.

@violine1101 I don't think that's true. The comments certainly suggested that as a potential fix, but the bug description describes the situation where pigman lose their aggro even when a different 'alarm pigman' has line of sight. In this case, the alarm pigman denotes a strategically placed pigman which always has line of sight and is aggro'd. In 1.13, as long as an aggro'd pigman had line of sight, it would spread aggro to other pigman within a certain radius - even if those other pigman didn't have line of sight.

@Charles that was what I meant indeed.

Yeah, now Gold Farms are completely ruined. There was no need to touch Zombie Pigmens. They worked just fine and now also Zombie Pigmens are less challenging and I really like that part. Whenever you hit one of them, they all come after you

There is a new ticket that is about zombie pigmen not being able to aggro towards the player if they can't see it: MC-154506

pellimies

migrated

Community Consensus

Important

Mob behaviour

Minecraft 1.14.3 Pre-Release 2

Minecraft 1.14.3 Pre-Release 3

Retrieved