As you can all ready tell, wolves have pretty bad AI. I'm walking through a cave, and the next thing I know, my wolf just walked into that pit of lava that you didn't even notice. Sad. So I think wolf AI should be improved, along with wolf behavior.
- Sense of Surroundings - Wolves will sense 4 block falls and avoid them. They will also sense lava and avoid it as well.
- Danger Alert - Wolves will growl when there is an enemy within 2 chunks of the player's location. If the enemy targets the player, the wolf will growl and start to bark, trying to scare the enemy away. There's a 3% chance of it working. (It may seem pointless, but it's like pink sheep spawning, right?)
- Enemy Memory - Wolves will memorize threats to the player, depending on how many times it has harmed the player in any way. If a mob or other player has harmed the player 100 times, the wolf will only hit the enemy if it hits the player. After 250 hits, the wolf will attack if it comes within 5 blocks of the player. And after 500, the wolf will attack as soon as it targets the player.
- Trusting - A player (Player 2) can give a wolf tamed to another player (Player 1) a bone. This won't tame the wolf, but it will make the wolf trust Player 2. If Player 2 hits Player 1 after feeding the wolf a bone, the wolf will not attack. But if Player 2 kills Player 1, the wolf will attack and the trust will be lost. Player 2 can feed the wolf bones to gain back its trust, but the more this happens, the more bones it will take. (+1 bone every time Player 1 is slain by Player 2.)