Tim

Tim is a Caster skeleton found in the Cavern. He can be recognized by his Wizard Hat. Just like any other caster, he will randomly teleport himself to a visible part of the screen after shooting three Chaos Balls. Defeating Tim is the only way to obtain the Wizard Hat.

Tim is immune to the Poisoned debuff.

Finding Tim
Tim can be found anywhere in the Cavern layer. Its chance to spawn is very low (27 out of 28000) and random, and cannot spawn in water. You can increase the rate at which monsters spawn with a Water Candle and/or Battle Potion, and thus be able to find him faster as long as other monsters dont prevent him from spawning due to the spawn cap. You can be sure he has spawned if Chaos Balls randomly head your way.

He also appears to spawn when you find/equip the rare Skull vanity item.

Fighting Tim
Tim is a spellcasting enemy that shares great similarities with the Dark Caster and, when fighting, should be treated like one. Tim can cast spells that go through blocks; however, his attacks can be destroyed by attacking them with your weapon (or a Tool). He fires three shots, waits a bit and teleports to anywhere on your current screen. And having the same AI of the Fire Imp, when hit, he will wait a bit, and then teleport away. Attack him before that happens.

Trivia

 * His name is a reference to Tim the Enchanter from Monty Python and the Holy Grail, as confirmed by Blue on the Terraria IRC.
 * Tim looks exactly like a Dark Caster, except that he is wearing a Wizard Hat.
 * His clothing resembles the Robe vanity item.

History
Tim Tim Tim Тим