Cave Spiders often stop attacking once they have hit you
So I was testing out some mob AI and stuff, when I noticed a bug with Cave Spiders
Here's what I noticed:
During the day, hit a Cave Spider. It will start to chase you and most of the time, once it has damaged you, it stops chasing.
During the night/in darkness it does the same thing, but after it has stopped it will start chasing again soon, since its dark.