mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
Reference: Document //basename
This commit is contained in:
parent
ee2e5716eb
commit
b6bee59097
1 changed files with 16 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue