Bedrock

"Bedrock lives at the bottom of the overworld and the top and bottom of the Nether. It was added on the tenth day of Minecraft's development - 20 May 2009 - only three days after the game was released to the public for the first time. It's older than water, lava, ores and logs. But dirt, grass and stone are older still."

- Duncan Geere

Bedrock is a block that is indestructible in survival.

Natural generation
Bedrock comprises the 5 bottommost layers of the Overworld in a rough pattern, although the first to fourth layers are predominantly flat bedrock with only rare gaps, rendering the very bottom, completely flat fifth layer (at y=0) mostly inaccessible. In the Nether, bedrock comprises both the top and bottom four layers in a rough pattern. At the top of the Nether, bedrock prevents the player from going past y=127.

In the End, individual bedrock blocks make up the natural end crystal structure, and the bedrock remains after the destruction of the crystal. Bedrock additionally forms as part of the exit portal that generates at the center of the central End island. It also forms the randomly generating portals that lead back to the obsidian platform on the main island.

Post-generation
End gateway portals, which are generated upon killing the ender dragon, are built predominantly of bedrock, like the portals found in the outer end. However, only 20 of these portals generate, in set positions, with one appearing per dragon kill.

Obtaining
Bedrock is unbreakable in Survival mode, regardless of the tools used. It also cannot be moved by pistons or destroyed by explosions that are present in survival gameplay. Bedrock can be obtained or broken only in Creative mode, by using commands, or by pressing when hovered over a bedrock block in creative mode. Even if theoretically broken in Survival mode, bedrock would not drop as an item.

Usage
Bedrock's primary usage is as a solid unbreakable block. It also prevents mob spawns and is the only solid block that beacon beams can shine through.

Additionally, when set on fire in the End, the fire on bedrock never extinguishes naturally, similarly to the fire on netherrack.

Block states
In Bedrock Edition, bedrock uses the following block states:

Trivia

 * It is possible, but rare, for ore to be found encased in bedrock.
 * Strongholds can cause a bedrock not to form within its bounds.
 * From its addition in Classic through some versions of Alpha, bedrock's texture file was called Rock.png.
 * In Java Edition, the patterns of bedrock are consistent in all worlds regardless of world seed (except Superflat). In Bedrock Edition, the patterns are dependent on the seed in the Overworld, however, they are still consistent in the Nether.
 * The bedrock texture, regardless of the current default resource pack (Programmer Art or Default), is basically the stone block with a really high contrast.
 * Vexes and the ender dragon can fly through bedrock. Additionally, the ender dragon cannot break bedrock.