Shipwreck

Shipwrecks are generated structures that primarily generate in oceans and beaches.

Generation
Shipwrecks generate in all types of oceans and beaches, usually underwater. They may also rarely generate inside icebergs and very rarely generate in underwater ravines.

Structure
Shipwrecks are shaped to resemble classic sailing vessels or pirate ships. They will generate in one of three ways: upright, sideways, or upside-down. In many cases, they will be missing their bow, stern, mast, and multiple other blocks, appearing damaged, but it is also possible to find them in one intact piece. They consist solely of wood materials, including logs, stripped logs, planks, fences, stairs, trapdoors, and doors. All variants of wood are used in the shipwreck's structure, but it is usually built out of only two wood types at a time (spruce + dark oak, jungle + dark oak, jungle + spruce, etc).

Loot
Shipwrecks contain 1–3 chests that have loot in them. Supply chests generate in the bow of the ships, treasures chests generate in the upper section of the stern, and map chests in the lower section. If a section of a ship is missing, the treasure chest for that respective section will also be missing.

Supply chests
In Java Edition and Bedrock Edition