update doc/*/world-generator.md

This commit is contained in:
MihailRis
2024-10-28 10:07:56 +03:00
parent 7819a5cd68
commit 016336ee4d
2 changed files with 18 additions and 2 deletions
+9 -1
View File
@@ -351,7 +351,15 @@ generation.save_fragment(
The fragment size is available as the `size` property.
A fragment can be cropped to fit its contents (air is ignored) by calling the `fragment:crop()` method.
### Methods
```lua
-- Crop a fragment to content
fragment:crop()
-- Set a fragment to the world at the specified position
fragment:place(position: vec3, [optional] rotation:int=0)
```
## Generating a height map