“It’s Always Sunny in Philadelphia” star and co-creator Rob McElhenney will direct the Minecraft movie for Warner Bros.

Minecraft publisher Mojang AB made the announcement on its website, saying, “Hello there! Some of you may have seen this guy hanging around MINECON in London a couple weeks ago. He’s Rob McElhenney, and he’s going to be directing the upcoming Minecraft movie.”

Warner Bros. acquired film rights to the video game franchise in February from Swedish developer Mojang AB and set it up with Roy Lee through his Vertigo Entertainment production company along with Jill Messick (“Mean Girls”). Minecraft debuted in 2009 as a game in which players create an environment using textured cubes in a 3D world.

“It’s Always Sunny” was picked up by FX in 2005. The pub-set comedy has been renewed through its 12th season.

McElhenney has directed several episodes of “It’s Always Sunny in Philadelphia.” He is also developing the feature film “Figment” at Legendary and directed the FX pilot “Pariah” starring comedian Bill Burr.

McElhenney is represented by WME, 3 Arts Entertainment and attorney David Weber.