Voxel Building greenGables


greenGables.js (moved from fun and useful scripts 3-May-2014)
I have developed a script to build a simple 2 level 60 x 60 house with a gable roof and some window and door openings to help the beginners.
The walls are all different colours to help define things in the script, I have commented almost every different line with basic help.

The house can be placed anywhere by changing the first 3 values (constants) in the script to your location, these values are then used as constants throughout the script. (details in the script)

With a little experimenting you can change the colours to suit yourself by changing the last 3 numbers in the Voxels.setVoxel(x, y, z, 1, 100, 100, 255) in this case 100, 100, 255 which is lightblue.

It can be scaled with a little tweaking.

Make sure you also get the removal script eraseGreenGables.js

Modify this all you want,
Download scripts here
Build script https://gist.github.com/Adrianl3d/cd61f1f4697a81f202c81
Removal script https://gist.github.com/Adrianl3d/b8ddcdcb78c24c101ddd9