mojira.dev
MC-124260

An entity that gets the NoGravity tag while falling does not stop moving until 15 seconds

The bug

If you spawn an entity (that either starts floating or falling) and use the command

/data merge entity @e[type=minecraft:falling_block,limit=1] {NoGravity:1b}

the entity doesn't stop moving until some seconds, instead of that it goes more and more slowly.

How to reproduce

Method 1:
Create a falling_block by placing a sand block, immediately after that use the command (said above)

Method 2:
Set a command block as 'Repeating' and 'Always Active,' place a dropper with something inside and give the dropper power

Attachments

Comments 14

Makes perfect sense: gravity stops giving it more momentum, but it still has some until air resistance slows it down.

Confirmed for 1.13.1.

Command: /data merge entity @e[type=minecraft:falling_block,limit=1] {NoGravity:1b}

Agreed with tryshtar, additionally editing nbt tags during the lifetime of an entity is not supported.

affects 1.16 pre-2

4 more comments

Can confirm in 1.18.2.

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

Can confirm in 1.19 and 22w24a.

Can confirm in 1.19.2.

Alexei

TheGabro

(Unassigned)

Confirmed

Entities

NoGravity

Minecraft 1.12.2, Minecraft 18w02a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, ..., 24w39a, 1.21.4, 25w03a, 1.21.10, 25w44a

Retrieved