getLevel()->setBlock(Vector3 $pos, $blockid); //not full code and can have errors, you need to experiment with this