diff options
Diffstat (limited to 'WorldEdit API.md')
-rw-r--r-- | WorldEdit API.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WorldEdit API.md b/WorldEdit API.md index 8488305..1106fc7 100644 --- a/WorldEdit API.md +++ b/WorldEdit API.md @@ -115,6 +115,12 @@ Primitives ----------
Contained in primitives.lua, this module allows the creation of several geometric primitives.
+### count = worldedit.cube(pos, width, height, length, node_name, hollow)
+
+Adds a cube with its ground level centered at `pos`, the dimensions `width` x `height` x `length`, composed of `node_name`.
+
+Returns the number of nodes added.
+
### count = worldedit.sphere(pos, radius, node_name, hollow)
Adds a sphere centered at `pos` with radius `radius`, composed of `node_name`.
|