[mod] WorldEditAdditions [1.9] [worldeditaddtions]

Post Reply
Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

[mod] WorldEditAdditions [1.9] [worldeditaddtions]

by Starbeamrainbowlabs » Post

Hey there! I thought I'd make a proper post about my worldeditadditions mod, since it seems to be quite popular (2K downloads? Wow, thanks everyone!)

At first it was just a quick simple mod that contains a few extra worldedit commands, but it seems to have grown quite a bit since then :P

Note that I consider this mod stable, and production-ready (so if you find any bugs, please report them). Despite this, new commands will be added in future releases (ideas and especially pull requests welcome!).
Extra tools and commands to extend WorldEdit for Minetest

If you can dream of it, it probably belongs here!

► News

  • 20th September 2020: v1.9: The Nature Update
    • Add //many for executing a command many times in a row
    • Add experimental //erode command
    • Add //fillcaves command - fills in all air nodes beneath non air-nodes
    • Add //forest command for quickly generating forests, and //saplingaliases to compliment it
    • Add //ellipsoidapply: Like //cubeapply, but clips the result to an ellipsoid that is the size of the defined region.
    • Fix some minor bugs and edge cases
    • //subdivide: Print status update when completing the last chunk
    • //count: Optimise by removing nested for loops
History:
+ Spoiler
See the full changelog here

► Summary

Summary of commands implemented so far:
  • //floodfill [<replace_node> [<radius>]]
  • //overlay <node_name_a> [<chance_a>] <node_name_b> [<chance_b>] [<node_name_N> [<chance_N>]] ...
  • //ellipsoid <rx> <ry> <rz> <node_name>
  • //hollowellipsoid <rx> <ry> <rz> <node_name>
  • //torus <major_radius> <minor_radius> <node_name>
  • //hollowtorus <major_radius> <minor_radius> <node_name>
  • //maze <replace_node> [<seed>]`
  • //maze3d <replace_node> [<seed>]`
  • //bonemeal [<strength> [<chance>]]
  • //walls <replace_node>
  • //replacemix <target_node> [<chance>] <replace_node_a> [<chance_a>] [<replace_node_b> [<chance_b>]] [<replace_node_N> [<chance_N>]] ....
  • //count
  • //convolve <kernel> [<width>[,<height>]] [<sigma>]
  • //layers [<node_name_1> [<layer_count_1>]] [<node_name_2> [<layer_count_2>]] ...
  • Far wand (also //farwand skip_liquid (true|false) | maxdist <number>)
  • //multi <command_a> <command_b> .....
  • //subdivide <size_x> <size_y> <size_z> <cmd_name> <args> experimental
  • //erode [<snowballs|...> [<key_1> [<value_1>]] [<key_2> [<value_2>]] ...]
  • //fillcaves [<node_name>]
  • //many <times> <command>
  • //forest [<density>] <sapling_a> [<chance_a>] <sapling_b> [<chance_b>] [<sapling_N> [<chance_N>]] ...
  • //saplingaliases [aliases|all_saplings]
  • //erode [<snowballs|...> [<key_1> [<value_1>]] [<key_2> [<value_2>]] ...] experimental
  • //ellipsoidapply <command_name> <args>
Check the README for an updated list, as well as comprehensive explanations and usage examples: https://github.com/sbrl/Minetest-WorldE ... f-contents

Also check out the chat command cookbook for useful commands other users have discovered. Got a useful command (set) that isn't on the list? Get in touch! I'll add it and give you credit for discovering it.

► Screenshots

Here are a few screenshots showing some of the commands in action:

Image

Above: A torus upon which //overlay has been used. Also a hollow ellipsoid that has been //floodfilled.

Here are some more screenshots:
+ Spoiler

► Download

I strongly recommend using git to clone the repository to install this mod. If you can't, then I've provided an always up-to-date download link too :-)

Note that if I don't reply to your message on here, I'll be much more responsive if you open an issue against the repository.

Image Repository | Clone | ContentDB | Download (Previous versions) | Issue Tracker | Image

