Add //hollowcube and //cube

closes #143
This commit is contained in:
sfan5
2017-08-31 19:07:51 +02:00
parent e356f4521c
commit 870873ad15
5 changed files with 101 additions and 0 deletions

View File

@ -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`.