Mojira Archive
MCPE-178691

Entities with "has_gravity":false, can start floating upwards when pushed by water

Entities with a "minecraft:physics" component, that have "has_gravity" set to false can lead to the entity flying up into the air when pushed by water.

This isn't caused by the entity receiving suffocation damage. The issue doesn't happen if the collision box is larger than 1.

Reproduction steps:

  1. Enter the attached world
  2. Create a 1x2 hole in the ground
  3. Place water next to the hole, on the short side
  4. Place the entity in the water
  5. See the entity float along the water and fly up when it hits the wall
 {
    "format_version": "1.16.0",
    "minecraft:entity": {
        "description": {
            "identifier": "test:cube",
            "is_spawnable": true,
            "is_summonable": true,
            "is_experimental": false
        },
        "components": {
            "minecraft:physics": {
                "has_collision": true,
                "has_gravity": false
            },
            "minecraft:collision_box": {
                "width": 1,
                "height": 1
            },
            "minecraft:health": {
                "min": 1,
                "value": 100,
                "max": 100
            }
        }
    }
}

Unresolved

M

2024-02-08, 04:18 PM

2024-07-31, 04:49 PM

1

1

Confirmed

1182767

1.20.60

-