How to make a Bed
In this tutorial, I will be showing you how to make a custom bed that can set the player's spawn point at night. You will need two blocks to make this project a bed foot and head block. All the files are provided for this project in the download.
This tutorial will show you how to make custom beds that set the player's spawn point. Spawn points can only be set during the night and should have multi-world and multiplayer support for other mods too.
Download and Tutorial
Before You Start
You will need to download the files from the tutorial, here you will find the models, textures, procedures, and workspace.
Make sure to rename the model every time you are about to make a new custom bed. The Blockbench saves are in the download so you can figure out the rotation for the bed you need.
Make sure to make your global variables before you import your procedures, some of the procedures require the global variable made to keep the setting when its imported.
Also don't forget to update the block elements to select the proper blocks you need, I have provided comments on all of the block elements you will need to update, just read them and add the proper block.