Turrets are defense buildings. If you equip it with a ranged weapon, it will shoot for you. Just like 99% of the other games, the higher the tier, the better it is. To craft the turret, you need 50 wood, 30 stone, and an additional 50 of the desired resource.