The algoritm is eazy, you click space to place block then you give him proportions. If you want to move block click mouse and it will teleport to mouse pointer. At the end press E to confirm. You can do it 300 times. To light its the same but you need click 0 not space. If you dont see block turn off darkness or light it with the light.
thanks to griffpatch for raycast totorial (used to lights) if you see any bug please tell this in the commets and i will try to fix it. If light lag try to increase light res.