A Brooklyn man packing pipes, wires and chemicals in a suitcase boasted Wednesday that he was building a bomb to show how easily he could walk around with it, sources said.

Christopher Hackett, 44, of Cobble Hill, didn’t have all the items to make it work, but still was arrested for possession of the materials, along with two loaded, defaced guns.

Police were investigating an unrelated case when they knocked on his door on Butler Street late Wednesday morning. They were searching for a burglary suspect in the apartment, but Hackett told them the man wasn’t there.

However, officers saw shell casings and a .22 caliber gun in plain sight, sources said. They then obtained a search warrant and found the other weapons, including a makeshift zip gun and an air gun. They also found the suitcase, which contained colored wires that were attached to each other, along with pipes that were filled with the unstable chemical compound ammonium phosphate.

Hackett told detectives he “was trying to make a bomb to show how easy it was to walk around with it,” a law enforcement source said.

He was charged with multiple counts of criminal possession of a weapon, as well as reckless endangerment and violations. He is due tonight in Brooklyn Criminal Court.

Hackett has three prior arrests, including one on Jan. 24, 2004 when he was found with a machine gun, shotgun and illegal fireworks, sources said. He pleaded guilty to criminal possession of a weapon in that case and sentenced to nine months in jail.

Meanwhile, the burglary suspect was arrested later Wednesday night. George Montalvo, 57, of Brooklyn, was charged with criminal possession of a controlled substance, but not yet with the burglary, sources said.