Mod dependencies: worldedit, bonemeal (optional, enables the //bonemeal command)
Last edited by Starbeamrainbowlabs on Sun Sep 20, 2020 23:56, edited 13 times in total.

User avatar
pampogokiraly
Member
Posts: 216
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by pampogokiraly » Post

This looks cool! But as always i have some ideas to improve it:
  • Extend the move command with an optional [block_name] so worldedit only moves those blocks
    Example: //move y 17 default:dirt_with_grass
  • I would love to see the same thing with the stack command.
    Example: //stack z -4 default:dirt, akosdecor:full_tree
I also had some more ideas but i actualy forget them XD
I'll edit this comment if i get them back!
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Starbeamrainbowlabs » Post

pampogokiraly wrote:
Fri May 01, 2020 14:23
This looks cool! But as always i have some ideas to improve it:
  • Extend the move command with an optional [block_name] so worldedit only moves those blocks
    Example: //move y 17 default:dirt_with_grass
  • I would love to see the same thing with the stack command.
    Example: //stack z -4 default:dirt, akosdecor:full_tree
I also had some more ideas but i actualy forget them XD
I'll edit this comment if i get them back!
Hey there, @pampogokiraly! Those are great suggestions. They would have to be new commands though, since unless I make a PR against WorldEdit itself, I can't edit the existing commands as far as I'm aware.

Certainly do-able though. Could you open an issue in the GitHub repository please though? I'm probably going to forget otherwise (a pull request would also be awesome :D)

User avatar
Miniontoby
Member
Posts: 437
Joined: Fri Mar 01, 2019 19:25
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Miniontoby » Post

This is cool.

I want also the //replacenear and //walls cmd to be added
My English isn't very good because I'm Dutch ---- Check my mod "Doorbell" Vote your gang

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Starbeamrainbowlabs » Post

Miniontoby wrote:
Sat May 02, 2020 17:34
This is cool.

I want also the //replacenear and //walls cmd to be added
Thanks, @Miniontoby! Could you open an issue about those commands please? Here's the link: https://github.com/sbrl/Minetest-WorldE ... issues/new. 1 issue per command with details about how they would work would be great if possible.

I'm liable to forget about it without a tracking issue on GitHub.

Thanks again!

User avatar
pampogokiraly
Member
Posts: 216
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by pampogokiraly » Post

Starbeamrainbowlabs wrote:GitHub repository please though?
Can someone make an issue for me? I don't have a GitHub account and i don't want to create one....
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Starbeamrainbowlabs » Post

pampogokiraly wrote:
Mon May 11, 2020 14:58
Starbeamrainbowlabs wrote:GitHub repository please though?
Can someone make an issue for me? I don't have a GitHub account and i don't want to create one....
I always try to give people a chance at first to create their own issues, because they can explain it better than I can.

Thinking about it though, it would have to be a completely new command. The reason for this is that in order to extend the original WorldEdit commands, I'd have to either open an issue or a pull request against WorldEdit itself. Which do you think is the better option, @pampogokiraly?
  • Open an issue again WorldEdit itself to ask the feature to me considered (not my mod)
  • Implement a new command that's a copy of the existing one that has the new functionality
Personally, I'd prefer to take this up with WorldEdit itself. This way we don't duplicate code and effort, but I'm interested to hear your opinion on the issue.

User avatar
GreenXenith
Member
Posts: 1328
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenXenith
In-game: GreenXenith
Location: The singularity
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by GreenXenith » Post

Starbeamrainbowlabs wrote:
Fri May 01, 2020 23:18
They would have to be new commands though, since unless I make a PR against WorldEdit itself, I can't edit the existing commands as far as I'm aware.
minetest.override_chatcommand(name, redefinition)
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenXenith#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Starbeamrainbowlabs » Post

GreenXenith wrote:
Tue May 12, 2020 02:58
minetest.override_chatcommand(name, redefinition)
Ah, I wasn't aware of that one - thanks!

I'm still a bit uncomfortable with overriding a WorldEdit command - I still think that an update to //move and //stack (and maybe even //stack2 as well?) would be much more effectively implemented via a pull request against WorldEdit.

To this end, I think the first step here is to open an issue against WorldEdit to ask for their opinion about it. If they agree, then we can look at implementation.

My goal with WorldEditAdditions isn't to replace WorldEdit, but to compliment it. To that effect, I'd rather like to avoid duplicating as much effort as possible.

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.3.1] [worldeditaddtions]

