From 8cd32bcc59766f6c2aba77da7f64ea9882e97813 Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 22 Jul 2012 18:12:29 -0400 Subject: Add the //transpose, //flip, and //rotate commands as well as their documentation and related WorldEdit API functions. Fix chat parameter handling using pattern anchors. --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2d69c92..99b06ff 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,30 @@ Stack the current WorldEdit region along the x/y/z axis times. //stack y -1 //stack z +5 +### //transpose x/y/z x/y/z + +Transpose the current WorldEdit region along the x/y/z and x/y/z axes. + + //transpose x y + //transpose x z + //transpose y z + +### //flip x/y/z + +Flip the current WorldEdit region along the x/y/z axis. + + //flip x + //flip y + //flip z + +### //rotate + +Rotate the current WorldEdit region around the y axis by angle (90 degree increment). + + //rotate 90 + //rotate 180 + //rotate 270 + ### //dig Dig the current WorldEdit region. @@ -163,10 +187,28 @@ Returns the number of nodes moved. ### worldedit.stack(pos1, pos2, axis, count) -duplicates the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") `count` times. +Duplicates the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") `count` times. Returns the number of nodes stacked. +### 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. + +### worldedit.flip(pos1, pos2, axis) + +Flips a region defined by the positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z"). + +Returns the number of nodes flipped. + +### 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. + ### worldedit.dig(pos1, pos2) Digs a region defined by positions `pos1` and `pos2`. -- cgit v1.2.3