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:
Use “/effect give @s minecraft:levitation infinite” to get Levitation effect;
Set attribute using /attribute @s minecraft:gravity base set -0.08;
Set attribute using /attribute @s minecraft:gravity base set 1;
You will find that nothing changes whatever you set gravity to.
Slow Falling:
Use “/effect give @s minecraft:slow_falling infinite” to get Slow Falling effect; (Remember to clear Levitation if you just tested it)
Set attribute using “/attribute @s minecraft:gravity base set -0.08”, and you will levitate at the same speed as without Slow Falling;
Set attribute using “/attribute @s minecraft:gravity base set 1”, and fall from a cliff. It will ignore the gravity change;
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.
Can confirm