From e5331d39ae35b945017b5a4229dd089c196df95b Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Wed, 12 Dec 2012 17:17:56 -0500 Subject: Many thanks to Smitje for providing a working example of roations. Changes: fixed rotation and transposition of non-sqaure regions, makers are now moved to the new region boundaries after rotation/transposition, small consistency fixes, finally fix the /hide command. --- WorldEdit API.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'WorldEdit API.md') 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. -- cgit v1.2.3