update doc/*/block-properties.md (model-name)

This commit is contained in:
MihailRis 2024-12-24 15:53:26 +03:00
parent 10491fbb61
commit 65b8835698
2 changed files with 20 additions and 0 deletions

View File

@ -35,6 +35,16 @@ Block model type from list:
- "X" - grass model (two crossed sprites)
- "aabb" - model based of block hitbox (complex hitbox will be combined into one). Examples: pipes, bulbs, panels.
### *model-name*
In addition to built-in model types, you can use your own, loaded from file.
The property specifies the model name without `entry_point:models/` nor extension.
> [!WARNING]
> Textures (materials) used in the model must be in the `blocks` atlas and specified in the *atlas-texture* format:
> `blocks:texture_name`
### *draw-group*
Integer specifying number of block draw group (render order). Used for semi-transparent blocks.

View File

@ -35,6 +35,16 @@
- "X" - модель травы (крест из двух спрайтов)
- "aabb" - модель, соответствующая хитбоксу блока (составной хитбокс будет объединен в один). Примеры: трубы, лампочки, панели.
### Имя модели - *model-name*
Кроме встроенных типов моделей, можно использовать собственные, загружаемые из файлов.
В свойстве указывается имя модели без очкахода:models/` и расширения.
> [!WARNING]
> Текстуры (материалы), использующиеся в модели, должны находиться в атласе `blocks` и указываться в соответствующем формате:
> `blocks:имя_текстуры`
### Группа отрисовки - *draw-group*
Целое число определяющее номер группы отрисовки данного блока.