by Starbeamrainbowlabs » Post

Miniontoby wrote:
Sat May 02, 2020 17:34
This is cool.

I want also the //replacenear and //walls cmd to be added
Hey there! I don't know if this will generate a notification for you, but I thought you'd like to know that I've implemented both of the commands you asked for - well as far as I understood what you're asking for. //walls was implemented between v1.3 and v1.6 I think. I interpreted //replacenear to be something more like //ellipsoidapply, though I think I might have misinterpreted.

Either way, for anyone else reading, v1.9 is now out!

This one has a number of new juicy commands in it that are sure to spice up your builds. I'm also currently on the lookout for cool screenshots of builds made with WorldEditAdditions to feature in this forum thread :D

Here's the changelog:
  • Add //many for executing a command many times in a row
  • Add experimental //erode command
  • Add //fillcaves command - fills in all air nodes beneath non air-nodes
  • Add //forest command for quickly generating forests, and //saplingaliases to compliment it
  • Add //ellipsoidapply: Like //cubeapply, but clips the result to an ellipsoid that is the size of the defined region.
  • Fix some minor bugs and edge cases
  • //subdivide: Print status update when completing the last chunk
  • //count: Optimise by removing nested for loops
See the GitHub release for more info, and the download links in the main post in this forum thread for download links.

lonestar
Member
Posts: 53
Joined: Mon Jul 17, 2017 03:25
Location: Texas,USA

Re: [mod] WorldEditAdditions [1.9] [worldeditaddtions]

by lonestar » Post

I'm getting this error:

Code: Select all

2020-09-23 19:23:25: ERROR[Main]: ModError: Failed to load and run script from /home/lonestar/minetest/stable/minetest/bin/../mods/Minetest-WorldEditAdditions/worldeditadditions_commands/init.lua:
2020-09-23 19:23:25: ERROR[Main]: ...s/worldeditadditions_commands/commands/floodfill.lua:6: attempt to call field 'register_command' (a nil value)
2020-09-23 19:23:25: ERROR[Main]: stack traceback:
2020-09-23 19:23:25: ERROR[Main]: 	...s/worldeditadditions_commands/commands/floodfill.lua:6: in main chunk
2020-09-23 19:23:25: ERROR[Main]: 	[C]: in function 'dofile'
2020-09-23 19:23:25: ERROR[Main]: 	...ldEditAdditions/worldeditadditions_commands/init.lua:22: in main chunk
2020-09-23 19:23:25: ERROR[Main]: Check debug.txt for details.
2020-09-23 19:23:25: ACTION[Main]: Server: Shutting down
NM, re-downloaded WorldEdit, even though I just updated it and all works.

Starbeamrainbowlabs
Member
Posts: 61
Joined: Sat May 26, 2018 11:25
GitHub: sbrl
Location: Nowhere, Everywhere, and Somewhere inbetween
Contact:

Re: [mod] WorldEditAdditions [1.9] [worldeditaddtions]

by Starbeamrainbowlabs » Post

lonestar wrote:
Thu Sep 24, 2020 00:29
I'm getting this error:

Code: Select all

2020-09-23 19:23:25: ERROR[Main]: ModError: Failed to load and run script from /home/lonestar/minetest/stable/minetest/bin/../mods/Minetest-WorldEditAdditions/worldeditadditions_commands/init.lua:
2020-09-23 19:23:25: ERROR[Main]: ...s/worldeditadditions_commands/commands/floodfill.lua:6: attempt to call field 'register_command' (a nil value)
2020-09-23 19:23:25: ERROR[Main]: stack traceback:
2020-09-23 19:23:25: ERROR[Main]: 	...s/worldeditadditions_commands/commands/floodfill.lua:6: in main chunk
2020-09-23 19:23:25: ERROR[Main]: 	[C]: in function 'dofile'
2020-09-23 19:23:25: ERROR[Main]: 	...ldEditAdditions/worldeditadditions_commands/init.lua:22: in main chunk
2020-09-23 19:23:25: ERROR[Main]: Check debug.txt for details.
2020-09-23 19:23:25: ACTION[Main]: Server: Shutting down
NM, re-downloaded WorldEdit, even though I just updated it and all works.
Yeah, that error is caused by an outdated version of WorldEdit.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests