Arron Afflalo of the New York Knicks controls the ball...

Arron Afflalo of the New York Knicks controls the ball in the first half against Wayne Ellington and Shane Larkin, right, of the Brooklyn Nets at Barclays Center on Wednesday, Jan. 13, 2016 in Brooklyn, New York. Credit: Jim McIsaac

The Knicks were at a disadvantage with Carmelo Anthony on the bench in street clothes, but they had what felt like a homecourt advantage with their fans far outweighing Nets supporters. But the Knicks couldn’t produce the result most people in the Barclays Center wanted.

The Knicks blew a chance to go above. 500 for the first time since Nov. 23. Instead, the Nets did something they hadn’t done since Dec. 10: win in Brooklyn. The Nets outplayed the Knicks for most of the game, and especially down the stretch, and snapped a 10-game home losing streak with a 110-104 victory Wednesday night.

“We had our opportunities to make the plays necessary to win,” Derek Fisher said. “We couldn’t get stops down the stretch. No excuses, though. We were capable of doing the things we needed to do. We just didn’t do it.”

Minus Anthony, who sprained his right ankle in Tuesday’s win over Boston, the Knicks’ offense wasn’t as sharp as it had been recently. The Nets keyed in on rookie Kristaps Porzingis and he shot just 5-for-17.

The Knicks (20-21) still led in the fourth, but they made only four baskets in the final five minutes, with three in the final 27 seconds after the game essentially was decided. They were outscored 20-12 after Jose Calderon’s three-pointer with 5:01 left put the Knicks up 92-90.

It’s been a crazy week for the Nets, who ended a five-game skid overall. They fired coach Lionel Hollins and reassigned general manager Billy King. Interim coach Tony Brown got his first win.

“I saw a little passion,” Brown said. “I thought they were excited to play in the second half, especially down the stretch, and they fed off each other. One of the first times we saw that in a long time in this team.”

Derrick Williams picked up the scoring slack with Anthony out, and had a season-high 31 off the bench. But the Knicks needed more from Porzingis and didn’t get it. He had 12 points and 10 rebounds.

Porzingis said he felt a huge difference playing without Anthony. The Knicks, who trailed by 11 early in the second quarter, dropped to 0-3 without their best player.

“He kind of creates a lot of situations for us, and we can get wide-open shots,” Porzingis said. “This time you could see from the beginning: Thaddeus Young was really into my jersey. He didn’t want me to even receive the ball. I could tell the difference between when Melo’s on the court and when I’m by myself.

“A lot of shots that I missed were shots I usually make. They weren’t making me miss, I was just missing them. But I could feel the pressure from the beginning. “

Arron Afflalo was quiet most of the night but scored eight in the final 27 seconds and finished with 18. Calderon had 16.

Brook Lopez outplayed his twin, Robin, and scored 20 to lead the Nets (11-28). Young had 19 points and 11 rebounds. Former Knick Shane Larkin, who didn’t start, scored eight of his 17 in the fourth. Joe Johnson had 14, including back-to-back baskets that put the Nets up six in crunch time.

After a Young free throw gave the Nets a 96-94 lead, Afflalo missed a baseline jumper. Johnson connected on a jumper to put the Nets up 98-94 with 1:59 left. Williams couldn’t convert and the Nets led 100-94 after another Johnson jumper with 1:29 remaining. After a Porzingis foul shot, Brook Lopez’s putback dunk gave the Nets a 102-95 lead with 1:05 left.

“We didn’t bring it from the beginning and that carried on in the game,” Porzingis said. “We weren’t mentally prepared right from the beginning. Later on it takes a lot of energy to put it all back together and play at the level we need to play.”

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME