10

I'm trying to go to bed, but it's not letting me. I have a showcase in my house that is upstairs, and that showcase has a trapped Enderman in it. Everything else in my showcase is an animal. Could it be that the Enderman that is causing my bed to tell me I can't sleep?

3
  • What is a showcase? I assume it's not the showcase mod.
    – John
    Commented Mar 7, 2013 at 13:20
  • @John He just means a collection of animals for display.
    – Sadly Not
    Commented May 28, 2013 at 1:23
  • @SadlyNot mobs would despawn once he moves away correct?
    – John
    Commented May 28, 2013 at 13:58

2 Answers 2

11

According to the MC wiki, a hostile mob prevents you sleeping. An enderman is considered a neutral mob unless provoked, so it should not prevent you sleeping.

In recent and current versions of Minecraft, nightmares are gone, but you cannot sleep if a hostile mob is within 8 blocks of the bed horizontally (along each axis) and 5 blocks vertically.

also

An Enderman (plural Endermen) is a three-block-high, humanoid, neutral mob that will turn hostile when provoked.

To answer your question, an enderman is not considered a monster. Regardless of this I tested this in the latest version of Minecraft and it did prevent me sleeping. So although it's classified wrong, it still prevents you from sleeping.

3
  • 6
    +1 for Science! Yeah, the wiki is just wrong. By the code an Enderman is a hostile mob that just can't see the player until provoked. Commented Mar 7, 2013 at 3:28
  • Really now? I'll have to take a look at the code sometime, I like playing around with those things.
    – M.Pagani
    Commented Mar 7, 2013 at 3:31
  • This is a straightforward way to get the decompiled code up and working. It's a tangle, but quite interesting to browse through! Commented Mar 7, 2013 at 3:40
0

Yup. The enderman is classified as hostile mob to me, because it attacks if you stare at it. Do that with a spider. Same thing happens... except quicker. You should probably put the showcase somewhere else.

2
  • But before it's stared at, it is classified as neutral. It's only once it's provoked that it becomes hostile.
    – Coronus
    Commented Mar 9, 2013 at 1:47
  • 1
    The code is the problem. It's set as hostile no matter what.
    – Raymonf
    Commented Mar 11, 2013 at 21:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .