spillz wrote:A few bed issues (using github master):
1/ If someone breaks your bed while lying in it, you are stuck
2/ Objects placed to right side of beds cause problems when you get out (end up stuck in whatever it is)
3/ Any way to improve on character positioning? In multiplayer it looks really odd to see characters standing up in the ground below their bed!
4/ How does passage of time work? Does the time actually change to day the second you go to "sleep" in the bed at night? Some visual indication of what is happening would be good here (e.g. see how minecraft does it).
Otherwise thanks for a nice mod.
1. It should be possible to add some meta to a bed and a check for it on_dig. If someone's laying on a bed, then there should be some meta and then we'll need to "release" our dear player.
2 & 3. It should be possible to find_node_near that is air and check if there's air above it. Then teleport our dear player to a given pos (having detached him/her beforehand).
4. It should be possible to add some semi-transparent texture using HUD which would be "fullscreen". Then we need to add 2, 3, 4, etc layers of the same texture until it would be pitch black. In the morning a reversed procedure would be necessary.