Minetest-WorldEdit/Chat Commands.md

379 lines
10 KiB
Markdown
Raw Normal View History

Chat Commands
-------------
For more information, see the [README](README.md).
2014-10-24 21:27:41 +02:00
Many commands also have shorter names that can be typed faster. For example,
if we wanted to use `/we-move ? 5`, we could instead type `/m ? 5`.
All shortened names are listed below:
| Short Name | Original Name |
|:-----------|:--------------------|
| `i` | `we-inspect` |
| `rst` | `we-reset` |
| `mk` | `we-mark` |
| `umk` | `we-unmark` |
| `1` | `we-pos1` |
| `2` | `we-pos2` |
| `fp` | `we-fixedpos` |
| `v` | `we-volume` |
| `s` | `we-set` |
| `r` | `we-replace` |
| `ri` | `we-replaceinverse` |
| `hspr` | `we-hollowsphere` |
| `spr` | `we-sphere` |
| `hdo` | `we-hollowdome` |
| `do` | `we-dome` |
| `hcyl` | `we-hollowcylinder` |
### `/we-about`
2013-08-29 02:28:49 +02:00
Get information about the mod.
2014-10-24 21:27:41 +02:00
/we-about
2013-08-29 02:28:49 +02:00
2014-10-24 21:27:41 +02:00
### `/we-inspect on/off/1/0/true/false/yes/no/enable/disable/<blank>`
Enable or disable node inspection.
2014-10-24 21:27:41 +02:00
/we-inspect on
/we-inspect off
/we-inspect 1
/we-inspect 0
/we-inspect true
/we-inspect false
/we-inspect yes
/we-inspect no
/we-inspect enable
/we-inspect disable
/we-inspect
2014-10-24 21:27:41 +02:00
### `/we-reset`
Reset the region so that it is empty.
2014-10-24 21:27:41 +02:00
/we-reset
2014-10-24 21:27:41 +02:00
### `/we-mark`
Show markers at the region positions.
2014-10-24 21:27:41 +02:00
/we-mark
2014-10-24 21:27:41 +02:00
### `/we-unmark`
Hide markers if currently shown.
2014-10-24 21:27:41 +02:00
/we-unmark
2014-10-24 21:27:41 +02:00
### `/we-pos1`
Set WorldEdit region position 1 to the player's location.
2014-10-24 21:27:41 +02:00
/we-pos1
2014-10-24 21:27:41 +02:00
### `/we-pos2`
Set WorldEdit region position 2 to the player's location.
2014-10-24 21:27:41 +02:00
/we-pos2
2014-10-24 21:27:41 +02:00
### `/we-p set/set1/set2/get`
Set WorldEdit region, WorldEdit position 1, or WorldEdit position 2 by punching nodes, or display the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-p set
/we-p set1
/we-p set2
/we-p get
2014-10-24 21:27:41 +02:00
### `/we-fixedpos set1 x y z`
2014-01-28 20:14:36 +01:00
Set a WorldEdit region position to the position at (`<x>`, `<y>`, `<z>`).
2014-10-24 21:27:41 +02:00
/we-fixedpos set1 0 0 0
/we-fixedpos set1 -30 5 28
/we-fixedpos set2 1004 -200 432
2014-10-24 21:27:41 +02:00
### `/we-volume`
Display the volume of the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-volume
2014-10-24 21:27:41 +02:00
### `/we-set <node>`
Set the current WorldEdit region to `<node>`.
2014-10-24 21:27:41 +02:00
/we-set air
/we-set cactus
/we-set Blue Lightstone
/we-set dirt with grass
2014-10-24 21:27:41 +02:00
### `/we-mix <node1> ...`
Fill the current WorldEdit region with a random mix of `<node1>`, `...`.
2014-10-24 21:27:41 +02:00
/we-mix air
/we-mix cactus stone glass sandstone
/we-mix Bronze
/we-mix default:cobble air
2014-10-24 21:27:41 +02:00
### `/we-replace <search node> <replace node>`
2014-01-28 20:14:36 +01:00
Replace all instances of `<search node>` with `<replace node>` in the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-replace Cobblestone air
/we-replace lightstone_blue glass
/we-replace dirt Bronze Block
/we-replace mesecons:wire_00000000_off flowers:flower_tulip
2014-10-24 21:27:41 +02:00
### `/we-replaceinverse <search node> <replace node>`
2014-01-28 20:14:36 +01:00
Replace all nodes other than `<search node>` with `<replace node>` in the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-replaceinverse Cobblestone air
/we-replaceinverse flowers:flower_waterlily glass
/we-replaceinverse dirt Bronze Block
/we-replaceinverse mesecons:wire_00000000_off flowers:flower_tulip
2014-10-24 21:27:41 +02:00
### `/we-hollowsphere <radius> <node>`
2014-01-28 20:14:36 +01:00
Add hollow sphere centered at WorldEdit position 1 with radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-hollowsphere 5 Diamond Block
/we-hollowsphere 12 glass
/we-hollowsphere 17 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-sphere <radius> <node>`
2014-01-28 20:14:36 +01:00
Add sphere centered at WorldEdit position 1 with radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-sphere 5 Diamond Block
/we-sphere 12 glass
/we-sphere 17 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-hollowdome <radius> <node>`
2014-01-28 20:14:36 +01:00
Add hollow dome centered at WorldEdit position 1 with radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-hollowdome 5 Diamond Block
/we-hollowdome -12 glass
/we-hollowdome 17 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-dome <radius> <node>`
2014-01-28 20:14:36 +01:00
Add dome centered at WorldEdit position 1 with radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-dome 5 Diamond Block
/we-dome -12 glass
/we-dome 17 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-hollowcylinder x/y/z/? <length> <radius> <node>`
2014-01-28 20:14:36 +01:00
Add hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length `<length>` and radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-hollowcylinder x +5 8 Bronze Block
/we-hollowcylinder y 28 10 glass
/we-hollowcylinder z -12 3 mesecons:wire_00000000_off
/we-hollowcylinder ? 2 4 default:stone
2014-10-24 21:27:41 +02:00
### `/we-cylinder x/y/z/? <length> <radius> <node>`
2014-01-28 20:14:36 +01:00
Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length `<length>` and radius `<radius>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-cylinder x +5 8 Bronze Block
/we-cylinder y 28 10 glass
/we-cylinder z -12 3 mesecons:wire_00000000_off
/we-cylinder ? 2 4 default:stone
2014-10-24 21:27:41 +02:00
### `/we-pyramid x/y/z? <height> <node>`
2014-01-28 20:14:36 +01:00
Add pyramid centered at WorldEdit position 1 along the x/y/z/? axis with height `<height>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-pyramid x 8 Diamond Block
/we-pyramid y -5 glass
/we-pyramid z 2 mesecons:wire_00000000_off
/we-pyramid ? 12 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-spiral <length> <height> <spacer> <node>`
2014-01-28 20:14:36 +01:00
Add spiral centered at WorldEdit position 1 with side length `<length>`, height `<height>`, space between walls `<spacer>`, composed of `<node>`.
2014-10-24 21:27:41 +02:00
/we-spiral 20 5 3 Diamond Block
/we-spiral 5 2 1 glass
/we-spiral 7 1 5 mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-copy x/y/z/? <amount>`
2014-01-28 20:14:36 +01:00
Copy the current WorldEdit region along the x/y/z/? axis by `<amount>` nodes.
2014-10-24 21:27:41 +02:00
/we-copy x 15
/we-copy y -7
/we-copy z +4
/we-copy ? 8
2014-10-24 21:27:41 +02:00
### `/we-move x/y/z/? <amount>`
2014-01-28 20:14:36 +01:00
Move the current WorldEdit positions and region along the x/y/z/? axis by `<amount>` nodes.
2014-10-24 21:27:41 +02:00
/we-move x 15
/we-move y -7
/we-move z +4
/we-move ? -1
2014-10-24 21:27:41 +02:00
### `/we-stack x/y/z/? <count>`
2014-01-28 20:14:36 +01:00
Stack the current WorldEdit region along the x/y/z/? axis `<count>` times.
2014-10-24 21:27:41 +02:00
/we-stack x 3
/we-stack y -1
/we-stack z +5
/we-stack ? 12
2014-10-24 21:27:41 +02:00
### `/we-stack2 <count> <x> <y> <z>`
Stack the current WorldEdit region `<count>` times by offset `<x>`, `<y>`, `<z>`.
2014-10-24 21:27:41 +02:00
/we-stack2 5 3 8 2
/we-stack2 1 -1 -1 -1
2014-10-24 21:27:41 +02:00
### `/we-scale <factor>`
2014-01-28 20:14:36 +01:00
Scale the current WorldEdit positions and region by a factor of positive integer `<factor>` with position 1 as the origin.
2014-10-24 21:27:41 +02:00
/we-scale 2
/we-scale 1
/we-scale 10
2014-10-24 21:27:41 +02:00
### `/we-transpose x/y/z/? x/y/z/?`
Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes.
2014-10-24 21:27:41 +02:00
/we-transpose x y
/we-transpose x z
/we-transpose y z
/we-transpose ? y
2014-10-24 21:27:41 +02:00
### `/we-flip x/y/z/?`
Flip the current WorldEdit region along the x/y/z/? axis.
2014-10-24 21:27:41 +02:00
/we-flip x
/we-flip y
/we-flip z
/we-flip ?
2014-10-24 21:27:41 +02:00
### `/we-rotate x/y/z/? <angle>`
2014-01-28 20:14:36 +01:00
Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle `<angle>` (90 degree increment).
2014-10-24 21:27:41 +02:00
/we-rotate x 90
/we-rotate y 180
/we-rotate z 270
/we-rotate ? -90
2014-10-24 21:27:41 +02:00
### `/we-orient <angle>`
2014-01-28 20:14:36 +01:00
Rotate oriented nodes in the current WorldEdit region around the Y axis by angle `<angle>` (90 degree increment)
2014-10-24 21:27:41 +02:00
/we-orient 90
/we-orient 180
/we-orient 270
/we-orient -90
2014-10-24 21:27:41 +02:00
### `/we-fixlight`
Fixes the lighting in the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-fixlight
2014-10-24 21:27:41 +02:00
### `/we-hide`
Hide all nodes in the current WorldEdit region non-destructively.
2014-10-24 21:27:41 +02:00
/we-hide
2014-10-24 21:27:41 +02:00
### `/we-suppress <node>`
Suppress all <node> in the current WorldEdit region non-destructively.
2014-10-24 21:27:41 +02:00
/we-suppress Diamond Block
/we-suppress glass
/we-suppress mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-highlight <node>`
Highlight <node> in the current WorldEdit region by hiding everything else non-destructively.
2014-10-24 21:27:41 +02:00
/we-highlight Diamond Block
/we-highlight glass
/we-highlight mesecons:wire_00000000_off
2014-10-24 21:27:41 +02:00
### `/we-restore`
Restores nodes hidden with WorldEdit in the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-restore
2014-10-24 21:27:41 +02:00
### `/we-save <file>`
2014-01-28 20:14:36 +01:00
Save the current WorldEdit region to "(world folder)/schems/`<file>`.we".
2014-10-24 21:27:41 +02:00
/we-save some random filename
/we-save huge_base
2014-10-24 21:27:41 +02:00
### `/we-allocate <file>`
2014-01-28 20:14:36 +01:00
Set the region defined by nodes from "(world folder)/schems/`<file>`.we" as the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-allocate some random filename
/we-allocate huge_base
2014-10-24 21:27:41 +02:00
### `/we-load <file>`
2014-01-28 20:14:36 +01:00
Load nodes from "(world folder)/schems/`<file>`.we" with position 1 of the current WorldEdit region as the origin.
2014-10-24 21:27:41 +02:00
/we-load some random filename
/we-load huge_base
2014-10-24 21:27:41 +02:00
### `/we-lua <code>`
2014-01-28 20:14:36 +01:00
Executes `<code>` as a Lua chunk in the global namespace.
2014-10-24 21:27:41 +02:00
/we-lua worldedit.pos1["singleplayer"] = {x=0, y=0, z=0}
/we-lua worldedit.rotate(worldedit.pos1["singleplayer"], worldedit.pos2["singleplayer"], "y", 90)
2014-10-24 21:27:41 +02:00
### `/we-luatransform <code>`
2014-01-28 20:14:36 +01:00
Executes `<code>` as a Lua chunk in the global namespace with the variable pos available, for each node in the current WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-luatransform minetest.add_node(pos, {name="default:stone"})
/we-luatransform if minetest.get_node(pos).name == "air" then minetest.add_node(pos, {name="default:water_source"})
2014-10-24 21:27:41 +02:00
### `/we-mtschemcreate <file>`
2014-01-28 20:14:36 +01:00
Save the current WorldEdit region using the Minetest Schematic format to "(world folder)/schems/`<file>`.mts".
2014-10-24 21:27:41 +02:00
/we-mtschemcreate some random filename
/we-mtschemcreate huge_base
2014-10-24 21:27:41 +02:00
### `/we-mtschemplace <file>`
2014-01-28 20:14:36 +01:00
Load nodes from "(world folder)/schems/`<file>`.mts" with position 1 of the current WorldEdit region as the origin.
2014-10-24 21:27:41 +02:00
/we-mtschemplace some random filename
/we-mtschemplace huge_base
2014-10-24 21:27:41 +02:00
### `/we-mtschemprob start/finish/get`
2014-10-24 21:27:41 +02:00
After using `/we-mtschemprob start` all nodes punched will bring up a text field where a probablity can be entered.
This mode can be left with `/we-mtschemprob finish`. `/we-mtschemprob get` will display the probabilities saved for the nodes.
2014-10-24 21:27:41 +02:00
/we-mtschemprob get
2014-10-24 21:27:41 +02:00
### `/we-clearobjects`
Clears all objects within the WorldEdit region.
2014-10-24 21:27:41 +02:00
/we-clearobjects