Minecraft wiki entry for Wolf, associated text: Wolves can be told to "sit" by pressing use on them and made to stand again with another press of use.
A wolf automatically sits when first tamed.
While sitting, they do not follow the player. However, if their owner fights a mob near them, they are still likely to join the fight. When the fight is over, they go back to sitting (if in water, they do not sit until they are on dry land, telling the wolf to sit makes it stand). They sit at their new location instead of returning to wherever they were previously.
Wolves stand up and follow the player if it is pushed into water or injured while sitting.
Wolves can either attack (within 16 blocks) or flee (within 24 blocks) from llamas. The wolves' speed is increased by 50% whereas they flee.
Wolves find paths to their targets if attacking within 16 blocks, even in difficult terrain. They also navigate along the edges of cliffs and occasionally fall far enough to take damage if they leap.
Wolves attack their targets running about at the player's walking speed and by leaping at them in exactly the same manner as spiders, but cause no damage while in midair. Tamed wolves attack any animal the player starts to attack. They also can navigate and turn around in 1×1 horizontal tunnels.
After emerging from water, a wolf shakes the water off their fur. This is represented by an animation and water particles.