Minecraft wiki entry for Defense, associated text: Since endermen can move blocks, but are hurt by water, make a moat instead of a wall. Also, it's better if it flows through a 1x1 block hole in your house, so you get the drops. However, note that endermen can teleport onto the other side of the moat, making this method not as effective.