Open your crafting table (or crafting grid in your inventory if applicable).
Collect 3 wooden planks.
Collect 3 wool.
Place 3 wooden planks in a horizontal row across the crafting grid.
Place 3 wool directly above or below the planks to fill the remaining slots of the bed recipe.
Move the bed from the crafting output slot into your inventory.
If crafting in the inventory, ensure you have a 3×3 crafting area available (use a crafting table).
To use the bed, place it by targeting a block and selecting the placement option.
Right-click (or use the use button) on the placed bed to sleep.
