If you wanted to let your hunting dog chase a bear in California, request a social networking password from an employee in Illinois or release a feral hog into the wild in Kentucky, your time is up.

All of these practices became illegal Tuesday, and are part of a slew of new and occasionally wacky state laws coming into effect in 2013. Four hundred laws will take effect with the new year, according to the National Conference of State Legislatures.

The California law makes it illegal to use a dog to hunt a bobcat or a bear in the Golden State. While it’s easy to imagine a grizzly tearing up a household pet, the laws are intended to protect the wild animals, not the domesticated ones. Hunters use the dogs to chase bears up trees, making the normally fierce animal an easy target.

The bill’s sponsor, Democratic State Sen. Ted Lieu, told the AP packs of dogs can occasionally tear apart bobcats after catching them. Of the 32 states that allow bear hunting, 17 have banned the use of dogs, according to the Humane Society of the United States.

The Kentucky law is aimed at stopping the spread of wild hogs, who were seen in 37 of the state’s counties in early 2012, up from only 19 counties in 2009, according to the Lexington Herald-Leader. The animals were ruining crops and spreading disease. While the U.S. Department of Agriculture has been using gun-equipped helicopters to thin the ranks of the animals, legislators determined they needed to take more steps.

But it’s Kentucky’s neighbor to the northwest that has some of the strangest laws arriving on January 1. Illinois lacked a law explicitly criminalizing sex with a corpse, so previous prosecutions had relied on a charge of “criminal damage to property.”

“The death of a loved one is bad enough, but it should be much more than criminal damaged property,” Illinois Rep. Daniel Beiser, a Democrat, told the St. Louis Post-Dispatch. “This is a completely inappropriate charge.”

Beiser sponsored successful legislation making sex with a corpse a felony punishable by seven years in prison. The same law made moving a corpse punishable by four years in prison.

Illinois is also mandating middle school students learn how to use a defibrillator. While it’s not one of three ‘Rs,’ Illinois officials hope showing students a short training video in grades six through eight could save some lives. (At least one Illinois teacher’s life was saved by a defibrillator this year, although a nurse, not a student, was handling the device.)

In addition to helping kids protect others, Illinois is also trying to protect its kids. A law sponsored by Republican Sen. Kirk Dillard made it a felony for sex offenders to dress up as the Easter Bunny, work as a department store Santa or pass out candy on Halloween.

Illinois and California are among a number of states banning employers from asking for social networking screen names and passwords from prospective hires.

In Oregon, employers won’t be allowed to post job openings if they won’t consider the currently unemployed. When the bill passed in May, Oregon became the second state with such a law, following New Jersey.

“It’s crazy to say that you have to have work, to look for work,” the state’s Senate President, Democrat Peter Courtney, told the Oregonian. “If you had work, you wouldn’t need work, so you wouldn’t have to look for work. We’re just trying to make it clear that people who don’t have work can look for work.”

Florida is making it clear swamp buggies don’t automatically qualify as motor vehicles under the law, instead allowing county governments to decide if buggies are allowed on local roads. It would also exempt swamp buggies, many of which are owned by tour companies, from some equipment requirements.

Massachusetts is repealing a law requiring every item in a grocery store to have a price label. Instead, stores will be allowed to place price scanners around the store. Consumer groups opposed the move, arguing it would make price comparisons more difficult.

And New York is banning the sale of electronic cigarettes to children, with legislators arguing the items are marketed in candy flavors to kids and haven’t been proven safe.