mojira.dev
MC-67432

Squids with NoAI set to 1 still take suffocation damage

When you summon a squid with the NoAI NBT tag set to 1, the squid will suffocate if it is not on water

What I expected to happen was...:
The AI-less squid would not suffocate.

What actually happened was...:
The AI-less squid suffocated.

Steps to Reproduce:
1. Summon a Squid using /summon Squid ~ ~ ~ {NoAI:1}.

2. See it suffocate.

Attachments

Comments 5

Mobs can still take damage even when NoAI is enabled, so wouldn't this be intended?

We will just have to wait and see. In my opinion, if a squid didn't have AI, the game wouldn't do anything with the squid except for the squid's animations.

i spawn some squids in using spawn eggs, but they would not sufficate...

Well, if you do /summon Cow ~ ~ ~ {NoAI:1}, you can still damage the cow. It doesn't react or get knocked back, but it is still hurt and can get killed. So it seems like this would be intended.

Any part of an entities behavior that is not implemented as part of the AI is not affected by the NoAI tag. In this case the Invulnerable tag can solve the problem.

Matthew Campbell

michael

Unconfirmed

Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w33c

Retrieved