Mojira Archive
MC-124820

Boats inside non full level water raise / sink with NoGravity set

The bug

Boats inside non full level water (see MC-124819) sink even if NoGravity is set to 1b.

How to reproduce

  1. Create a straight waterfall
  2. Summon a boat with NoGravity:1b
    /summon boat ~ ~ ~ {NoGravity:1b}
    
  3. Push or steer the boat into the water
    It floats or sinks

Code analysis

Based on 1.12.2 decompiled using MCP 9.40

It looks like the reason could be that when a boat has the status EntityBoat.Status.UNDER_FLOWING_WATER, the method net.minecraft.entity.item.EntityBoat.updateMotion() modifies d1 which is added to the y-motion instead of modifying d2.

Unresolved

Marcono1234

2018-02-05, 02:59 PM

2024-12-17, 12:29 PM

7

5

Confirmed

Commands, Entities

NoGravity, boat, water

Minecraft 1.12.2 - 1.21.4Minecraft 1.12.2, 20w07a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 1.17, 1.17.1, 1.18 Pre-release 5, 1.18.2, 22w16b, 1.19, 1.19.2, 1.19.3, 1.20.1, 24w35a, 1.21.4

-