Implement //cubeapply with three side lengths

This commit is contained in:
sfan5
2020-04-26 16:01:07 +02:00
parent 34844b2d38
commit 4d08a1cc55
2 changed files with 24 additions and 13 deletions

View File

@ -485,11 +485,13 @@ Note that this functionality requires the `worldedit_brush` mod enabled.
//brush spr 12 glass
//brush none
### `//cubeapply <size> <command> [parameters]`
### `//cubeapply <size>/(<sizex> <sizey> <sizez>) <command> [parameters]`
Selects a cube with side length of `<size>` around the WorldEdit position 1 and runs the given `<command>` on the newly selected region.
If `<sizex>`, `<sizey>` and `<sizez>` are given, they instead specify the length of the cuboid in X, Y, Z direction.
This is mostly useful for brushes since it allows commands such as `//replace` to be ran, but it can also be used standalone.
//cubeapply 10 replaceinverse air default:water_source
//brush cubeapply 15 drain
//brush cubeapply 12 3 12 drain
//brush cubeapply 1 deleteblocks