mojira.dev
MC-3036

Respiration enchantment does not apply to water mobs

The bug

The Respiration enchantment has no effect on water mobs, even though they are capable of suffocating.

To the mods who closed my report on Water Breathing as "works as intended", note that Respiration does not make any implications on what is being breathed.

Although I wouldn't be surprised if you'd close this one as "feature request" or something since squids don't normally spawn with respiration helmets. I'm personally not a fan of the "if it requires an external editor, it's not a bug" attitude, considering Mojang added the custom NBT tags for players to use in their maps. Back when we were using the wiki, Mojang did indeed address bug reports regarding their NBT features - just keep that in mind, please.

How to reproduce

  1. Execute the following commands simultaneously (e.g. via command blocks):

    /summon squid ~ ~1 ~ {Air:300s,ArmorItems:[{},{},{},{id:diamond_helmet,Count:1b,tag:{Enchantments:[{id:respiration,lvl:3s}]}}]}
    /summon squid ~ ~1 ~ {Air:300s}

    โ†’ โŒ Both squids start suffocating at the same time

Linked issues

Comments

Mustek

I'll let the Mojangstas decide on this one, since this actually makes more sense than the waterbreathing one.

WolfieMario

Thank you.

I figured the water breathing one would be contested; I decided to post it anyhow since the game mechanics of squid-on-land are still based on them having an air meter. From the programming perspective, Water Breathing is actually just "keep this mob's air meter full", and squid suffocate on land because their air meters are drained slowly outside water. Since Squid are a subclass of EntityWaterMob rather than EntityLiving, they don't inherit many properties that most mobs have, which is why neither Water Breathing nor Respiration work (and in truth, having them work was not needed prior to the latest update).

At any rate, it's good to know a work-around for having land-squid once again may come sometime in the future. The only current workaround I found is having Regeneration counteract the suffocation damage, but that makes them harder to kill... Which, believe it or not, actually manages to be an issue in a map I'm working on ๐Ÿ˜›

Tails

Related to MC-3316

Tails

Did the fix of MC-3316 include a fix for this issue aswell?

WolfieMario

Nope, confirmed to still exist in 13w04a.

Tails

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

WolfieMario

Yes. Sorry, it's a bit of a pain to test ๐Ÿ˜›

WolfieMario

Made an easy test system for 1.7.1: simultaneously activate two command blocks, with the following commands:

summon Squid ~ ~2 ~ {Air:300,Equipment:[{},{},{},{},{id:310,Damage:0,Count:1,tag:{ench:[{id:5,lvl:10}]}}],DropChances:[1.0f,1.0f,1.0f,1.0f,1.0f]}
summon Squid ~ ~2 ~ {Air:300}

If you punch the first squid to death, you can confirm that it drops a Respiration X helmet. However, if you leave the squid alone, they die simultaneously: the enchantment has no effect.

galaxy_2alex

Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Itouch2

Confirmed for 1.7.5 and 14w11b

Anon Ymus

Confirmed.

galaxy_2alex

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

user-f2760

No response for over a year.

Kraif

Confirmed for 1.13.1.

Conem

Confirmed for 1.16-pre2.

Conem

Confirmed in 1.16-pre3.

Conem

Confirmed in 1.16-pre4.

Avoma

Can confirm in 20w48a.

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 1.16.5 and 21w11a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

Adrian ร–stergรฅrd

This is a feature request.

WolfieMario

Oval

(Unassigned)

Confirmed

Entities, Items

respiration

Minecraft 1.4.4, Minecraft 1.4.6, Snapshot 13w01a, Snapshot 13w01b, Snapshot 13w04a, ..., 21w06a, 21w07a, 21w11a, 21w15a, 21w17a

Retrieved