mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
update doc/*/world-generator.md
This commit is contained in:
parent
7819a5cd68
commit
016336ee4d
2 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue