mojira.dev
MC-172516

Piglin/hoglin become Persistant when within 16 blocks of a player, causing massive lag due to piling up entites

The bug

If a piglin or hoglin is within 16 blocks of a player, they get the PersistenceRequired:1b tag, making them unable to despawn and no longer count towards the mobcap, which results in thousands of mobs beeing alive in the nether and never despawning again.

Linked issues

Comments 3

Can confirm. Might be intended (bar the performance hits of course) in order to keep hoglins and piglins around.

A potential fix might be to count for how long the piglin/hoglin has not been near a player, and if that value is above a certain threshold, remove the PersistenceRequired tag again.

IMHO:

PersistenceRequired should be triggered only when Hoglins were fed, leashed( ? ) or bred (baby).

For Piglins only when they picked up at least one item (except gold nugget, but gold ingot should count).

i dont see how this would have any effect on bartering with them... they become persistant if a player is within 16 blocks of them, mobs can only despawn if further than 32 from a player. and afterall theres no way that mojang intends players to accumulate 1000s of mobs in the nether over time

Jack

migrated

Confirmed

Mob behaviour, Performance

20w07a

20w09a

Retrieved