Levitation

Levitation is a status effect that causes entities to levitate. Entities shot by shulkers get levitated.

Effect
Levitation causes the affected entity to float upwards at a rate of 0.9×level blocks per second. This does not affect swimming or flying. Levitation also prevents the use of elytra, but the effect does not appear if the player is already gliding. Negative levels cause the entity to float downwards, overriding the usual falling due to gravity; level 0 (amplifier 255) makes falling, jumping and ascending stairs impossible.

Levitated entities do not take fall damage.

Levitation has no effect underwater, or on players riding entities.

Immune mobs
Only boss mobs and shulkers are immune to the effect.

ID
Java Edition:

Bedrock Edition:

History
飘浮