summaryrefslogtreecommitdiff
path: root/WorldEdit API.md
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-01-12 18:29:57 -0500
committerAnthony Zhang <azhang9@gmail.com>2013-01-12 18:29:57 -0500
commit7cf84045d4dea9727f9db5e5de9a6524fc4ef1af (patch)
tree7fc04acbd62ca3cc8f0cea758818de2346359a21 /WorldEdit API.md
parente2f1c4ef174443b2807aa94a209261546bbf19fb (diff)
Replace //homogenize with //replaceinverse (//homogenize x is equivalent to //replaceinverse air x), add documentation for it.
Diffstat (limited to 'WorldEdit API.md')
-rw-r--r--WorldEdit API.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/WorldEdit API.md b/WorldEdit API.md
index 0b383ed..e033150 100644
--- a/WorldEdit API.md
+++ b/WorldEdit API.md
@@ -20,6 +20,12 @@ Replaces all instances of `searchnode` with `replacenode` in a region defined by
Returns the number of nodes replaced.
+### count = worldedit.replaceinverse(pos1, pos2, searchnode, replacenode)
+
+Replaces all nodes other than `searchnode` with `replacenode` in a region defined by positions `pos1` and `pos2`.
+
+Returns the number of nodes replaced.
+
### count = worldedit.copy(pos1, pos2, axis, amount)
Copies the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes.