[[File:Crawling Steve (wide).png|right|150px]] [[File:Crawling Alex (slim).png|right|150px]]
'''Swimming''' is a form of [[transportation]] that allows the player to move in water.

== Control ==
[[File:Enter swimming.gif|thumb|right|upright|Entering swim mode.]]
[[File:Exit swimming.gif|thumb|right|upright|Exiting swim mode.]]
Swimming is activated by pressing {{control|forward}} while in [[water]].

Sprint-swimming can also be activated. To do this, the player can press {{control|sprint}} for 1 block gap while moving, or double tap {{control|forward}}. The player cannot sprint-swim if the hunger bar is at {{hunger|6}} or below, or when affected by [[Blindness]].

Sneaking when swimming allows the player to sink faster.

== Usage ==
When swimming on the surface of still water, the player moves at 2.20 blocks per second. If the player is partially submerged in water, the player moves at 1.97 blocks per second. The player moves at 1.81 blocks per second when swimming downstream underwater, and moves at a slower 0.39 blocks per second while swimming upstream underwater.

=== Sprint-swimming ===
[[File:Swim.gif|An animation showing the player swimming|thumb|250px]]
Sprint-swimming allows the player to move at around 5.612&nbsp;meters/second, which is 30 percent faster than the normal walking speed of around 4.317&nbsp;m/s. The player can turn while sprint-swimming at a slightly reduced speed.

{{control|Sneaking}} while sprint-swimming allows the player to descend faster, and {{control|jumping}} allows the player to ascend faster. Therefore, the fastest way to descend underwater is to look directly downward, sprint-swim and sneak at the same time, and the fastest way to ascend underwater is to look directly upward, sprint-swim and jump at the same time. 

With sprinting while swimming, it is possible to swim across the [[water]] horizontally.<ref>{{ytl|yf-J0FyZo3U}}</ref> This allows the player to fit through one-block gaps, in a similar method to [[crawling]].

By maneuvering the angle of swimming, it is possible to sprint-swim at the surface of a body of water, while still being able to breathe. 

Sprint-swimming reduces the player's saturation, and upon reaching zero it depletes the [[hunger]] bar at a rate of {{frac|1|2}} every 40 meters, or 7 seconds.

When a player attacks any [[mob]] (excluding [[squid]]) while sprint-swimming, the mob suffers a larger knockback than usual.

Sprint-swimming, like normal sprinting, ends when the player collides with a solid block, [[Sneaking|sneak]]s, [[Blocking|blocks]] or attacks a mob. Additionally, sprint-swimming also ends if the hunger bar decreases to {{hunger|6}} or below.

== History ==
{{HistoryTable
|{{HistoryLine|java classic}}
|{{HistoryLine||0.0.12a|Added water, allowing the ability for the player to swim.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.4.2|dev=12w38a|Changed the sound when swimming in water.}}
|{{HistoryLine||1.13|dev=18w07a|Added the ability to sprint while in water, which causes the player to dive to the ground and swim much faster.}}
|{{HistoryLine|||dev=18w15a|Sprinting at the surface of water no longer makes the player swim, instead the player stays at the same altitude constantly.
|Swimming through 1 block holes is now possible.<ref>{{bug|MC-125240}}</ref>}}
|{{HistoryLine|||dev=18w19a|Added the [[Dolphin's Grace]] status effect, creating a new way for the player to swim faster.}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||v0.1.0|Added water and swimming.}}
|{{HistoryLine||?|Changed the sound when swimming in water.}} 
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.2.13|dev=beta 1.2.13.8|Added the ability to sprint while in water, which causes the player to dive to the ground and swim much faster.}}
|{{HistoryLine||1.4.0|dev=beta 1.2.14.2|When swimming near a dolphin, the player is granted an instant speed boost without the status effect for several seconds.}}
|{{HistoryLine|||dev=beta 1.2.20.1|Players can now swim through 1x1 gaps.}}
|{{HistoryLine||1.5.0|dev=beta 1.5.0.0|Improved player swimming at the surface of water.}}
|{{HistoryLine||1.14.0|dev=beta 1.14.0.1|Players can no longer start swimming in 1-block deep water.}}
|{{HistoryLine||1.17.0|dev=beta 1.16.230.56|Improved visibility when swimming in underwater [[cave]]s.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added water and swimming.}}
|{{HistoryLine||xbox=TU31|xbone=CU19|ps3=1.22|psvita=1.22|ps4=1.22|wiiu=Patch 3|Most mobs can now swim in water.}}
|{{HistoryLine||xbox=TU69|xbone=none|ps3=1.76|psvita=1.76|ps4=1.76|wiiu=Patch 38|switch=none|Added the ability to sprint while in water, which causes the player to dive to the ground and swim much faster.}}
}}

== Issues ==
{{Issue list}}

== Gallery ==
=== Renders ===
<gallery>
File:Crawling Alex (slim).png|[[Player#Alex|Alex]]
File:Crawling Alex (wide).png|Alex with wide arms
File:Crawling Ari (wide).png|[[Player#Ari|Ari]]
File:Crawling Ari (slim).png|Ari with slim arms
File:Crawling Efe (slim).png|[[Player#Efe|Efe]]
File:Crawling Efe (wide).png|Efe with wide arms
File:Crawling Kai (wide).png|[[Player#Kai|Kai]]
File:Crawling Kai (slim).png|Kai with slim arms
File:Crawling Makena (slim).png|[[Player#Makena|Makena]]
File:Crawling Makena (wide).png|Makena with wide arms
File:Crawling Noor (slim).png|[[Player#Noor|Noor]]
File:Crawling Noor (wide).png|Noor with wide arms
File:Crawling Steve (wide).png|[[Player#Steve|Steve]]
File:Crawling Steve (slim).png|Steve with slim arms
File:Crawling Sunny (wide).png|[[Player#Sunny|Sunny]]
File:Crawling Sunny (slim).png|Sunny with slim arms
File:Crawling Zuri (wide).png|[[Player#Zuri|Zuri]]
File:Crawling Zuri (slim).png|Zuri with slim arms
</gallery>

=== Screenshots ===
<gallery widths="200px">
Swim steve preview.gif|Animation of a player swimming around in an [[ocean monument]].
ArgoMajor Swimming.jpg|The first image of a player swimming {{in|Bedrock}}.
</gallery>

== Trivia ==
* Sprinting and jumping while under a 1 block gap high ceiling causes a player to move at a speed almost twice as fast as regular sprinting speed, but it consumes a hunger point every second.
** This can be sped up even more by decreasing the ceiling height using [[water]] source or by sprinting on [[ice]].
** A similar effect occurs if the player sprints and rapidly hits {{control|swim}} at the same time on a set of fish mobs.
* When affected by [[Dolphin's Grace]]{{only|java}}, a player's speed is increased significantly while swimming.

== References ==
{{reflist}}

== See also ==
* {{EnvLink|Sprinting}}
* {{EnvLink|Crawling}}

== Navigation ==
{{Navbox gameplay}}

[[Category:Rewritten gameplay]]
[[Category:Transport]]

[[de:Schwimmen]]
[[es:Nadar]]
[[fr:Nager]]
[[ja:水泳]]
[[ko:수영]]
[[pl:Pływanie]]
[[pt:Nadar]]
[[ru:Плавание]]
[[uk:Плавання]]
[[zh:游泳]]
