1 (edited by sfan5 2013-05-05 06:27:31)

Topic: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

WorldEdit

is an Ingame-World Editor
License of Version <= 0.4.5: GPLv2
License of Version >= 0.5: AGPLv3
Github Repository: https://github.com/Uberi/MineTest-WorldEdit
Depends: <nothing>
-Download-
Latest (GitHub): https://github.com/Uberi/MineTest-World … all/master
0.6: https://dl.dropboxusercontent.com/u/302 … dit0.6.zip
0.5: http://dl.dropbox.com/u/30267315/worldedit0.5.zip
0.4.5: http://dl.dropbox.com/u/30267315/worldedit0.4.5.zip
0.4.2.1: http://dl.dropbox.com/u/30267315/worldedit0.4.2.1.zip
0.4.2: http://dl.dropbox.com/u/30267315/worldedit0.4.2.zip
0.4: http://dl.dropbox.com/u/30267315/worldedit0.4.zip
0.3: http://ubuntuone.com/5QQubOGsUYsfICieMoSiIo
0.2: http://ubuntuone.com/4JAj3d46ywX65a605wgDPm
-Screenshots-
http://i.imgur.com/vQw4M.png
http://i.imgur.com/Eh963.png
-How to set up-
Just grant the »worldedit« Priv to yourself or other Player.
/grant <name> worldedit
-How to use-
--Selecting a Region--
---1st Method---
Type //p set and punch the two edges like in the image below.
http://i.imgur.com/1ihaz.png
---2nd Method---
Go to the first Position and type //pos1
Go to the second Position and type //pos2
--Filling a Region--
Type //set blockname and wait for "X Blocks changed"
--Replacing Blocks in the Region--
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
You must 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
You must 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
You must use a negative Amount if you want to Copy backwards
--Saving Blocks to a File--
Select the Region you want to save
Type //save filename and wait for "X Blocks saved"
The File is located in the World-Folder in the folder schems
Supports loading old and new WorldEdit Format!
--Importing Blocks from a File--
Select P1
Type //load filename and wait for "X Blocks pasted at P1"
The File is read from the World-Folder in the folder schems
--List of Commands--
//pos1 - Sets the first Position to your current Position
//pos2 - Sets the second Position to your current Position
//p get - Shows you the selected Positions
//p set/set1/set2 - Sets the Positions
//set blockname - Fill a Region with Blocks
//replace a b - Replace all A-Blocks in the Region with B-Blocks
//replaceinverse a b - Replace all blocks that are not A-Blocks in the Region with B-Blocks
//volume - Display the volume of the current WorldEdit region
//stack x/y/z/? amount - Stack the Selection in a Direction
//move x/y/z/? amount - Move the current WorldEdit region along the x/y/z/? axis by nodes
//copy x/y/z/? amount - Copy the current WorldEdit region along the x/y/z/? axis by nodes
//reset - Resets P1 and P2
//fixlight - Repairs lightning bugs in the WorldEdit region.
//volume - Show the Volume of the Selection
//mark - Show markers at the region positions
//volume - Display the volume of the current WorldEdit region
//hollowsphere r block - Adds a hollow sphere at WorldEdit position 1 with radius r, composed of block
//sphere r block - Adds a sphere at WorldEdit position 1 with radius r, composed of block
//hollowcylinder x/y/z/? l r block - Adds a hollow cylinder at WorldEdit position 1 along the x/y/z/? axis with length l and radius r, composed of block.
//cylinder x/y/z/? l r block - Adds a cylinder at WorldEdit position 1 along the x/y/z/? axis with length l and radius r, composed of block.
//pyramid h block - Add pyramid at WorldEdit position 1 with height h, composed of block
//spiral w h s block - Add spiral at WorldEdit position 1 with width w, height h, space between walls s, composed of block
//transpose x/y/z/? x/y/z/? - Transpose the current WorldEdit positions and region along the x/y/z/? and x/y/z/? axes
//flip x/y/z/? - Flip the current WorldEdit region along the x/y/z/? axis
//rotate x/y/z/? - Rotate the current WorldEdit positions and region along the x/y/z/? axis by angle (90 degree increment)
//orient angle - Rotate oriented nodes in the current WorldEdit region around the Y axis by angle (90 degree increment)
//hide - Hide all nodes in the current WorldEdit region non-destructively
//suppress blockname - Suppress all blockname in the current WorldEdit region non-destructively4
//highlight blockname - Highlight blockname in the current WorldEdit region by hiding everything else non-destructively
//restore - Restores nodes hidden with WorldEdit in the current WorldEdit region
//save NAME - Save the current WorldEdit region to "(world folder)/schems/NAME.we"
//allocate NAME - Set the region defined by nodes from "(world folder)/schems/NAME.we" as the current WorldEdit region
//load NAME - Load nodes from "(world folder)/schems/NAME.we" with position 1 of the current WorldEdit region as the origin
---More commands---
For a complete list of commands including those not listed here, See the Chat Commands file in World Edit github repository:

