Here i will explain how to make all the craftible beds. First you will need a saw mill to make a saw mill you need 1 work bench, 10 wood, 2 iron or lead, and one chain.You will also need a Loom to make a loom use your sawmill it takes 12 wood. read more
Alright, to answer your first question, you need two things: a sawmill and a loom. A sawmill requires some wood and a chain (made with iron bars). Once you have that, use the sawmill to make a loom. Gather some cobwebs and use the loom to change them into silk. I believe it's 5 silk (50 cobwebs) and some wood to make a bed. read more
For instance, you may have a bed (2x4) surrounded by walls on the left, right and bottom sides, and above the foot of the bed. So long as there is space for the player to spawn at the bed (3 high), the bed can be set as a spawn point. See the image below. This is valid placement of the bed, as the top left 3 spaces just above the bed are clear. read more