I got the rendering to work.
Behold:
It still has some issues with the blocks adjacent to other blocks, but otherwise it is fine.
I had to do some trickery to actually rotate it, but I found some similair questions that gave ideas how to do it.
The biggest problem was synchronizing the found structure between server and client
