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. 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 ## Generating a height map
+9 -1
View File
@@ -355,7 +355,15 @@ generation.save_fragment(
Размер фрагмента доступен как свойство `size`. Размер фрагмента доступен как свойство `size`.
Фрагмент может быть обрезан до размеров содержимого (воздух игнорируется) вызовом метода `fragment:crop()`. ### Методы
```lua
-- Обрезает фрагмент до размеров содержимого
fragment:crop()
-- Устанавливает фрагмент в мир на указанной позиции
fragment:place(position: vec3, [опционально] rotation:int=0)
```
## Генерация карты высот ## Генерация карты высот