during the night, monsters come out to fight the player, but players can build a house to protect themselves from these monsters. if a player sleeps in a bed, they can skip the night, and go directly to the next day. however, they are unable to sleep if there are monsters near the bed.