mojira.dev
MC-135519

NoGravity tag not working on drowned

The bug

The drowned spawned with NoGravity tag can still fall. It just falls slightly slower than without it. Other entities seem to be unaffected.

How to reproduce

  1. Fly above ground in creative mode

  2. Run this command:

    /summon minecraft:drowned ~ ~ ~ {NoGravity:1b}

    → ❌ Notice the drowned slowly fall to the ground

Linked issues

Attachments

Comments 17

If you spawn a turtle above the water with NoGravity:1b, it will also go into the water after some time, if you spawn any fish type in the water, it will just go and swim with NoGravity:1b.

can confirm for 1.13.1

Confirmed for 1.13.2-pre2.

NoGravity:1 disables the downward acceleration of the drowned, but it still falls at constant speed.

I suspected that the downward motion was written into its AI, and testing seems to support my hypothesis.

Calling the following command causes the drowned to no longer fall by disabling its AI.

summon minecraft:drowned ~ ~ ~ {NoGravity:1, NoAI:1}

See attachment for testing screenshots.

The drowned with the {{NoGravity}} tag make them look like they have the Slow Falling effect but they fall even slower than the effect itself.

7 more comments

Can confirm in 21w41a. The expected behavior would be that the "NoGravity" tag functions correctly with drowned.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w19a.

Can confirm in 1.19.

Can confirm in 1.19.2.

fcelon

(Unassigned)

Confirmed

Commands, Mob behaviour

Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2-pre2, Minecraft 1.13.2, ..., 1.19, 1.19.2, 1.20.1, 1.20.4, 1.21

Retrieved