mojira.dev
MC-132671

Dolphins spawned out of water using /summon instantly take damage, while ones spawned with eggs do not

• Run : /summon minecraft:dolphin ~ ~ ~ {}

→ If out of water, the dolphin will instantly start to take damage.

→ If under water, the dolphin will instantly start to take damage.

For now, everything is normal (takes damage out of water because Moistness=0, and under water because Air=0, since tags were empty in the command)

 

• Run : /summon minecraft:dolphin ~ ~ ~

→ If out of water, the dolphin will (still) instantly start to take damage.

→ If under water, the dolphin will not (no longer) instantly start to take damage.

 

► When leaving completely empty (meaning "not even the brackets") the NBT tag argument, the entity should spawn with its usual tags, like when using a spawn egg. This is not what happens here, for the dolphin's "Moistness" tag. Under water, the dolphin instantly resets its Moistness tag (... since under water), so they avoid damages. But of course, they still spawn with Moistness=0.

Linked issues

Attachments

Comments 24

(From MC-132311)
So you meant in 1.13-pre5 there had been no "Moistness" tag, but the dolphins had still taken damage after a while out of water? How was that working?

Yep. I mean, it probably WAS there already, at least that's what I've always considered, but it was just not showing when using "/data entity get @e[limit=1,type=dolphin]". That is what was about my bug report that is marked as "duplicate" of yours, although it shouldn't (related, yeah, duplicate, certainly not).

 

Now, I don't know. I can only say that I think the tag, although invisible for a player, was already encoded in the game, so that it is why dolphins would still eventually die, but that it was also buggy (as your bug report points out). I have no idea if this was directly linked to the fact the tag wasn't visible or if it was due to something else. Now, I guess the important thing is that both problems are solved, right ? 😉

 

About when you ask how that was working, if you meant about how to make the dolphin take damage without leaving and then joining back the world, well, you just had to wait long enough ^^ If you want a nice step-by-step guide, I guess the best I can do is to redirect you towards MC-132601. Although, I wrote everything while out of the game and did not check if there was any mistake (and it so happens that I just noticed one, with the /data, so I'll fix it. But then it should be good).

I'm not used to reading such long paragraphs, and I cannot fully understand everything you mean in them. So would you please simply tell me: from 1.13-pre5 to the 1.13 official release, what should be changed? I mean all the things, and yes, from 1.13-pre5, not 1.13-pre6.
Thanks 🙂

See the screenshot in MC-132601 ? You can notice that there's no "Moistness" tag anywhere. That was the problem. It really is nothing more than that.

The only other thing to point out is that I couldn't know yet how that tag was supposed to be called, so of course, that's why I never talk about "Moistness" anywhere. That was rather "whatever its name, it's not there".

 

(and all of that reminds me that I wanted to test, now that I know the tag's name, if using it in a command would work or not. In 1.13-pre5 or before, of course. Not very useful, although I think it would allow to know whether the tag was only invisible or not written to NBT. That is still not very useful, but I'm curious).

OK. So my question actually is: there's no "Moistness" tag in 1.13-pre5, so how do those dolphins still take damage after a while in 1.13-pre5? There's no tag, so the dolphins cannot know how long they've been out of water. The time between spawning on land and taking damage in 1.13-pre5 is defined by what?

14 more comments

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w19a.

Can confirm in 1.19.

Can confirm in 1.19.4

Azkunki

(Unassigned)

Confirmed

Platform

Normal

Commands, Mob behaviour

Minecraft 1.13-pre6, Minecraft 1.13, 1.14.4, 19w36a, 1.15.2, ..., 1.19, 1.19.2, 1.19.4 Pre-release 2, 1.19.4, 1.21.4

Retrieved