You will need a Tome of Town Portal and Wirt's Leg to open the secret cow level. Insert the two items into the Horadric Cube and hit transmute. You must do this in Act 1 Rogue Encampment, and you must have killed Baal in the difficulty in which you are trying to open the portal to the secret cow level. You may only open the portal to the secret cow level once per difficulty.