Add //spiral and worldedit.spiral API function

This commit is contained in:
sfan5
2012-08-19 09:36:11 +02:00
parent 5b66b5ec25
commit e39493e789
4 changed files with 86 additions and 3 deletions

View File

@ -108,6 +108,15 @@ Add cylinder at WorldEdit position 1 along the x/y/z/? axis with length <length>
//cylinder y 28 10 default:glass
//cylinder z -12 3 mesecons:mesecon
//cylinder ? 2 4 stone
### //spiral <size> <node>
Add Spiral at WorldEdit position 1 with size <size>, composed of <node>.
//spiral 8 dirt
//spiral 5 default:glass
//spiral 2 stone
### //copy x/y/z/? <amount>
@ -216,6 +225,12 @@ Adds a cylinder at `pos` along the `axis` axis ("x" or "y" or "z") with length `
Returns the number of nodes added.
### worldedit.spiral(pos, size, nodename)
Adds a Spiral at `pos` with size `size`.
Returns the number of nodes changed.
### worldedit.copy(pos1, pos2, axis, amount)
Copies the region defined by positions `pos1` and `pos2` along the `axis` axis ("x" or "y" or "z") by `amount` nodes.
@ -286,4 +301,4 @@ This mod is licensed under the [GNU Affero General Public License](http://www.gn
Basically, this means everyone is free to use, modify, and distribute the files, as long as these 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.
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.