There was a zombie in my pool, I expected it to chase after me. It didn't, it just continued to swim around. I even got closer, it only hurt me when I pushed into it. (Sorry if this is a duplicate, I searched for similar problems but didn't find anything). In the picture it looks like it is looking at me, but this was the screen shot I was able to get whilst staying above water.
Linked issues
duplicates 1
Attachments
Comments 9
I don't think it is related to that, I've only found a few hostile mobs in water before. I'll have to check about the two blocks deep thing.
The hostile mobs don't seem to end up in the water as much, but once they're in there, they can't seem to get back out. It's my suspicion that the same logic that stops them from walking off cliffs also stops them from moving around when in deep water, but it's completely a guess, and I've never tried to test it.
Unfortunately, I was unable to replicate a zombie in two block deep water... Turns out mobs only spawn when you DON'T want them, haha. But, a creeper spawned and made it into the water... I think I had alerted it when I broke a dirt block next to it, causing it to explode. So, that's not a good expiremnt...guess I shouldn't be a scientist.
Hmm, I tested this a bit and I think I've got it figured out. There are two types of water block, running water (block id 8) and stationary water (block id 9). Zombies (and, I assume, other aggressive mobs, and maybe passive ones) don't seem to be able to move through stationary water, but they can move through running water fine. I still need to confirm that this is actually what I'm seeing by looking at the data in chunks.dat, but I'm almost positive this is the problem.
Edit: this is definitely the problem. They can't move through block 9, but they can move through block 8.
I tested it on Android by using PocketInvEditor to add eggs and both flowing and stationary water to my inventory. I also applied a patch that makes zombies spawn from eggs instead of chickens, with a 100% probability of spawning. I created a pool from each type of water, and threw an egg into the center of each pool. The zombie easily escaped from the block 8 water and pursued me. The zombie in the block 9 water was unable to move, and watched helplessly as I killed it with a shovel.
The effect is especially noticeable when spawning a zombie on the other side of the block 9 pool... it will treat the pool as an obstacle and try to run around it instead of swimming to the other side. With a block 8 pool, the zombie swims across as expected. Interestingly, the zombie will go into the water at the very edge of the block 9 pool, but will not go any farther.
The easiest way to recreate this on Android is to use the spawn egg patch, give yourself an egg, and throw it into naturally-occurring deep water, then swim up to the zombie and notice that he stays in one place.
I'm fine with zombies NOT chasing me...but yeah that does seem like a problem, now logically explained. And I love your weapon of choice...a shovel.
Hmm, so the description I gave above is a little inaccurate... it ultimately doesn't matter what kind of water you place, since at some point (after saving and reloading, or block updates?) they'll become the same blocks either way... block 8 around the edges and 9 in the center, as far as I can tell. There's definitely a problem with the mobs swimming through block 9, though.
The same seems to be true with fire proof mobs in deep lava
I mentioned this on an issue that was marked a duplicate of this, so I thought I would mention it here
Possibly related to MCPE-229.
Out of curiosity, if you fill in the bottom of the pool so the water is only two blocks deep, will the zombie start chasing you?