update doc/*/world-generator.md
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user