Nope, you can’t sleep in hard. You can’t set a spawn point, either but you can use your compass and shift + right click on the area you want to remember. Then when you die, follow the compass when it’s in the middle on the top, and it should lead you back to that area. Hope this helps!