Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-178691

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.60
    • None
    • Plausible
    • Windows
    • 1182767

      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
                  }
              }
          }
      }
      
      

            Maxaxik M
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: