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.

An affected entity does not take fall damage until the effect wears off, after which the entity falls and takes damage as usual from falling.

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
飘浮