Sometimes when I want to sleep within my house, I can't because of the "You may not sleep now, there are monsters nearby" warning. Within how many blocks does a hostile mob have to be to my bed to trigger this warning?
The system is much simpler since the full release — sleep is not allowed within 10 blocks of a hostile mob.
Quoted from the minecraft wiki. Hope this helps.
If a hostile mob is in the ten block radius you will not be allowed to sleep.
You can build a 4x3 platform 13 blocks above the ground(for safety) and put a bed on it. I've tried it and I was able to sleep without any prompts.
protected by Studoku May 4 '15 at 1:37
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?