2018-05-20 15:19:21 +02:00
# Minetest-WorldEditAdditions
2020-09-13 02:46:02 +02:00
![GitHub release (latest by date) ](https://img.shields.io/github/v/release/sbrl/Minetest-WorldEditAdditions?color=green&label=latest%20release ) [![View the changelog ](https://img.shields.io/badge/%F0%9F%93%B0-Changelog-informational )](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/CHANGELOG.md) [![ContentDB ](https://content.minetest.net/packages/Starbeamrainbowlabs/worldeditadditions/shields/downloads/ )](https://content.minetest.net/packages/Starbeamrainbowlabs/worldeditadditions/)
2020-06-26 00:49:50 +02:00
2018-05-22 23:20:26 +02:00
> Extra tools and commands to extend WorldEdit for Minetest
2018-06-09 21:11:46 +02:00
If you can dream of it, it probably belongs here!
2021-03-17 22:38:36 +01:00
**Important News: The `master` branch has been renamed to `main` , to follow the new standard across the Git ecosystem. If you've installed _WorldEditAadditions_ through git, you will need to re-clone the repository.**
2019-05-30 12:45:41 +02:00
![Screenshot ](https://raw.githubusercontent.com/sbrl/Minetest-WorldEditAdditions/master/screenshot.png )
2021-02-08 16:09:17 +01:00
_(Do you have a cool build that you used WorldEditAdditions to build? [Get in touch ](https://github.com/sbrl/Minetest-WorldEditAdditions/issues/new ) and I'll feature your screenshot here!)_
2020-08-22 00:46:48 +02:00
## Table of Contents
2020-08-22 00:47:05 +02:00
- [Quick Command Reference ](#quick-command-reference ) (including links to detailed explanations)
2020-09-13 18:01:16 +02:00
- [Using the Far Wand ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#far-wand )
2021-02-24 00:04:32 +01:00
- [Using the Cloud Wand ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#cloud-wand )
2020-09-13 18:01:16 +02:00
- [Detailed Chat Command Explanations ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md )
2020-09-21 01:16:46 +02:00
- [Chat Command Cookbook ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Cookbook.md )
2020-08-22 00:46:48 +02:00
- [Troubleshooting ](#troubleshooting )
- [Contributing ](#contributing )
- [WorldEditAdditions around the web ](#worldeditadditions-around-the-web )
- [Licence ](#license )
2020-05-14 22:44:46 +02:00
## Quick Command Reference
2020-09-13 18:01:16 +02:00
The detailed explanations have moved! Check them out [here ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md ), or click the links below.
2018-06-09 21:06:39 +02:00
2020-06-10 02:44:04 +02:00
### Geometry
2020-09-13 18:01:16 +02:00
- [`//ellipsoid <rx> <ry> <rz> <node_name>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#ellipsoid-rx-ry-rz-node_name )
- [`//hollowellipsoid <rx> <ry> <rz> <node_name>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#hollowellipsoid-rx-ry-rz-node_name )
- [`//torus <major_radius> <minor_radius> <node_name>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#torus-major_radius-minor_radius-node_name )
- [`//hollowtorus <major_radius> <minor_radius> <node_name>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#hollowtorus-major_radius-minor_radius-node_name )
- [`//walls <replace_node>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#walls-replace_node )
2021-01-16 19:36:17 +01:00
- [`//line [< replace_node > [< radius > ]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#line-replace_node-radius)
2021-01-31 21:08:09 +01:00
- [`//hollow [< wall_thickness > ]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#hollow-wall_thickness)
2021-01-16 19:38:23 +01:00
- [`//maze < replace_node > [< path_length > [< path_width > [< seed > ]]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#maze-replace_node-path_length-path_width-seed)
- [`//maze3d < replace_node > [< path_length > [< path_width > [< path_depth > [< seed > ]]]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#maze3d-replace_node-path_length-path_width-path_depth-seed)
2020-06-10 02:44:04 +02:00
### Misc
2020-09-13 18:01:16 +02:00
- [`//replacemix < target_node > [< chance > ] < replace_node_a > [< chance_a > ] [< replace_node_b > [< chance_b > ]] [< replace_node_N > [< chance_N > ]] ....`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#replacemix-target_node-chance-replace_node_a-chance_a-replace_node_b-chance_b-replace_node_n-chance_n-)
- [`//floodfill [< replace_node > [< radius > ]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#floodfill-replace_node-radius-floodfill)
2021-02-26 03:44:09 +01:00
- [`//scale < axis > < scale_factor > | < factor_x > [< factor_y > < factor_z > [< anchor_x > < anchor_y > < anchor_z > ]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#scale-axis-scale_factor--factor_x-factor_y-factor_z-anchor_x-anchor_y-anchor_z) **experimental**
2020-06-10 02:44:04 +02:00
### Terrain
2020-09-13 18:01:16 +02:00
- [`//overlay < node_name_a > [< chance_a > ] < node_name_b > [< chance_b > ] [< node_name_N > [< chance_N > ]] ...`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#overlay-node_name_a-chance_a-node_name_b-chance_b-node_name_n-chance_n-)
- [`//layers [< node_name_1 > [< layer_count_1 > ]] [< node_name_2 > [< layer_count_2 > ]] ...`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#layers-node_name_1-layer_count_1-node_name_2-layer_count_2-)
- [`//fillcaves [< node_name > ]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#fillcaves-node_name)
- [`//convolve < kernel > [< width > [,< height > ]] [< sigma > ]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#convolve-kernel-widthheight-sigma)
- [`//erode [< snowballs |... > [< key_1 > [< value_1 > ]] [< key_2 > [< value_2 > ]] ...]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#erode-snowballs-key_1-value_1-key_2-value_2-) **experimental**
2020-06-10 02:44:04 +02:00
2020-09-14 03:12:05 +02:00
### Flora
- [`//bonemeal [< strength > [< chance > ]]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#bonemeal-strength-chance)
2020-09-21 01:37:15 +02:00
- [`//forest [< density > ] < sapling_a > [< chance_a > ] < sapling_b > [< chance_b > ] [< sapling_N > [< chance_N > ]] ...`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#forest-density-sapling_a-chance_a-sapling_b-chance_b-sapling_N-chance_N-) _(new in v1.9)_
- [`//saplingaliases [aliases|all_saplings]`](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#saplingaliases-aliasesall_saplings) _(new in v1.9)_
2020-09-14 03:12:05 +02:00
2020-06-10 02:44:04 +02:00
### Statistics
2020-09-13 18:01:16 +02:00
- [`//count` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#count )
2020-06-10 02:41:13 +02:00
2021-03-01 23:34:06 +01:00
### Selection
2021-03-11 22:04:02 +01:00
- [`//scol [< axis1 > ] < length > `](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#scol-axis1--length)
- [`//srect [< axis1 > [< axis2 > ]] < length > `](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#srect-axis1-axis2-length)
- [`//scube [< axis1 > [< axis2 > [< axis3 > ]]] < length > `](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#scube-axis1-axis2-axis3-length)
- [`//sstack` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#sstack )
- [`//spush` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#spush )
- [`//spop` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#spop )
2021-03-01 23:34:06 +01:00
2020-09-20 23:07:47 +02:00
### Meta
2020-09-13 18:01:16 +02:00
- [`//multi <command_a> <command_b> ....` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#multi-command_a-command_b-command_c- )
2020-09-21 01:37:15 +02:00
- [`//many <times> <command>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#many-times-command ) _(new in v1.9)_
2020-09-13 18:01:16 +02:00
- [`//subdivide <size_x> <size_y> <size_z> <cmd_name> <args>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#subdivide-size_x-size_y-size_z-cmd_name-args ) **experimental**
2020-09-21 01:37:15 +02:00
- [`//ellipsoidapply <command_name> <args>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#ellipsoidapply-command_name-args ) _(new in v1.9)_
2020-09-20 23:07:47 +02:00
### Extras
2020-09-13 18:01:16 +02:00
- [`//y` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#y )
- [`//n` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#n )
2019-06-16 15:13:05 +02:00
2020-06-21 19:05:56 +02:00
### Tools
2020-09-13 18:01:16 +02:00
- [WorldEditAdditions Far Wand ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#far-wand )
- [`//farwand skip_liquid (true|false) | maxdist <number>` ](https://github.com/sbrl/Minetest-WorldEditAdditions/blob/master/Chat-Command-Reference.md#farwand-skip_liquid-truefalse--maxdist-number )
2020-06-21 19:05:56 +02:00
2020-05-10 22:24:34 +02:00
## Troubleshooting
If you're experiencing issues with this mod, try checking this FAQ before opening an issue.
### I get an error saying that worldedit isn't installed
WorldEditAdditions requires that the `worldedit` mod is installed as a dependency. Install it and then try launching Minetest (or the `minetest-server` ) again.
### I get an error saying that `worldedit.register_command()` is not a function
This is probably because your version of `worldedit` is too old. Try updating it. Specifically the `worldedit.register_command()` function was only added to `worldedit` in December 2019.
2020-10-10 18:26:04 +02:00
### I get a crash on startup saying `attempt to call field 'alias_command' (a nil value)`
2020-07-17 18:20:48 +02:00
Please update to v1.8+. There was a bug in earlier versions that caused a race condition that sometimes resulted in this crash.
2020-10-10 18:21:01 +02:00
### Why don't the [moretrees](https://content.minetest.net/packages/VanessaE/moretrees/) trees work with `//forest`?
As far as I can tell, the saplings provided by the [`moretrees` mod ](https://content.minetest.net/packages/VanessaE/moretrees/ ) don't properly interact with bonemeal from the [bonemeal mod ](https://content.minetest.net/packages/TenPlus1/bonemeal/ ), which WorldEditAdditions uses to grow trees. As far as I can tell WorldEditAdditions has everything in place needed to support them, but until applying bonemeal to `moretrees` saplings results in a tree rather than waiting for one to grow over time, WorldEditAdditions will always fail to place trees provided by the `moretrees` mod, unfortunately.
2020-05-10 22:32:01 +02:00
2018-06-09 21:11:46 +02:00
## Contributing
Contributions are welcome! Please state in your pull request(s) that you release your contribution under the _Mozilla Public License 2.0_ .
Please also make sure that the logic for every new command has it's own file. For example, the logic for `//floodfill` goes in `worldeditadditions/floodfill.lua` , the logic for `//overlay` goes in `worldeditadditions/overlay.lua` , etc.
2021-03-16 00:37:46 +01:00
I, Starbeamrainbowlabs (@sbrl), have the ultimate final say.
2020-06-21 19:05:56 +02:00
2020-05-11 03:14:49 +02:00
## WorldEditAdditions around the web
Are you using WorldEditAdditions for a project? Open an issue and I'll add your project to the below list!
2020-09-21 01:37:15 +02:00
- _(None that I'm aware of yet! Open an issue or get in touch and I'll link to your project (-:)_
2020-05-11 03:14:49 +02:00
2018-06-09 21:11:46 +02:00
## License
This mod is licensed under the _Mozilla Public License 2.0_ , a copy of which (along with a helpful summary as to what you can and can't do with it) can be found in the `LICENSE` file in this repository.
2020-06-13 15:25:00 +02:00
All textures however are licenced under [CC-BY-SA 4.0 ](https://creativecommons.org/licenses/by-sa/4.0/ ) (Creative Commons Attribution Share-Alike International 4.0).
2018-06-09 21:11:46 +02:00
If you'd like to do something that the license prohibits, please get in touch as it's possible we can negotiate something.
2020-05-11 03:14:49 +02:00
If WorldEditAdditions has helped you out in a project, please consider adding a little sign in a corner of your project saying so :-)