Automatic barrel