Minecraft wiki entry for Spider, associated text: An aggressive spider pounces at close range. When it is swimming in 1-block-deep water it pounces upon touching the submerged floor. They can attack when their Y-axis position is changed.