The man who shot a police officer and terrorized a Goose Creek neighborhood in 2010 has been sentenced to 20 years in prison, authorities said.

Codrick Delmaire Bass, 36, of Goose Creek, pleaded guilty to three counts of attempted murder, aggravated assault and kidnapping in a Moncks Corner courtroom on July 25.

Bass went on a shooting spree at his Iris Street home on July 19, 2010, that ended in the wounding of then-Goose Creek police officer Robert Edwards Jr. and two other people. Edwards now works for the Dorchester County Sheriff’s Office.

Attorney David Aylor made this statement on behalf of Edwards and his family: “We are satisfied and relieved that the case has been resolved. It has been a stressful time for the family and we appreciate the hard work the solicitor’s office has done to bring it to a close.”

Bass will get credit for the three years he’s already served behind bars and will be required to serve at least 85 percent of his remaining sentence. That means Bass could get of prison in about 15 years. The plea agreement included a 20-year sentencing cap, according to Bass’ attorney, Bill Runyon. Bass submitted Alford pleas for the attempted murder charges, not admitting guilt but conceding that there was enough evidence to convict him if he would have gone to trial.

“It was always the assertion that Mr. Bass, the discharge of the firearm, was not done to cause harm to anybody at the time,” Runyon said. A slew of other charges were dismissed or the solicitor’s office declined to prosecute them, including charges of domestic violence, lewd act on a minor and malicious injury to personal property, according to court records.

“Many of the charges that were dismissed or nol-prossed were duplicative of what he pled guilty to,” said

Bryan Alfaro, deputy 9th Circuit Solicitor in Berkeley County, said some of the charges dropped were redundant. “Also, Bass’s wife, who was the initial victim in (the) case, said that neither she nor her daughter wanted to participate in the case, and indicated they didn’t want to appear in court at a trial or at the plea,” he said. Alfaro said Edwards was in agreement with the plea offer prosecutors made to Bass.

Edwards was one of the first officers to arrive at the Pineview subdivision for what started as a domestic-violence call, according to investigators.

Police have said Bass, wielding a 12-gauge shotgun on his front porch, saw Edwards attempting to take cover and shot him.

Edwards, a police veteran of more than 20 years, was not wearing a bullet proof vest. He was struck in nine places, including his arms, hand, shoulder, face and upper torso. One of the shots also punctured his lung and he was on a respirator until he was able to breathe on his own. Doctors also had to reconstruct his jaw.

Two other men were grazed by the buckshot from Bass’ shotgun, according to authorities. Neighbors had said those men were injured trying to help three children and their mother who were inside the house with Bass. At least one round blew out the windows of a neighbors car and damaged a second minivan, according to police. A neighbor also said part of the buckshot went through his daughter’s bedroom window.

Edwards filed a civil suit against Bass in September, which remains pending.

Reach Natalie Caula at 937-5594 or Twitter.com/ncaula.