1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-03 00:20:39 +02:00

Replace //homogenize with //replaceinverse (//homogenize x is equivalent to //replaceinverse air x), add documentation for it.

This commit is contained in:
Anthony Zhang
2013-01-12 18:29:57 -05:00
parent e2f1c4ef17
commit 7cf84045d4
4 changed files with 64 additions and 9 deletions

View File

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