]> git.lizzy.rs Git - worldedit.git/blobdiff - WorldEdit API.md
Allow to bulk-set param2 of regions (#144)
[worldedit.git] / WorldEdit API.md
index 1106fc70055d5c9de6c077550ed83154e542cb2a..8cee31ba1bf745f4efb350109da813146db25c2c 100644 (file)
@@ -27,6 +27,12 @@ Sets a region defined by positions `pos1` and `pos2` to `node_name`. To clear a
 \r
 Returns the number of nodes set.\r
 \r
+### `count = worldedit.set_param2(pos1, pos2, param2)`\r
+\r
+Sets the param2 values of all nodes in a region defined by positions `pos1` and `pos2` to `param2`.\r
+\r
+Returns the number of nodes set.\r
+\r
 ### count = worldedit.replace(pos1, pos2, searchnode, replacenode)\r
 \r
 Replaces all instances of `searchnode` with `replacenode` in a region defined by positions `pos1` and `pos2`.\r