mojira.dev
MC-141401

Pufferfish will attack their teammates

The Bug

Like wither(it has been fixed in 1.15 snapshot), puffer fish will attack any mob except the same kind mob(undead or aquatic life), even if their target is their teammate. Other mobs won't do that.

Steps to Reproduce:

  1. Create a team called "a"

    /team add a
  2. Close the friendly fire of this team

    /team modify a friendlyFire false
  3. Join this team

    /team join a @s
  4. Summon a puffer fish of "a" in the water

    /summon minecraft:pufferfish ~ ~ ~ {Team:"a"}
  5. Change your gamemode to adventure or survival

  6. Approach the pufferfish
    -> ❌ The puffer fish puffs up and poisons you, unlike most other hostile mobs in your team.

Linked issues

Attachments

Comments 15

They aren't attacking you; they are naturally defending themselves from any mob that goes near them. Oh, and you're supposed to have friendlyFire set to true to prevent teammates from dealing damage to you.

no other mobs intentionally hurt their teammates; get in a team with a skeleton, and it won't fire at you, regardless of friendlyFire.

No, by "preventing them from dealing damage to you", I meant that friendlyFire should prevent teammates from dealing damage to each other, period. Pufferfish don't "attack". They bloat up whenever any mob goes near them, and if any mob decides to touch a pufferfish, it's their fault, not the pufferfish's.

Actually, puffer fishes are not so sensitive, and they won't hurt human when puff up easily in real life. Guardians are also prickly, but they only hurt when they are attacked(ignore their laser), not be closed

And vipers are also sensitive and if you close to a viper without seeing it, you will be bitten and poisoned, you can't say it's bitten's fault

5 more comments

Sadly Searge commented at MC-46956 that this "works as intended".

Relates to MC-172304

Video attached.

Can confirm in 1.19.1.

[media]

Can confirm in 1.20.4

BLack_Tea_RGO

(Unassigned)

Confirmed

Gameplay

Low

Commands, Mob behaviour

Minecraft 1.13.2, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, ..., 23w51b, 24w05b, 1.21, 1.21.4, 25w02a

Retrieved