]> git.lizzy.rs Git - worldedit.git/blobdiff - Chat Commands.md
Support negative values to make upside-down domes and pyramids (slight changes to...
[worldedit.git] / Chat Commands.md
index bfca8bfd714ca3ad3e1963bd0d9657dadf12f20f..d27ebfcc9d9f03f4a312f4bdef2f4d2810988023 100644 (file)
@@ -2,6 +2,21 @@ Chat Commands
 -------------\r
 For more information, see the [README](README.md).\r
 \r
+### //inspect\r
+\r
+Enable or disable node inspection.\r
+\r
+    //inspect on\r
+    //inspect off\r
+    //inspect 1\r
+    //inspect 0\r
+    //inspect true\r
+    //inspect false\r
+    //inspect yes\r
+    //inspect no\r
+    //inspect enable\r
+    //inspect disable\r
+\r
 ### //reset\r
 \r
 Reset the region so that it is empty.\r
@@ -14,6 +29,12 @@ Show markers at the region positions.
 \r
     //mark\r
 \r
+### //unmark\r
+\r
+Hide markers if currently shown.\r
+\r
+    //unmark\r
+\r
 ### //pos1\r
 \r
 Set WorldEdit region position 1 to the player's location.\r
@@ -35,6 +56,14 @@ Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching
     //p set2\r
     //p get\r
 \r
+### //fixedpos set1 x y z\r
+\r
+Set a WorldEdit region position to the position at (<x>, <y>, <z>).\r
+\r
+    //fixedpos set1 0, 0, 0\r
+    //fixedpos set1 -30, 5, 28\r
+    //fixedpos set2 1004, -200, 432\r
+\r
 ### //volume\r
 \r
 Display the volume of the current WorldEdit region.\r
@@ -45,68 +74,94 @@ Display the volume of the current WorldEdit region.
 \r
 Set the current WorldEdit region to <node>.\r
 \r
-    //set dirt\r
-    //set default:glass\r
-    //set mesecons:mesecon\r
+    //set air\r
+    //set cactus\r
+    //set Bronze Block\r
+    //set mesecons:wire_00000000_off\r
 \r
 ### //replace <search node> <replace node>\r
 \r
-Replace all instances of <search node> with <place node> in the current WorldEdit region.\r
+Replace all instances of <search node> with <replace node> in the current WorldEdit region.\r
 \r
-    //replace cobble stone\r
-    //replace default:steelblock glass\r
-    //replace dirt flowers:flower_waterlily\r
-    //replace flowers:flower_rose flowers:flower_tulip\r
+    //replace Cobblestone air\r
+    //replace lightstone_blue glass\r
+    //replace dirt Bronze Block\r
+    //replace mesecons:wire_00000000_off flowers:flower_tulip\r
+\r
+### //replaceinverse <search node> <replace node>\r
+\r
+Replace all nodes other than <search node> with <replace node> in the current WorldEdit region.\r
+\r
+    //replaceinverse Cobblestone air\r
+    //replaceinverse flowers:flower_waterlily glass\r
+    //replaceinverse dirt Bronze Block\r
+    //replaceinverse mesecons:wire_00000000_off flowers:flower_tulip\r
 \r
 ### //hollowsphere <radius> <node>\r
 \r
-Add hollow sphere at WorldEdit position 1 with radius <radius>, composed of <node>.\r
+Add hollow sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
 \r
-    //hollowsphere 5 dirt\r
-    //hollowsphere 12 default:glass\r
-    //hollowsphere 17 mesecons:mesecon\r
+    //hollowsphere 5 Diamond Block\r
+    //hollowsphere 12 glass\r
+    //hollowsphere 17 mesecons:wire_00000000_off\r
 \r
 ### //sphere <radius> <node>\r
 \r
-Add sphere at WorldEdit position 1 with radius <radius>, composed of <node>.\r
+Add sphere centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
+\r
+    //sphere 5 Diamond Block\r
+    //sphere 12 glass\r
+    //sphere 17 mesecons:wire_00000000_off\r
+\r
+### //hollowdome <radius> <node>\r
+\r
+Add hollow dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
+\r
+    //hollowdome 5 Diamond Block\r
+    //hollowdome -12 glass\r
+    //hollowdome 17 mesecons:wire_00000000_off\r
+\r
+### //dome <radius> <node>\r
 \r
-    //sphere 5 dirt\r
-    //sphere 12 default:glass\r
-    //sphere 17 mesecons:mesecon\r
+Add dome centered at WorldEdit position 1 with radius <radius>, composed of <node>.\r
+\r
+    //dome 5 Diamond Block\r
+    //dome -12 glass\r
+    //dome 17 mesecons:wire_00000000_off\r
 \r
 ### //hollowcylinder x/y/z/? <length> <radius> <node>\r
 \r
 Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.\r
 \r
-    //hollowcylinder x +5 8 dirt\r
-    //hollowcylinder y 28 10 default:glass\r
-    //hollowcylinder z -12 3 mesecons:mesecon\r
-    //hollowcylinder ? 2 4 stone\r
+    //hollowcylinder x +5 8 Bronze Block\r
+    //hollowcylinder y 28 10 glass\r
+    //hollowcylinder z -12 3 mesecons:wire_00000000_off\r
+    //hollowcylinder ? 2 4 default:stone\r
 \r
 ### //cylinder x/y/z/? <length> <radius> <node>\r
 \r
 Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length> and radius <radius>, composed of <node>.\r
 \r
-    //cylinder x +5 8 dirt\r
-    //cylinder y 28 10 default:glass\r
-    //cylinder z -12 3 mesecons:mesecon\r
-    //cylinder ? 2 4 stone\r
+    //cylinder x +5 8 Bronze Block\r
+    //cylinder y 28 10 glass\r
+    //cylinder z -12 3 mesecons:wire_00000000_off\r
+    //cylinder ? 2 4 default:stone\r
     \r
-### //pyramid <height> <node>\r
+### //pyramid x/y/z? <height> <node>\r
 \r
-Add pyramid at WorldEdit position 1 with height <height>, composed of <node>.\r
+Add pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height <height>, composed of <node>.\r
 \r
-    //pyramid 8 dirt\r
-    //pyramid 5 default:glass\r
-    //pyramid 2 stone\r
+    //pyramid 8 Diamond Block\r
+    //pyramid 5 glass\r
+    //pyramid 2 mesecons:wire_00000000_off\r
 \r
 ### //spiral <width> <height> <spacer> <node>\r
 \r
-Add spiral at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.\r
+Add spiral centered at WorldEdit position 1 with width <width>, height <height>, space between walls <spacer>, composed of <node>.\r
 \r
-    //spiral 20 5 3 dirt\r
-    //spiral 5 2 1 default:glass\r
-    //spiral 7 1 5 stone\r
+    //spiral 20 5 3 Diamond Block\r
+    //spiral 5 2 1 glass\r
+    //spiral 7 1 5 mesecons:wire_00000000_off\r
 \r
 ### //copy x/y/z/? <amount>\r
 \r
@@ -135,6 +190,14 @@ Stack the current WorldEdit region along the x/y/z/? axis <count> times.
     //stack z +5\r
     //stack ? 12\r
 \r
+### //scale <factor>\r
+\r
+Scale the current WorldEdit positions and region by a factor of positive integer <factor> with position 1 as the origin.\r
+\r
+    //scale 2\r
+    //scale 1\r
+    //scale 10\r
+\r
 ### //transpose x/y/z/? x/y/z/?\r
 \r
 Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.\r
@@ -148,10 +211,10 @@ Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z
 \r
 Flip the current WorldEdit region along the x/y/z/? axis.\r
 \r
-   //flip x\r
-   //flip y\r
-   //flip z\r
-   //flip ?\r
+    //flip x\r
+    //flip y\r
+    //flip z\r
+    //flip ?\r
 \r
 ### //rotate x/y/z/? <angle>\r
 \r
@@ -177,7 +240,7 @@ Fixes the lighting in the current WorldEdit region.
 \r
     //fixlight\r
 \r
-## //hide\r
+### //hide\r
 \r
 Hide all nodes in the current WorldEdit region non-destructively.\r
 \r
@@ -187,17 +250,17 @@ Hide all nodes in the current WorldEdit region non-destructively.
 \r
 Suppress all <node> in the current WorldEdit region non-destructively.\r
 \r
-    //suppress dirt\r
-    //suppress default:glass\r
-    //suppress mesecons:mesecon\r
+    //suppress Diamond Block\r
+    //suppress glass\r
+    //suppress mesecons:wire_00000000_off\r
 \r
 ### //highlight <node>\r
 \r
 Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.\r
 \r
-    //highlight dirt\r
-    //highlight default:glass\r
-    //highlight mesecons:mesecon\r
+    //highlight Diamond Block\r
+    //highlight glass\r
+    //highlight mesecons:wire_00000000_off\r
 \r
 ### //restore\r
 \r
@@ -226,16 +289,43 @@ Load nodes from "(world folder)/schems/<file>.we" with position 1 of the current
     //load some random filename\r
     //load huge_base\r
 \r
-### //metasave <file>\r
+### //lua <code>\r
+\r
+Executes <code> as a Lua chunk in the global namespace.\r
+\r
+    //lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}\r
+    //lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)\r
+\r
+### //luatransform <code>\r
+\r
+Executes <code> as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.\r
+\r
+    //luatransform minetest.add_node(pos, {name="default:stone"})\r
+    //luatransform if minetest.get_node(pos).name == "air" then minetest.env:add_node(pos, {name="default:water_source"})\r
+\r
+### //mtschemcreate <file>\r
+\r
+Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/<file>.mts".\r
+\r
+    //mtschemcreate some random filename\r
+    //mtschemcreate huge_base\r
+\r
+### //mtschemplace <file>\r
+\r
+Load nodes from "(world folder)/schems/<file>.mts" with position 1 of the current WorldEdit region as the origin.\r
+\r
+    //mtschemplace some random filename\r
+    //mtschemplace huge_base\r
+\r
+### //mtschemprob start/finish/get\r
 \r
-Save the current WorldEdit region including metadata to "(world folder)/schems/<file>.wem".\r
+After using //mtschemprob start all nodes punched will bring up a text field where a probablity can be entered.\r
+This mode can be left with //mtschemprob finish. //mtschemprob get will display the probabilities saved for the nodes.\r
 \r
-    //metasave some random filename\r
-    //metasave huge_base\r
+    //mtschemprob get\r
 \r
-### //metaload <file>\r
+### //clearobjects\r
 \r
-Load nodes and metadata from "(world folder)/schems/<file>.wem" with position 1 of the current WorldEdit region as the origin.\r
+Clears all objects within the WorldEdit region.\r
 \r
-    //metaload some random filename\r
-    //metaload huge_base
\ No newline at end of file
+    //clearobjects\r