It makes it the same penalty as for the burglary of a dwelling or business.
Also passed was a law making the theft of livestock or any other animal, including beehives and farm dogs, an offence liable for up to seven years in prison.
Equipment used in the course of the offending - including vehicles used at the time or later purchased from proceeds - will be subject to forfeiture under the Criminal Proceeds (Recovery) Act 2009.
When the laws were introduced Northland police Inspector Christopher McLellan, who was the district prevention manager, said police took all crimes, including the theft of livestock and property in rural areas, seriously.
"We do receive reports from our farming communities of stock theft and the killing of stock, and we view this as an offence and ensure we follow it up accordingly and follow up lines of inquiry."
He said it was essential these crimes were reported in order for police to investigate.
"We have really strong farming communities up here in Northland, and we encourage people to look after themselves and their neighbours and report anything suspicious in their area."