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:
Create a team called "a"
/team add a
Close the friendly fire of this team
/team modify a friendlyFire false
Join this team
/team join a @s
Summon a puffer fish of "a" in the water
/summon minecraft:pufferfish ~ ~ ~ {Team:"a"}
Change your gamemode to adventure or survival
Approach the pufferfish
-> ❌ The puffer fish puffs up and poisons you, unlike most other hostile mobs in your team.
Linked issues
relates to 1
Attachments
Comments 15
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
Sadly Searge commented at MC-46956 that this "works as intended".
Relates to MC-172304
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 totrue
to prevent teammates from dealing damage to you.