Several questions here related to mobs and water:
- When mobs enter water, do they swim at the top, or will they dive down?
- Can mobs spawn in the water?
- I assume mobs can exit water one block deep, but can they climb out from a deeper sheer edge? (Players can, right?)
- Is there an easy way to make a shoreline mob-proof (without actually using a wall or fence?)
Thanks for the help.
Best Answer
Most mobs swim to the surface, even if you're submerged beneath them. The exceptions are:
Most mobs will not spawn in or on water. Again, this comes with the exceptions:
Since most mobs swim to the surface of standing water, they can get to the top of a sheer edge and exit from there. No mobs can swim up waterfalls though, so you can keep them all down using running water. Non-Drowned undead mobs will stay at the bottom of water and will be unable to escape.
A long Soul Sand gate can be built along the shoreline, which will prevent mobs from crossing it. These gates can be traversed by players using minecarts on tracks placed over the Soul Sand. From the wiki:
Here's a snapshot of a small one I built beside my house, with a crossing point for players.