In this guide
You have about ten minutes of daylight to work with, so gather 20 wood blocks first and dig your shelter second. Mojang's own first-day walkthrough opens with 20 wood and closes with a lit, doored hole in a hillside, and a full Minecraft day runs 24,000 ticks, of which the daytime section is 10 minutes, according to the Minecraft Wiki. The condition that changes the plan is a bed: kill 3 sheep, craft one, and you sleep through the night instead of waiting it out.
The chain Mojang actually prescribes
The official walkthrough is a dependency chain, not a wish list. Mark your spawn point with a dirt pillar or note the coordinates. Hit trees with your hands for 20 wood blocks. Turn wood into planks, spend 4 planks on a crafting table, then make sticks and a wooden pickaxe, axe, sword and shovel.
From there it goes stone. Find a hill, mine 20 blocks of cobblestone, and remake the tools in stone, which Mojang says are more durable than wood. Then gather another 20 wood with the stone axe rather than your hand.
Those numbers are worth trusting because they are sized for one day. Twenty wood is three or four trees. Twenty cobblestone is a few seconds of mining with a fresh pickaxe. Anything past that is a second day's work you are doing on the first day's clock.
Food and a bed come from the same animals
Mojang's order is deliberate: kill some animals with the stone sword and collect what they drop, then kill 3 sheep and craft a bed, which lets you sleep through the night. The Minecraft Wiki's bed page adds the recipe detail the walkthrough leaves to the crafting screen: a bed is 3 wool over 3 planks, the wool colors must match, and the planks do not have to.
Cooking is the next link. Craft a furnace, then use your now-redundant wooden tools as fuel to cook the raw meat, and eat when the food bar starts to drop. That is Mojang's own suggestion, and it is why the walkthrough tells you to keep the wooden set instead of throwing it away.
A bed does a second job. The same wiki page says sleeping in one changes your spawn point to within a few blocks of the bed, as long as it is not broken or obstructed, so the dirt pillar you built at the start stops being the only place you come back to.
Coal, then torches, then walls
Go back to the hill and dig farther in until you spot coal ore; each block drops 1 coal. Craft torches with it, and use the rest in the furnace, which Mojang notes will smelt more items than a wooden tool will.
Torches are the actual security system. The official walkthrough says to light up your hole with torches to prevent hostile mobs spawning overnight, and the Minecraft Wiki puts a torch's light level at 14, one short of full daylight. A dark corner inside your own shelter is a spawning platform.
Then shape the room. Mojang's instruction is to expand the hole into an L-shape so you can hide around the corner, craft a wooden door, and place it on the shelter from the outside. Shut the door, and either sleep or wait until morning out of sight of it.
Example: a first night on a 10-minute clock
Here is the walkthrough as a worked example against the wiki's clock. Daytime is 10 minutes and the whole cycle is 20 minutes, so budget it: roughly four minutes on 20 wood and the crafting table, two minutes on 20 cobblestone and stone tools, two on sheep and animals, two on the hillside and coal.
That leaves the L-shaped room, the door and the torches for the last of the light and the first part of the night, which is fine, because you are already inside. If the sun is going down and you have no bed, stop collecting and close the room — Mojang's plan works without a bed, it just ends with waiting instead of sleeping.
What you do not do is start a mine. Digging toward coal and breaking into an unlit cave replaces one solved problem with an open one, at the exact moment you have no torches to spare.
Tomorrow is for the base. Once the room works, the starter-base layout turns it into something with a route and a work area, and the chest system gives the first containers a purpose before they multiply. If the return trip is the part that keeps going wrong, record the coordinates and use the navigation guide.