https://github.com/Uberi/MineTest-World … ommands.md

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Whoa nice, although the first screenshot is just madness haha.

I will give this a try later ^_^

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Fun Fact about 1st Screenshot:
It took 2 minutes to set the blocks

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

That IS awesome, great job... ;)
You should probably change its name to avoid confusion with Minecraft. Something like MESEdit? :P

My mods, texture packs, maps and misc stuff.
<Tudor> mh0, three people in your nether base | <Exio> mh0, his imaginary girlfriend and rainbow dash

5 (edited by MarkTraceur 2011-12-12 00:01:10)

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

When I followed your instructions, I got "permission denied" (or similar). weperms.txt created, logged in with the right name, weperms looks like

{marktraceur}

Bug?

Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Would it be possible to have a //replace command?
Like: //replace dirt stone (replaces all dirt in selection with stone)

My mods, texture packs, maps and misc stuff.
<Tudor> mh0, three people in your nether base | <Exio> mh0, his imaginary girlfriend and rainbow dash

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Calinou wrote:

That IS awesome, great job... ;)
You should probably change its name to avoid confusion with Minecraft. Something like MESEdit? :P

MessEdit :)

8 (edited by sfan5 2011-12-12 06:19:22)

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

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

{marktraceur}

Bug?

Try copying weperms.txt into your current directory.
I'll make this better in the next version

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Calinou wrote:

Would it be possible to have a //replace command?
Like: //replace dirt stone (replaces all dirt in selection with stone)

That is possible.
I'll include it in the next version

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Awesome. Celeron added something that should make it easier:

    bd21f00        Add minetest.get_modpath(modname)
Mods: https://gitorious.org/marktraceur-minetest-mods
IRC: marktraceur on freenode

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

MarkTraceur wrote:

Awesome. Celeron added something that should make it easier:

    bd21f00        Add minetest.get_modpath(modname)

We need a new dev release

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Hmm. Shouldn't weperms.txt be per-world? I'm not sure if the mod directory is guaranteed to be writeable.

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

kahrl wrote:

Hmm. Shouldn't weperms.txt be per-world? I'm not sure if the mod directory is guaranteed to be writeable.

There should probably be minetest.get_worldpath() for this kind of usage?

14 (edited by kahrl 2011-12-12 19:16:25)

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Hmm.

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, ...

or

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.

or

Suggestion 3:

  • Restrict all filesystem access from lua and give mods some kind of access to the sqlite database.

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Suggestion 4: Suggestion 1 or 2, but with a dialog if the mod wants to write/delete something.
Like, a menu showing up: "Do you want to allow modname to write modstuff.extension? Reason: reason".

My mods, texture packs, maps and misc stuff.
<Tudor> mh0, three people in your nether base | <Exio> mh0, his imaginary girlfriend and rainbow dash

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

I like Suggestion 4, but there should be a Button "Yes for all (only modname)"

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

Is there going to be a remove feature? (or if there already is by like //set [some block that is equal to nothing])

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

@Gatharoth you could do "//set air" ^_^

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

dannydark wrote:

@Gatharoth you could do "//set air" ^_^

Last time I tried "//set air" I was getting an error that it couldn't replace the block(s). And now today, it replaces them. >.< Oh well. Good mod anyway :D

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

I got the "You haven't got the permission for that" error. How do I fix it???

21 (edited by Gatharoth 2012-01-08 06:11:35)

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

IPushButton2653 wrote:

I got the "You haven't got the permission for that" error. How do I fix it???

read below

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.

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

I did that, I made a weperms.txt file and added my username in the brackets as so: {John_Lennon}. It didn't work so I just put the name "test" in there, and it still didn't work. I am on windows, if that helps anything.

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

its case sensitive, so the login name has to equal the name in the weperms.txt

so unless your login name for the server (including local) is "John_Lennon". Then idk. (if you're not using local, then you should also put it in the server's bin folder)

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

I still can't get it to work for me. Please help!!!

Re: [Mod] WorldEdit [0.6] [worldedit] {GitHub}

this works..but its weird lol

I give up on the politics, look for me in Minecraftforum! I'll be doing some basic mods.