adding example screens

This commit is contained in:
walterhiggins 2013-02-09 15:02:11 +00:00
parent e857e70209
commit 9c31e2d321

View file

@ -19,7 +19,7 @@ TLDNR; (Just read this if you're impatient)
=========================================== ===========================================
At the in-game command prompt type... At the in-game command prompt type...
/js box(5) /js box(blocks.oak)
... creates a single wooden block at the cross-hairs or player location ... creates a single wooden block at the cross-hairs or player location
@ -78,7 +78,9 @@ Drones can be created in 3 ways...
d = new Drone().up() d = new Drone().up()
... which will move the drone up one block as soon as it's created. ... which will move the drone up one block as soon as it's created.
![corner stone](img/cornerstone1.png)
3. Or by using the following form... 3. Or by using the following form...
d = new Drone(x,y,z,direction) d = new Drone(x,y,z,direction)
@ -117,14 +119,12 @@ parameters
Example Example
------- -------
To create a stone structure 5 blocks wide, 8 blocks tall and 15 blocks long... To create a black structure 4 blocks wide, 9 blocks tall and 1 block long...
drone.box(48, 5, 8, 15); drone.box(blocks.black, 4, 9, 1);
![box example 1](img/boxex1.png)
To create an oak tree...(we can't control the dimensions of a tree since it's a natural object in minecraft)
drone.box(6);
***/ ***/
Drone.prototype.box = function(block,width,height,depth){}; Drone.prototype.box = function(block,width,height,depth){};
/************************************************************************ /************************************************************************
@ -235,6 +235,8 @@ Construct a rainbow-colored road 100 blocks long...
blocks.wool.lightblue, blocks.wool.blue, blocks.wool.purple]; blocks.wool.lightblue, blocks.wool.blue, blocks.wool.purple];
boxa(rainbowColors,7,1,100); boxa(rainbowColors,7,1,100);
![boxa example](img/boxaex1.png)
***/ ***/
Drone.prototype.box0 = function(block,width,height,length){}; Drone.prototype.box0 = function(block,width,height,length){};
Drone.prototype.boxa = function(/* [string] */ width, height, length){}; Drone.prototype.boxa = function(/* [string] */ width, height, length){};
@ -249,7 +251,14 @@ Parameters
* block - the block id - e.g. 6 for an oak sapling or '6:2' for a birch sapling. * block - the block id - e.g. 6 for an oak sapling or '6:2' for a birch sapling.
Alternatively you can use any one of the `blocks` values e.g. `blocks.sapling.birch` Alternatively you can use any one of the `blocks` values e.g. `blocks.sapling.birch`
* width - the width of the prism * width - the width of the prism
* length - the length of the prism (also its height) * length - the length of the prism (will be 2 time its height)
Example
-------
prism(blocks.oak,3,12);
![prism example](img/prismex1.png)
Drone.prism0() method Drone.prism0() method
===================== =====================
@ -271,6 +280,13 @@ Parameters
* radius * radius
* height * height
Example
-------
cylinder(blocks.iron, 7 , 1);
![cylinder example](img/cylinderex1.png)
Drone.cylinder0() method Drone.cylinder0() method
======================== ========================
A version of cylinder that hollows out the middle. A version of cylinder that hollows out the middle.