{{Infobox effect
|image = Levitation.png
|sources=See {{slink||Causes}}
|particle= {{EffectSprite|particle-levitation}} #CEFFFF (sky blue)
|type=Negative
}}
'''Levitation''' is a [[status effect]] that causes [[entities]] to levitate, inflicted when entities are shot by [[shulker]]s.

== Effect ==
Levitation causes the affected entity to float upward at a rate of 0.9×level [[block]]s per second{{verify|bedrock}}. This does not affect [[swimming]] or [[flying]].

{{IN|java}}, negative levels cause the entity to float downward, overriding the usual falling due to gravity. Level 0 (amplifier 255) makes falling, jumping, and ascending [[stairs]] impossible for the [[player]] (other entities still float), and taking damage at this level causes the player to rise rapidly into the air.

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 on players riding entities. {{IN|java}}, it also has no effect on entities that are in water or lava.<ref name=MCPE-76143>{{bug|MCPE-76143||Levitation works even if you are in water or lava|WAI}}</ref><ref>{{bug|MC-83369||The levitation effect doesn't work while entities are inside water}}</ref>

== Causes ==
{| class="wikitable" data-description="Causes"
!Cause
!Potency
!Length
!Notes
|-
|{{EntityLink|Shulker}}
|I
|0:10
|9 blocks
|}

== Immune mobs ==
[[Boss]] mobs, flying mobs, hovering [[blaze]]s and [[shulker]]s are unaffected by Levitation.

== Notes ==
Mobs tied with [[balloon]]s{{only|education|bedrock|short=1}} exhibit behavior similar to if they had a high level of Levitation. However, this mechanic does not use the Levitation effect.

{{IN|java}}, if a player is given a Levitation level over 127, they instead fall down at a fast or slow rate, depending on the value. If a player is given Levitation 255, they hover on their current Y level, being unable to move up or down.

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|shownumericids=y
|generatetranslationkeys=y
|displayname=Levitation
|spritetype=effect
|nameid=levitation
|id=25
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|generatetranslationkeys=y
|displayname=Levitation
|spritetype=effect
|nameid=levitation
|id=24
|foot=1}}

== Achievements ==
{{load achievements|Great View From Up Here}}

== Advancements ==
{{load advancements|Great View From Up Here;How Did We Get Here?}}

== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.9|dev=15w31a|[[File:Levitation JE1 BE1.png|18px]] Added Levitation.}}
|{{HistoryLine|||dev=15w37a|[[Shulker bullet]]s can now be blocked by [[shield]]s, preventing the player from getting the Levitation effect.<ref>{{bug|MC-86905}}</ref>}}
|{{HistoryLine||1.14|dev=18w43a|[[File:Levitation JE2 BE2.png|18px]] The effect icon texture of Levitation has been changed.}}
|{{HistoryLine||1.16|dev=20w19a|Levitation now works when the player is gliding with elytra.<ref>{{bug|MC-89956|||Fixed}}</ref>}}
|{{HistoryLine||1.20|dev=23w16a|[[Sniffer]]s no longer dig while having the Levitation effect.}}
|{{HistoryLine|pocket}}
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|[[File:Levitation JE1 BE1.png|18px]] Added Levitation.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|[[File:Levitation JE2 BE2.png|18px]] The effect icon texture of Levitation has been changed.}}
|{{HistoryLine||1.13.0|dev=?|The effect now works in water and lava.<ref name=MCPE-76143/>}}
|{{HistoryLine||1.19.10|dev=Preview 1.19.10.23|[[Shulker#Shulker bullet|Shulker bullet]]s now give Levitation I instead of II.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|[[File:Levitation JE1 BE1.png|18px]] Added LEVITATION.}}
|{{HistoryLine||xbox=TU57|xbone=CU49|ps3=1.57|psvita=1.56|ps4=1.56|wiiu=Patch 27|switch=1.0.7|"LEVITATION" has been renamed to "Levitation".<ref>{{bug|MCCE-2868|||Fixed}}</ref>}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.90|wiiu=none|switch=none|Added [[shield]]s, which can block shulker bullets and prevent players from getting the [[Levitation]] effect.}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.91|wiiu=none|switch=none|[[File:Levitation JE2 BE2.png|18px]] The effect icon texture of Levitation has been changed.}}
}}

== Issues ==
{{Issue list}}

== Trivia ==
* The Levitation status effect normally raises the [[entity]] into the [[air]], unless the entity is in [[water]].
* The [[player]] can walk/run while having the Levitation effect, especially on level 254.
* Using {{cmd|effect <player> minecraft:levitation <"infinite" or "time in seconds"> 255}} makes the player [[Flying|fly]] in Survival and not jump, when under the effect in Survival, taking [[damage]] causes the player to shoot into the air, resulting in a likely death.
* If a player uses {{command|effect}} command to self-grant Levitation 256, the player moves at 230.4 blocks per second.
* Levitation potions exist in the [[Mini games#Tumble|Tumble minigame]] for the [[Legacy Console Edition]].

== References ==
{{reflist}}

== Navigation ==
{{Navbox effects}}

[[Category:Transport]]

[[de:Schwebekraft]]
[[es:Levitación]]
[[fr:Lévitation]]
[[ja:浮遊]]
[[ko:공중 부양]]
[[pt:Levitação]]
[[ru:Левитация]]
[[zh:飘浮]]
