mojira.dev
MC-132239

Pufferfish inflate in response to armor stands

The bug

When a pufferfish is near an armor stand, the fish will inflate even though the armor stand is an inanimate object.

Code analysis

(based on Yarn 20w15a mappings)

The AI goal that causes pufferfish to inflate takes nearby entities that are instances of LivingEntity and calls a predicate function that filters out Creative/Spectator mode players and water mobs. However, armor stands also extend LivingEntity and therefore get included.

It seems fairly simple to filter out instances of armor stands as well, or test the isMobOrPlayer() function (where armor stands return false, but all other LivingEntities return true).

Related issues

Attachments

Comments

migrated
[media][media]
muzikbike

Relates to MC-129884

NeunEinser

It is just scared because the armor stand looks so human 😃

migrated

Don't think this is a bug; the fish detects an object which is similar to the "human" and sets the "Defensive Mode".

migrated

do anybody have anything that confirmes that the pufferfish act like this towards armorstands are right, and not a bug? not pointing fingers, just asking

MrRedeminator

Confirmed

The pufferfish is the most scared mob in the game

muzikbike

(Unassigned)

Confirmed

Mob behaviour

armor_stand, pufferfish

Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, ..., 1.16 Pre-release 6, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1

Retrieved