[Modpack] WorldEdit [worldedit]
-
- Moderator
- Posts: 4115
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
[Modpack] WorldEdit [worldedit]
WorldEdit is an in-game world editor. Use it to repair griefing, or just create awesome buildings in seconds.
License: GNU AGPL v3
Basically, this means everyone is free to use, modify, and distribute the mod, as long as modifications are also licensed the same way.
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.
Dependencies: none
GitHub: https://github.com/Uberi/Minetest-WorldEdit
Download
WorldEdit aims to be Rolling Release which means you can rely on the latest state of development working correctly. This is the preferred way of installation.
You can download a git snapshot here: ZIP file
If you for some reason prefer to have a "stable" version, please check below:
WorldEdit 1.3: ZIP file (release notes)
You can find older releases on Github.
Historic code snapshots (before 0.5) can be viewed here: https://github.com/Uberi/Minetest-World ... s/historic Setup instrutions
Enable the whole modpack from either the Main Menu or by editing world.mt.
Just grant the “worldedit” privilege to yourself or another player.
/grant <name> worldedit
Usage instructions
List of commands
If you're just beginning, take a look at the official tutorial.
The old tutorial can be found below, it's shorter and only explains the base concepts. Selecting a region
Type //p set and punch the two edges like in the image below.
OR
Go to the first position and type //pos1
Go to the second position and type //pos2
OR
Type //fixedpos set1 <x> <y> <z> with the coordinates for P1.
Type //fixedpos set2 <x> <y> <z> with the coordinates for P2.
Filling a region
Type //set blockname and wait for “x Blocks set”
Replacing blocks
Type //replace blockname1 blockname2 and wait for "x Blocks replaced"
Stacking the selection
Type //stack direction amount and wait for "x Blocks stacked"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You need to use a negative amount if you want to stack backwards
Moving the selection
Type //move direction amount and wait for "x Blocks moved"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You need to use a negative amount if you want to move backwards
Copying the selection
Type //copy direction amount and wait for "x Blocks copied"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You must use a negative amount if you want to copy backwards
Saving the selected nodes into a schematic file
Type //save filename and wait for "x Blocks saved"
The File is located in the world folder in the directory schems
Supports loading old and new WorldEdit Format!
Importing nodes from a schematic file
Type //load filename and wait for "x Blocks loaded"
The nodes will be loaded relative to P1
The File is read from the world folder in the directory schems
License: GNU AGPL v3
Basically, this means everyone is free to use, modify, and distribute the mod, as long as modifications are also licensed the same way.
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.
Dependencies: none
GitHub: https://github.com/Uberi/Minetest-WorldEdit
Download
WorldEdit aims to be Rolling Release which means you can rely on the latest state of development working correctly. This is the preferred way of installation.
You can download a git snapshot here: ZIP file
If you for some reason prefer to have a "stable" version, please check below:
WorldEdit 1.3: ZIP file (release notes)
You can find older releases on Github.
Historic code snapshots (before 0.5) can be viewed here: https://github.com/Uberi/Minetest-World ... s/historic Setup instrutions
Enable the whole modpack from either the Main Menu or by editing world.mt.
Just grant the “worldedit” privilege to yourself or another player.
/grant <name> worldedit
Usage instructions
List of commands
If you're just beginning, take a look at the official tutorial.
The old tutorial can be found below, it's shorter and only explains the base concepts. Selecting a region
Type //p set and punch the two edges like in the image below.
OR
Go to the first position and type //pos1
Go to the second position and type //pos2
OR
Type //fixedpos set1 <x> <y> <z> with the coordinates for P1.
Type //fixedpos set2 <x> <y> <z> with the coordinates for P2.
Filling a region
Type //set blockname and wait for “x Blocks set”
Replacing blocks
Type //replace blockname1 blockname2 and wait for "x Blocks replaced"
Stacking the selection
Type //stack direction amount and wait for "x Blocks stacked"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You need to use a negative amount if you want to stack backwards
Moving the selection
Type //move direction amount and wait for "x Blocks moved"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You need to use a negative amount if you want to move backwards
Copying the selection
Type //copy direction amount and wait for "x Blocks copied"
Valid Directions are: x y z ?
If the ? direction is given the current direction of the player is used.
You must use a negative amount if you want to copy backwards
Saving the selected nodes into a schematic file
Type //save filename and wait for "x Blocks saved"
The File is located in the world folder in the directory schems
Supports loading old and new WorldEdit Format!
Importing nodes from a schematic file
Type //load filename and wait for "x Blocks loaded"
The nodes will be loaded relative to P1
The File is read from the world folder in the directory schems
Last edited by sfan5 on Sat Jan 30, 2021 23:57, edited 10 times in total.
-
- Member
- Posts: 103
- Joined: Sat Dec 03, 2011 05:41
- Location: San Francisco, CA
- Contact:
When I followed your instructions, I got "permission denied" (or similar). weperms.txt created, logged in with the right name, weperms looks like
Bug?
Code: Select all
{marktraceur}
Last edited by MarkTraceur on Mon Dec 12, 2011 00:01, edited 1 time in total.
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
IRC: marktraceur on freenode
-
- Moderator
- Posts: 4115
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
Try copying weperms.txt into your current directory.MarkTraceur wrote:When I followed your instructions, I got "permission denied" (or similar). weperms.txt created, logged in with the right name, weperms looks like
Bug?Code: Select all
{marktraceur}
I'll make this better in the next version
Last edited by sfan5 on Mon Dec 12, 2011 06:19, edited 1 time in total.
-
- Member
- Posts: 103
- Joined: Sat Dec 03, 2011 05:41
- Location: San Francisco, CA
- Contact:
Awesome. Celeron added something that should make it easier:
Code: Select all
bd21f00 Add minetest.get_modpath(modname)
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode
IRC: marktraceur on freenode
-
- Moderator
- Posts: 4115
- Joined: Wed Aug 24, 2011 09:44
- GitHub: sfan5
- IRC: sfan5
- Location: Germany
We need a new dev releaseMarkTraceur wrote:Awesome. Celeron added something that should make it easier:
Code: Select all
bd21f00 Add minetest.get_modpath(modname)
Hmm.
Suggestion 1:
Suggestion 2:
Suggestion 3:
Suggestion 1:
- There's a new world subdirectory, say world/moddata.
- Define a function minetest.read_file(filename) which reads a file below world/moddata and returns its contents as a string (or an array of lines?). Similarly, define minetest.write_file(filename, contents).
- Disable io.open and all other functions from from the io library. This should make it a bit safer to install random mods.
- Also make sure minetest.{read,write}_file don't accept filenames that contain a directory separator or start with a dot.
- And there's os.execute,os.remove, ...
Suggestion 2:
- Like suggestion 1, but instead of minetest.read_file and minetest.write_file, define minetest.open_file(filename, mode) which opens a file under world/moddata and returns a file handle. This might mean that some functions from the io module would need to stay enabled.
Suggestion 3:
- Restrict all filesystem access from lua and give mods some kind of access to the sqlite database.
Last edited by kahrl on Mon Dec 12, 2011 19:16, edited 1 time in total.
- IPushButton2653
- Member
- Posts: 666
- Joined: Wed Nov 16, 2011 22:47
- Location: Mississippi
- Contact:
read belowIPushButton2653 wrote:I got the "You haven't got the permission for that" error. How do I fix it???
sfan5 wrote:Create a weperms.txt in the bin folder.
Now add {username} to the file, for each user who should be able to use WorldEdit.
Last edited by Gatharoth on Sun Jan 08, 2012 06:11, edited 1 time in total.
- IPushButton2653
- Member
- Posts: 666
- Joined: Wed Nov 16, 2011 22:47
- Location: Mississippi
- Contact:
- IPushButton2653
- Member
- Posts: 666
- Joined: Wed Nov 16, 2011 22:47
- Location: Mississippi
- Contact:
- jordan4ibanez
- Member
- Posts: 1925
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
Who is online
Users browsing this forum: Google [Bot] and 4 guests