Ocean

The Ocean is a biome found at both left and right edges of a world, comprising both the easternmost and westernmost 676 feet (338 blocks) of the mapPlayers cannot come within 41 tiles from the absolute edge of the map. Thus, from a player's perspective, the oceans end roughly 338 tiles (686 feet) from either lateral end, but technically they actually end 380 tiles (760 feet) from either end. . It consists of a sandy beach and a large body of water that extends toward the end of the map, with Shell Piles being occasionally generated in clumps. Palm Trees grow on the surface (since 1.2.4), and can be harvested for Palm Wood. Seashells and Starfish are found commonly on the surface and underwater, and can grow over time. Corals also grow on the seabed.
Enemies in the Ocean include Crabs, Pink Jellyfish and Sharks. Squids and Sea Snails rarely appear underwater, and respectively drop Black Ink and Purple Mucus. Critters in the Ocean include Dolphins, Seagulls, Seahorses and Sea Turtles.
Oceans will commonly contain Water Chests with loot pertaining to water.
== Contents ==
== NPC happiness ==
== Notes ==
* Like other enemies with Swimming and Jellyfish AIs, Ocean enemies will only detect and swim toward the player if they are in the water to a depth of at least one tile.
* If the Ocean has enough "dry" sand, surface Desert enemies may spawn, but the area near the water will not start growing desert plants.
* Hardmode Corruption/Crimson or Hallow can convert all the sand into Ebonsand/Crimsand or Pearlsand, effectively converting the Ocean into a Corrupted/Crimson or Hallowed Desert biome.
* Unlike other biomes, the water in the Ocean does not turn red during a Blood Moon. However, after The Labor of Love update, the water in the ocean will turn red during a blood moon.
* Although the Ocean appears to reach the edge of the world, 3rd party map viewers will show that it actually extends for several blocks more. The Corruption/Crimson or Hallow can spread to the sand via these unseen extra blocks at the sea bed.
* Sometimes, the sea bed can generate below the surface layer, causing a bit of the underground's background to appear and seaweed to grow on sand.
** If the sea bed is low enough, it is possible to find Heart Crystals, desert Underground Cabins and Campsites on the Ocean floor.
* It is not possible to expand the Ocean biome further inland than its natural size.
* On the versions, the Ocean Day music track will play no matter what time it is, and on the versions, the Ocean Night music track will play no matter what time it is.
== Generation variants ==
=== Ocean cave ===
Oceans have a chance of generating with a cave, which consists of a water-filled tunnel with a ceiling made of hardened sand beginning at the ocean floor. This tunnel has an additional chance of generating Water Chests, which have equal chances of containing each primary item. It is decorated with long strands of Seaweeds growing from the sand floor.
=== Florida style ===
The world has a chance to generate one of the oceans as Florida style. This variant inverts the slope of the beach, with long beaches becoming steeper near the world edge.
== Tips ==
* Players exploring the Ocean run the risk of drowning if not equipped with the proper accessories. In addition to plenty of healing potions, items and potions that aid breathing, such as the Breathing Reed and Gills Potion, a Magic Mirror for returning home quickly, and Flippers to aid swimming should be brought along. The Grappling Hook or Ivy Whip may also be of some help in returning to the surface for breath. The Neptune's Shell or any of its upgrades removes the need to breathe altogether.
* Players may drain the Ocean by tunneling down to the Underworld, where water evaporates.
* Another way of draining the Ocean is by making an air pocket, emptying a Lava Bucket in it and placing a background object (e.g. furniture) in the lava. Allowing water to flow in will cause it to disappear, as the object prevents Obsidian from being generated.
* When attempting to preserve the Ocean biome from being infected in Hardmode, simply digging a horizontal gap under the seabed is insufficient because world data extends a little past the edge of the world. The gap must be created vertically along the beach of the Ocean to prevent the spread of Corruption/Crimson or Hallow.
* The Oceans have a lot of space, making them good places for large-scale builds like arenas and farms.
* While not currently possible to expand the Ocean biome further inland, it is possible to extend the watery area to the inner edge of the naturally spawning beach.
== Trivia ==
* The version's Ocean music used to be exclusive to only those versions, but has since been implemented into the as the Ocean Night theme.
* s can sometimes form during world-gen.
* The s of are bodies of salt water covering approximately 70.8% of the surface of Earth and contain 97% of Earth's water.
== Gallery ==
=== Backgrounds ===
==== Underground layer ====
File:Underground ocean background.png|Normal version
File:Corrupt underground ocean background.png|Corrupt version
File:Crimson underground ocean background.png|Crimson version
File:Hallowed underground ocean background.png|Hallowed version
== History ==
== References ==