mojira.dev
MC-275195

In a dedicated server, when gravity attribute is set from a negative number to 0.08, the player gets kicked for flying

The bug

In a dedicated server, if you set the attribute gravity to 0 or less, you can stay in the air or float upwards. However, if you change it back to the default value (0.08), you will be instantly kicked out of the game.

Steps to Reproduce

  1. Set up a dedicated server with default settings

  2. Set your gravity to -0.01 to make yourself float upwards:

    /attribute @s minecraft:gravity base set -0.01
  3. Wait for over 5 seconds

  4. Restore the default gravity:

    /attribute @s minecraft:gravity base reset

Observed Results

You get instantly kicked for flying.

Expected Results

You would not get kicked.

Linked issues

Attachments

Comments 1

Can confirm in 1.21.5.

cxc81

gegy

Confirmed

Platform

Normal

Commands, Dedicated Server

command, server

1.21.1, 24w33a, 24w34a, 24w35a, 24w36a, ..., 1.21.6, 1.21.7 Release Candidate 1, 1.21.7, 1.21.8, 25w33a

Retrieved