A jilted Missouri husband tracked his wife to Brooklyn and pointed a gun at her new boyfriend — but it jammed when he pulled the trigger, police said.

Rusty Lloyd, 49, a machinist from Blue Springs, is now in jail on attempted-murder charges for the Wednesday afternoon confrontation at the Mill Basin home where his runaway wife, Claudia Carmona, was living with her new beau, police said.

“Come downstairs!” Lloyd allegedly shouted at his rival while brandishing a black firearm.

When the gun didn’t go off, Lloyd allegedly fled on foot but was arrested five hours later near Lindower Park.

“We don’t want to speak to anybody until after court,” Carmona said at the address on Saturday.