Nothing is stopping you from making a variation of the mob killer machines to make a pet spawner. Just like make sure every level in the cattle spawner is hit by sunlight and every level is covered in grass, then make someway for the cattle to get forced to a central area by water or whatever.