An Ohio cosplayer pleaded guilty Wednesday to planting a bomb at a perceived romantic rival’s house in Maryland, which nearly killed the recipient and caused more than $45,000 in damage to the home.

Clayton Alexander McCoy, a 32-year-old registered sex offender who lived with his mother, drove more than 350 miles on Oct. 30, 2020 in order to plant a package bomb on the victim’s front porch, according to a federal criminal complaint. He took a route avoiding tolls in his mom’s Toyota pickup.

The victim, identified in court documents as NK, suffered serious injuries. He and his girlfriend, identified as SB, were members of the "Dagorhir" gaming community along with McCoy. 

The game is described as "a live-action roleplaying (LARP) battle game" involving medieval costumes and mock combat with prop weapons.

SENTENCING DELAYED FOR MAN WHO PLOTTED TO BLOW UP DEMOCRATIC HQ

Clayton Alexander McCoy dressed up as a medieval warrior

Clayton Alexander McCoy and the bombing victim were members of the "Dagorhir" gaming community. (Facebook)

McCoy approached SB over Discord and confessed his romantic feelings for her. She turned him down, reminding him she was dating NK. So McCoy built a homemade bomb, gift-wrapped it and dropped it off at NK's doorstep, according to the U.S. Attorney’s Office for the District of Maryland.

He researched how to build it, bought materials in cash from multiple stores to conceal his efforts, and ultimately built a package bomb that he placed inside a shipping box, which he drove to the victim’s house himself, according to prosecutors.

NK’s grandfather found the box on his front porch, addressed to NK, and brought it inside.

SUSPECTED MISSOURI DOG-COLLAR KIDNAPPING RAPIST MAY HAVE MORE VICTIMS

Clayton Alexander McCoy mugshot

Clayton Alexander McCoy pleaded guilty to placing a gift-wrapped bomb at the door of a romantic rival he knew through the "Dagorhir" live-action roleplaying game. (Mahoning County Sheriff's Office)

When the victim returned from work, he opened the box and found a smaller box inside, wrapped in a ribbon.

He opened it, heard a whistling sound, and it exploded in front of him, according to prosecutors.

"The victim was struck in the front of his body by shrapnel and sustained injuries to his chest, legs, and front of his body," the U.S. attorney’s office said in a statement. "He was transported to the hospital where he was treated for injuries caused by the shrapnel and explosion."

FLORIDA BODYBUILDER IAN BAUNACH CHARGED WITH EX'S MURDER AFTER POLICE FIND BONES IN BACKYARD ‘BURN PILE’

Hand-cut shrapnel next to a ruler

Prosecutors said McCoy hand cut pieces of metal into triangular shrapnel, which he loaded into his homemade bomb. (Justice Department)

It also rendered the house "uninhabitable" for five months, costing NK’s grandparents’ insurance company over $70,000, prosecutors said.

NK spent the next 18 days in the hospital, undergoing a series of surgeries to remove shrapnel and reconstruct his hand. He had to use a walker for another two weeks and still has bits of metal embedded in his body today, according to prosecutors. He is still rehabbing from his injuries.

McCoy had cut up pieces of metal into small triangles to use as shrapnel, according to the complaint.

Google Earth image showing McCoy's route from Ohio to Maryland

Prosecutors said phone and geofencing data shows McCoy took this route on the seven-hour drive from his house to the victim's. (Justice Department)

Investigators recovered DNA evidence from the package and used cellphone data to trace McCoy’s route to the victim’s house on the day of the attack.

A neighbor’s Nest doorbell camera recorded a truck similar to McCoy’s pulling up around the time the bomb had been dropped off.

Pickup truck circled in Nest video still

A neighbor’s Nest doorbell camera recorded a truck similar to McCoy’s mom’s pulling up around the time the bomb had been dropped off. (Justice Department)

CLICK HERE TO GET THE FOX NEWS APP

McCoy faces up to 20 years in prison for transporting explosives with intent to injure and 10 years for possession of an unregistered explosive device at his sentencing, which has not yet been scheduled.

McCoy in 2013 was convicted of pandering obscenity involving a minor, was sentenced to four years in prison and placed on Ohio’s sex offender registry, according to court documents.