You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation of Unified Inventory is highly recommended. If neither of these mods are installed, the WorldEdit GUI will not be available, though the rest of WorldEdit will work fine.
17
+
11
18
If you are using Windows, consider installing this mod using [MODSTER](https://forum.minetest.net/viewtopic.php?id=6497), a super simple mod installer that will take care of everything for you. If you are using MODSTER, skip directly to step 6 in the instructions below.
12
19
13
20
There is a nice installation guide over at the [Minetest Wiki](http://wiki.minetest.com/wiki/Installing_mods). Here is a short summary:
@@ -26,24 +33,30 @@ If you are having trouble, try asking for help in the [IRC channel](http://webch
26
33
27
34
Usage
28
35
-----
29
-
WorldEdit works primarily through chat commands. Depending on your key bindings, you can invoke chat entry with the "t" key, and open the chat console with the "F10" key.
36
+
WorldEdit works primarily through the WorldEdit GUI and chat commands. Depending on your key bindings, you can invoke chat entry with the "t" key, and open the chat console with the "F10" key.
37
+
38
+
WorldEdit has a huge potential for abuse by untrusted players. Therefore, users will not be able to use WorldEdit unless they have the `worldedit` privelege. This is available by default in single player, but in multiplayer the permission must be explicitly given by someone with the right credentials, using the follwoing chat command: `/grant <player name> worldedit`. This privelege can later be removed using the following chat command: `/revoke <player name> worldedit`.
30
39
31
-
WorldEdit has a huge potential for abuse by untrusted players. Therefore, users will not be able to use WorldEdit unless they have the "worldedit" privelege. This is available by default in single player, but in multiplayer the permission must be explicitly given by someone with the right credentials, using the follwoing chat command: `/grant <player name> worldedit`. This privelege can later be removed using the following chat command: `/revoke <player name> worldedit`.
40
+
Certain functions/commands such as WorldEdit GUI's "Run Lua" (equivalent to the `//lua` chat command) additionally require the `server` privilege. This is because it is extremely dangerous to give access to these commands to untrusted players, since they essentially are able to control the computer the server is running on. Give this privilege only to people you trust with your computer.
32
41
33
42
For in-game information about these commands, type `/help <command name>` in the chat. For example, to learn more about the `//copy` command, simply type `/help /copy` to display information relevant to copying a region.
34
43
35
-
Chat Commands
36
-
-------------
37
-
WorldEdit is accessed in-game through an interface. By default, the mod distribution includes a chat interface for this purpose. It is documented in the [Chat Commands Reference](Chat Commands.md).
44
+
Interface
45
+
---------
46
+
WorldEdit is accessed in-game in two main ways.
47
+
48
+
The GUI adds a screen to each player's inventory that gives access to various WorldEdit functions. The [tutorial](Tutorial.md) and the [Chat Commands Reference](Chat Commands.md) may be helpful in learning to use it.
38
49
39
-
If visual manipulation of nodes is desired, the [WorldEdit GUI](https://forum.minetest.net/viewtopic.php?id=3112) mod provides a simple interface with buttons and text entry fields for this purpose.
50
+
The chat interface adds many chat commands that perform various WorldEdit powered tasks. It is documented in the [Chat Commands Reference](Chat Commands.md).
40
51
41
52
Compatibility
42
53
-------------
43
-
This mod supports Minetest versions 0.4.8 and newer. Older versions of WorldEdit may work with older versions of Minetest, but are not recommended.
54
+
This mod supports Minetest versions 0.4.8 and newer. Older versions of WorldEdit may work with older versions of Minetest, but are not recommended or supported.
44
55
45
56
WorldEdit works quite well with other mods, and does not have any known mod conflicts.
46
57
58
+
WorldEdit GUI requires either [Unified Inventory](https://forum.minetest.net/viewtopic.php?id=3933) or [Inventory++](https://forum.minetest.net/viewtopic.php?id=6204) to be installed in order to use it. This is optional but highly recommended.
59
+
47
60
WorldEdit API
48
61
-------------
49
62
WorldEdit exposes all significant functionality in a simple Lua interface. Adding WorldEdit to the file "depends.txt" in your mod gives you access to all of the `worldedit` functions. The API is useful for tasks such as high-performance node manipulation, alternative interfaces, and map creation.
@@ -58,11 +71,13 @@ This API is documented in the [WorldEdit API Reference](WorldEdit API.md).
58
71
59
72
Axes
60
73
----
61
-
The coordinate system is the same as that used by MineTest; Y is upwards, X is perpendicular, and Z is parallel.
74
+
The coordinate system is the same as that used by Minetest; positive Y is upwards, positive X is rightwards, and positive Z is forwards, if a player is facing North (positive Z axis).
75
+
76
+
When an axis is specified in a WorldEdit chat command, it is specified as one of the following values: `x`, `y`, `z`, or `?`.
62
77
63
-
When an axis is specified in a WorldEdit command, it is specified as one of the following values: x, y, z, or ?.
78
+
In the GUI, there is a dropdown menu for this purpose. The "Look direction" option has the same effect as `?` does in chat commands.
64
79
65
-
The value ? represents the axis the player is currently facing. If the player is facing more than one axis, the axis the player face direction is closest to will be used.
80
+
The value `?` represents the axis the player is currently facing. If the player is facing more than one axis, the axis the player face direction is closest to will be used.
66
81
67
82
Nodes
68
83
-----
@@ -111,7 +126,7 @@ The current version of the WorldEdit Schematic format, internally known as versi
111
126
<...>
112
127
}
113
128
114
-
Value ordering and minor aspects of the syntax, such as trailing commas or newlines, are not guaranteed.
129
+
The ordering of the values and minor aspects of the syntax, such as trailing commas or newlines, are not guaranteed to stay the same in future versions.
115
130
116
131
The WorldEdit Schematic format is accessed via the WorldEdit API, or WorldEdit serialization chat commands such as `//serialize` and `//deserialize`.
Copy file name to clipboardExpand all lines: Tutorial.md
+69-3
Original file line number
Diff line number
Diff line change
@@ -9,27 +9,51 @@ Let's start with a few assumptions:
9
9
* You have WorldEdit installed as a mod.
10
10
* If using Windows, [MODSTER](https://forum.minetest.net/viewtopic.php?pid=101463) makes installing mods totally painless.
11
11
* Simply download the file, extract the archive, and move it to the correct mod folder for Minetest.
12
+
* If you want to use the WorldEdit GUI, you have installed either [Unified Inventory](https://forum.minetest.net/viewtopic.php?id=3933) (recommended), or [Inventory++](https://forum.minetest.net/viewtopic.php?id=6204).
13
+
* See the installation instructions in [README](README.md) if you need more details.
12
14
* You are familiar with the basics of the game.
13
15
* How to walk, jump, and climb.
14
16
* How to dig, place, and punch blocks.
15
-
* How to type into the chat and read text from it.
17
+
* One of the following:
18
+
* How to type into the chat and read text from it.
19
+
* How to open the inventory screen and press buttons on it.
16
20
17
21
Overview
18
22
--------
19
23
WorldEdit has a "region", which is simply a cuboid area defined by two markers, both of which the player can move around. Every player can have their own region with their own two markers.
20
24
21
-
WorldEdit chat commands can work inside the region selected, or around the first marker.
25
+
WorldEdit GUI buttons and chat commands generally work inside the region selected, or around the first marker.
26
+
27
+
If you are using the chat commands, follow the steps under **Chat Commands**. If you are using the WorldEdit GUI, follow the steps under **WorldEdit GUI**.
22
28
23
29
Step 1: Selecting a region
24
30
--------------------------
31
+
### Chat Commands
32
+
25
33
In the chat prompt, enter `//p set`. In the chat, you are prompted to punch two nodes to set the positions of the two markers.
26
34
27
35
Punch a nearby node. Be careful of breakable ones such as torches. A black cube reading "1" will appear around the node. This is the marker for WorldEdit position 1.
28
36
29
37
Walk away from the node you just punched. Now, punch another node. A black cube reading "2" will appear around the node. This is the marker for WorldEdit position 2.
30
38
39
+
### WorldEdit GUI
40
+
41
+
Open the main WorldEdit GUI from your inventory screen.
42
+
43
+
Press the "Get/Set Positions" button. On the new screen, press the "Set Position 1" button. The inventory screen should close.
44
+
45
+
Punch a nearby node. Be careful of breakable ones such as torches. A black cube reading "1" will appear around the node. This is the marker for WorldEdit position 1.
46
+
47
+
Walk away from the node you just punched. Open your inventory again. It should be on the same page as it was before.
48
+
49
+
Press the "Set Position 2" button. The inventory screen should close.
50
+
51
+
Now, punch another node. A black cube reading "2" will appear around the node. This is the marker for WorldEdit position 2.
52
+
31
53
Step 2: Region commands
32
54
-----------------------
55
+
### Chat Commands
56
+
33
57
In the chat prompt, enter `//set mese`. In the chat, you will see a message showing the number of nodes set after a small delay.
34
58
35
59
Look at the place between the two markers: it is now filled with MESE blocks!
@@ -38,18 +62,60 @@ The `//set <node>` command fills the region with whatever node you want. It is a
38
62
39
63
Now, try a few different variations, such as `//set torch`, `//set cobble`, and `//set water`.
40
64
65
+
### WorldEdit GUI
66
+
67
+
Open the main WorldEdit GUI from your inventory screen.
68
+
69
+
Press the "Set Nodes" button. You should see a new screen with various options for setting nodes.
70
+
71
+
Enter "mese" in the "Name" field. Press Search if you would like to see what the node you just entered looks like.
72
+
73
+
Press the "Set Nodes" button on this screen. In the chat, you will see a message showing the number of nodes set after a small delay.
74
+
75
+
Look at the place between the two markers: it is now filled with MESE blocks!
76
+
77
+
The "Set Nodes" function fills the region with whatever node you want. It is a region-oriented command, which means it works inside the WorldEdit region only.
78
+
79
+
Now, try a few different variations on the node name, such as "torch", "cobble", and "water".
80
+
41
81
Step 3: Position commands
42
82
-------------------------
83
+
### Chat Commands
84
+
43
85
In the chat prompt, enter `//hollowdome 30 glass`. In the chat, you will see a message showing the number of nodes set after a small delay.
44
86
45
87
Look around marker 1: it is now surrounded by a hollow glass dome!
46
88
47
89
The `//hollowdome <radius> <node>` command creates a hollow dome centered around marker 1, made of any node you want. It is a position-oriented command, which means it works around marker 1 and can go outside the WorldEdit region.
48
90
91
+
### WorldEdit GUI
92
+
93
+
Open the main WorldEdit GUI from your inventory screen.
94
+
95
+
Press the "Sphere/Dome" button. You should see a new screen with various options for making spheres or domes.
96
+
97
+
Enter "glass" in the "Name" field. Press Search if you would like to see what the node you just entered looks like.
98
+
99
+
Enter "30" in the "Radius" field.
100
+
101
+
Press the "Hollow Dome" button on this screen. In the chat, you will see a message showing the number of nodes added after a small delay.
102
+
103
+
Look around marker 1: it is now surrounded by a hollow glass dome!
104
+
105
+
The "Hollow Dome" function creates a hollow dome centered around marker 1, made of any node you want. It is a position-oriented command, which means it works around marker 1 and can go outside the WorldEdit region.
106
+
49
107
Step 4: Other commands
50
108
----------------------
109
+
### Chat Commands
110
+
51
111
There are many more commands than what is shown here. See the [Chat Commands Reference](Chat Commands.md) for a detailed list of them, along with descriptions and examples for every single one.
52
112
53
113
If you're in-game and forgot how a command works, just use the `/help <command name>` command, without the first forward slash. For example, to see some information about the `//set <node>` command mentioned earlier, simply use `/help /set`.
54
114
55
-
A very useful command to check out is the `//save <schematic>` command, which can save everything inside the WorldEdit region to a file, stored on the computer hosting the server (the player's computer, in single player mode). You can then later use `//load <schematic>` to load the data in a file into a world, even another world on another computer.
115
+
A very useful command to check out is the `//save <schematic>` command, which can save everything inside the WorldEdit region to a file, stored on the computer hosting the server (the player's computer, in single player mode). You can then later use `//load <schematic>` to load the data in a file into a world, even another world on another computer.
116
+
117
+
### WorldEdit GUI
118
+
119
+
This only scratches the surface of what WorldEdit is capable of. Most of the functions in the WorldEdit GUI correspond to chat commands, and so the [Chat Commands Reference](Chat Commands.md) may be useful if you get stuck.
120
+
121
+
It is helpful to explore the various buttons in the interface and check out what they do. Learning the chat command interface is also useful if you use WorldEdit intensively - an experienced chat command user can usually work faster than an experienced WorldEdit GUI user.
0 commit comments