mojira.dev
MC-306236

Slow falling and levitation functions abnormally when player modifies attribute minecraft:gravity

Description

When player has modified gravity with Levitation, the gravity change is ignored, and player’s vertical movement only depends on the Levitation effect; When player has modified gravity with Slow Falling, it is much more complex. If the modification is negative (like -0.08, compared with default 0.08), Slow Falling effect is completely nullified. If it is a huge positive value (like 1.00), the player either: 1) ignores the gravity attribute change, if they fall from a cliff’s edge; 2) falls faster than condition (1), which seems under the combined effect of both gravity attribute and Slow Falling, if a creative mode player finishes flying mid air (by double tapping Space key).

How to reproduce

Levitation:

  1. Use “/effect give @s minecraft:levitation infinite” to get Levitation effect;

  2. Set attribute using /attribute @s minecraft:gravity base set -0.08;

  3. Set attribute using /attribute @s minecraft:gravity base set 1;

You will find that nothing changes whatever you set gravity to.

Slow Falling:

  1. Use “/effect give @s minecraft:slow_falling infinite” to get Slow Falling effect; (Remember to clear Levitation if you just tested it)

  2. Set attribute using “/attribute @s minecraft:gravity base set -0.08”, and you will levitate at the same speed as without Slow Falling;

  3. Set attribute using “/attribute @s minecraft:gravity base set 1”, and fall from a cliff. It will ignore the gravity change;

  4. Switch to flying in creative mode, and cancel it mid air. You will fall at a higher speed, which is faster than mere Slow Falling, and slower than only 1.00 gravity attribute.

Comments 1

Ohmin Young

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved