I'm afraid it will take a whi... aaand done. Just add DungeonRooms to your list of finishers It was implemented a while ago by xoft There is a bug with them though. They can also generate above ground in the air.
the only problem with blocks is that some IDs are different in MCPE, but MCPE changes unknown blocks to update blocks so it won't crash.
Also MCPE uses raknet and I think its C++ library so it shouldn't be hard.