summaryrefslogtreecommitdiff
path: root/WorldEdit API.md
diff options
context:
space:
mode:
Diffstat (limited to 'WorldEdit API.md')
-rw-r--r--WorldEdit API.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/WorldEdit API.md b/WorldEdit API.md
index ddf9a1e..c6f1ace 100644
--- a/WorldEdit API.md
+++ b/WorldEdit API.md
@@ -38,11 +38,11 @@ Duplicates the region defined by positions `pos1` and `pos2` along the `axis` ax
Returns the number of nodes stacked.
-### count = worldedit.transpose(pos1, pos2, axis1, axis2)
+### count, newpos1, newpos2 = worldedit.transpose(pos1, pos2, axis1, axis2)
Transposes a region defined by the positions `pos1` and `pos2` between the `axis1` and `axis2` axes ("x" or "y" or "z").
-Returns the number of nodes transposed.
+Returns the number of nodes transposed, the new position 1, and the new position 2.
### count = worldedit.flip(pos1, pos2, axis)
@@ -50,11 +50,11 @@ Flips a region defined by the positions `pos1` and `pos2` along the `axis` axis
Returns the number of nodes flipped.
-### count = worldedit.rotate(pos1, pos2, angle)
+### count, newpos2, newpos2 = worldedit.rotate(pos1, pos2, angle)
Rotates a region defined by the positions `pos1` and `pos2` by `angle` degrees clockwise around the y axis (supporting 90 degree increments only).
-Returns the number of nodes rotated.
+Returns the number of nodes rotated, the new position 1, and the new position 2.
### count = worldedit.dig(pos1, pos2)
@@ -100,6 +100,8 @@ Returns the number of nodes added.
Adds a spiral at `pos` with width `width`, height `height`, space between walls `spacer`, composed of `nodename`.
+Returns the number of nodes added.
+
Visualization
-------------
Contained in visualization.lua, this module allows nodes to be visualized in different ways.