This dunk helped Carmelo Anthony set a franchise record
with 20 or more points in 30 consecutive games.

Does Mike Woodson think about coaching the Eastern Conference All-Star team? Of course he does.

“If it happens, that’s great,” Woodson said before Wednesday night’s game. “But I’m not in it to coach an All-Star team. I’m here for one thing, man, [to] try to win a title, bring it back here to New York.”

Months will pass until he can chase that second goal. But if the Knicks keep piling up wins, he has a shot at running the show come All-Star weekend.

Six Knicks put up double figures, with depth carrying them to a 113-97 victory over the Orlando Magic at Madison Square Garden on Wednesday night.

The Knicks are 28-15 and chasing the Miami Heat for the top spot in the East. Miami improved to 29-13 after Wednesday night’s win over the Nets.

Tyson Chandler, better known for his ability to pluck rebounds from thin air, sparked the offense with one of his best nights of the season. He poured in 21 points to lead the team.

But there were plenty of scorers on this stat sheet.

Consider:

* Carmelo Anthony (20 points) set a franchise record for most consecutive 20-point games (30).

“Any record that you have a chance to go get, or break or tie,” Anthony said, “that’s the fun part.”

* Amar’e Stoudemire, now a full month into his return from knee surgery, went 7-for-7 (14 points) from the field.

“I take what the defense gives,” Stoudemire said. “I am taking my time and trying to be as efficient as I can.”

* Pablo Prigioni, a backup point guard, hit a trio of three-pointers during the 15 minutes he spent on the floor.

Like most struggling teams, the Magic (14-31) began to wilt during the fourth quarter. The Knicks used a 23-11 run to start the quarter to pull the plug on the visitors.

But it took some time for New York’s opponent to fade. The Magic stormed to a seven-point lead during the first quarter, taking advantage of two hot hands.J.J. Redick took six shots during the first quarter and hit all six.

Jameer Nelson took eight shots and hit five.

Redick’s bucket with 4:16 to play in the quarter put Orlando up, 26-19.

Orlando shot 61.9 percent for the quarter and 52.5 percent for the half. Yet somehow the Knicks were even at the end of both quarters (31-31, 51-51).Finally – in the third – the Knicks wrested control. Chandler scored six during a 10-3 run, as New York turned a 59-58 deficit into a 68-62 advantage.

“I had a couple of rough games and wanted to get involved in the offense early,” Chandler said. “The flow was great. My teammates were looking for me.”

By the time those meaningful fourth-quarter minutes arrived, New York had found its footing. Meanwhile, Orlando was chasing the Knicks without Glen “Big Baby” Davis, who left the game with a broken foot.

“I think our team defense picked up,” point guard Raymond Felton said. “Our big men were getting up on the screens. At the end of the day, it takes everyone to stop a screen and roll.”