diff --git a/docs/api.md b/docs/api.md index c50e307..cb5fd1c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -114,6 +114,11 @@ Example ------- To create a black structure 4 blocks wide, 9 blocks tall and 1 block long... + box(blocks.black, 4, 9, 1); + +... or the following code does the same but creates a variable that can be used for further methods... + + var drone = new Drone(); drone.box(blocks.black, 4, 9, 1); ![box example 1](img/boxex1.png) diff --git a/src/main/javascript/drone/drone.js b/src/main/javascript/drone/drone.js index 21e0f89..ad44eb0 100644 --- a/src/main/javascript/drone/drone.js +++ b/src/main/javascript/drone/drone.js @@ -121,6 +121,11 @@ Example ------- To create a black structure 4 blocks wide, 9 blocks tall and 1 block long... + box(blocks.black, 4, 9, 1); + +... or the following code does the same but creates a variable that can be used for further methods... + + var drone = new Drone(); drone.box(blocks.black, 4, 9, 1); ![box example 1](img/boxex1.png)