Just as the phantom hunts for players who refuse to sleep, the sandman hunts for the lazy.
What: Sandman mob who appears if a player sleeps within the first 5% of the night cycle for several days in a row.
Why: players who sleep immediately are able to avoid a lot of the threats present in the overworld. By adding in a mob that only appears if sleeping has been used consistently and quickly for several days; it adds a new challenge for those players.
How: The sandman appears within 10 blocks of players when they attempt to sleep, if they meet the following requirements. The sleep cycle is cancelled as the sandman is a nearby hostile mob.
Sandman is able to pass through transparent blocks such as doors, glass, pistons, fences and trapdoor.
Sandman attacks with splash potions with the slowness and mining fatigue effects. He also has a melee attack.
If a player is "killed" by the sandman, they don't actually die. Instead they wake up teleported to a random location with a single, previously full, slot from their hotbar or armour, now empty.
Requirements: player has slept through the night for 10 days in a row and has slept within the first 5% of the night cycle for Al least 7 of those nights.