Reference: Document //basename

This commit is contained in:
Starbeamrainbowlabs 2021-07-03 13:15:29 +01:00
parent ee2e5716eb
commit b6bee59097
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 16 additions and 0 deletions

View File

@ -495,6 +495,22 @@ Counts all the nodes in the defined region and returns the result along with cal
//count
```
## `//basename <name>`
Returns the absolute canonical name of a node, given an alias or partial node name. For example:
```
//basename dirt
```
...will return `default:dirt`. Uses `worldedit.normalize_nodename(string)` under the hood.
```
//basename stonebrick
//basename glass
```
## `//subdivide <size_x> <size_y> <size_z> <cmd_name> <args>`
Splits the current WorldEdit region into `(<size_x>, <size_y>, <size_z>)` sized chunks, and run `//<cmd_name> <args>` over each chunk.