mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-24 08:03:46 +01:00
Reference: Document //basename
This commit is contained in:
parent
ee2e5716eb
commit
b6bee59097
@ -495,6 +495,22 @@ Counts all the nodes in the defined region and returns the result along with cal
|
|||||||
//count
|
//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>`
|
## `//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.
|
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 New Issue
Block a user