// giant chameleon on a branch
var i, x, y, z;
// ground
fill(0, 0, 0, 63, 5, 47, "stone");
fill(0, 6, 0, 63, 7, 47, "dirt");
fill(0, 8, 0, 63, 8, 47, "grass_block");
// branch
fill(0, 18, 22, 63, 20, 25, "jungle_log[axis=x]");
// two supports
fill(6, 9, 22, 8, 17, 25, "jungle_log[axis=y]");
fill(54, 9, 22, 56, 17, 25, "jungle_log[axis=y]");
// body
fill(20, 21, 20, 40, 28, 27, "green_concrete");
fill(20, 21, 20, 22, 25, 27, "lime_concrete");
// belly
fill(21, 21, 21, 39, 22, 26, "yellow_concrete");
// head
makeSphere(45, 26, 23.5, "green_concrete", 5, true);
// snout
fill(50, 24, 22, 53, 26, 25, "green_concrete");
// eyes
makeSphere(46, 28, 19, "yellow_concrete", 2, true);
makeSphere(46, 28, 28, "yellow_concrete", 2, true);
pb(46, 28, 17, "black_concrete");
pb(46, 28, 30, "black_concrete");
// crest on the head
for (i = 0; i < 5; i++) {
fill(42 + i, 31, 22, 42 + i, 31 + (4 - i), 25, "green_concrete");
}
// back spikes
for (x = 22; x <= 38; x = x + 2) {
pb(x, 29, 23, "lime_concrete");
pb(x, 29, 24, "lime_concrete");
}
// tail
fill(12, 22, 22, 19, 25, 25, "green_concrete");
fill(6, 22, 22, 11, 24, 25, "lime_concrete");
fill(2, 22, 23, 5, 23, 24, "yellow_concrete");
// legs
fill(24, 17, 18, 25, 21, 19, "green_concrete");
fill(24, 17, 28, 25, 21, 29, "green_concrete");
fill(35, 17, 18, 36, 21, 19, "green_concrete");
fill(35, 17, 28, 36, 21, 29, "green_concrete");
// feet
fill(24, 17, 20, 25, 17, 21, "lime_concrete");
fill(24, 17, 26, 25, 17, 27, "lime_concrete");
fill(35, 17, 20, 36, 17, 21, "lime_concrete");
fill(35, 17, 26, 36, 17, 27, "lime_concrete");
// a couple of trees
fill(7, 21, 23, 7, 34, 24, "jungle_log[axis=y]");
makeSphere(7, 38, 23.5, "jungle_leaves[persistent=true]", 6, true);
fill(55, 21, 23, 55, 34, 24, "jungle_log[axis=y]");
makeSphere(55, 38, 23.5, "jungle_leaves[persistent=true]", 6, true);
// some grass on the floor
for (x = 2; x <= 60; x = x + 3) {
for (z = 2; z <= 44; z = z + 3) {
pb(x, 9, z, "short_grass");
}
}