Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cfe1562

Browse files
committedSep 12, 2017
WorldEdit 1.2
1 parent f7ec5e4 commit cfe1562

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed
 

‎README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
WorldEdit v1.1 for Minetest 0.4.8+
2-
==================================
1+
WorldEdit v1.2
2+
==============
33
The ultimate in-game world editing tool for [Minetest](http://minetest.net/)! Tons of functionality to help with building, fixing, and more.
44

55
For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?id=572) at the Minetest forums.
@@ -33,7 +33,7 @@ WorldEdit works primarily through the WorldEdit GUI and chat commands. Depending
3333

3434
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`.
3535

36-
Certain functions/commands such as WorldEdit GUI's "Run Lua" function (equivalent to the `//lua` and `//luatransform` 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.
36+
Certain functions/commands such as WorldEdit `//lua` and `//luatransform` chat commands 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.
3737

3838
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.
3939

@@ -51,21 +51,19 @@ This mod supports Minetest versions 0.4.8 and newer. Older versions of WorldEdit
5151

5252
WorldEdit works quite well with other mods, and does not have any known mod conflicts.
5353

54-
WorldEdit GUI works with [Unified Inventory](https://forum.minetest.net/viewtopic.php?id=3933) and [Inventory++](https://forum.minetest.net/viewtopic.php?id=6204), but these are not required to use the mod.
54+
WorldEdit GUI requires one of [sfinv](https://github.com/minetest/minetest_game/tree/master/mods/sfinv) (included in minetest_game since 0.4.15), [Unified Inventory](https://forum.minetest.net/viewtopic.php?id=3933) or [Inventory++](https://forum.minetest.net/viewtopic.php?id=6204).
5555

5656
If you use any other inventory manager mods, note that they may conflict with the WorldEdit GUI. If this is the case, it may be necessary to disable them.
5757

5858
WorldEdit API
5959
-------------
60-
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.
60+
WorldEdit exposes all significant functionality in a simple Lua interface.
6161

62-
If you don't add WorldEdit to your "depends.txt" file, each file in the WorldEdit mod is also independent. For example, one may import the WorldEdit primitives API using the following code:
63-
64-
dofile(minetest.get_modpath("worldedit").."/primitives.lua")
62+
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.
6563

6664
AGPLv3 compatible mods may further include WorldEdit files in their own mods. This may be useful if a modder wishes to completely avoid any dependencies on WorldEdit. Note that it is required to give credit to the authors.
6765

68-
This API is documented in the [WorldEdit API Reference](WorldEdit API.md).
66+
This API is documented in the [WorldEdit API Reference](WorldEdit%20API.md).
6967

7068
Axes
7169
----
@@ -141,9 +139,13 @@ WorldEdit would not be possible without the contributions of many developers and
141139
cheapie
142140
cornernote
143141
cyisfor
142+
danierukun
144143
electricface
144+
est31
145145
kaeza
146146
khonkhortisan
147+
pickardjoe
148+
Sebastien Ponce
147149
sfan5
148150
ShadowNinja
149151
spillz
@@ -156,5 +158,4 @@ Copyright 2013 sfan5, Anthony Zhang (Uberi/Temperest), and Brett O'Donnell (corn
156158
This mod is licensed under the [GNU Affero General Public License](http://www.gnu.org/licenses/agpl-3.0.html).
157159

158160
Basically, this means everyone is free to use, modify, and distribute the files, as long as these modifications are also licensed the same way.
159-
160161
Most importantly, the Affero variant of the GPL requires you to publish your modifications in source form, even if the mod is run only on the server, and not distributed.

‎worldedit/init.lua

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
--- Worldedit.
22
-- @module worldedit
3-
-- @release 1.1
3+
-- @release 1.2
44
-- @copyright 2013 sfan5, Anthony Zhang (Uberi/Temperest), and Brett O'Donnell (cornernote).
55
-- @license GNU Affero General Public License version 3 (AGPLv3)
66
-- @author sfan5
77
-- @author Anthony Zang (Uberi/Temperest)
88
-- @author Bret O'Donnel (cornernote)
99
-- @author ShadowNinja
1010

11+
1112
worldedit = {}
12-
worldedit.version = {1, 1, major=1, minor=1}
13-
worldedit.version_string = table.concat(worldedit.version, ".")
13+
14+
local ver = {major=1, minor=2}
15+
worldedit.version = ver
16+
worldedit.version_string = string.format("%d.%d", ver.major, ver.minor)
1417

1518
if not minetest.get_voxel_manip then
1619
local err_msg = "This version of WorldEdit requires Minetest 0.4.8 or later! You have an old version."

0 commit comments

Comments
 (0)
Please sign in to comment.