mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/block-properties.md
This commit is contained in:
parent
aa60ae3fad
commit
ba1a82539f
2 changed files with 18 additions and 0 deletions
|
|
@ -187,3 +187,12 @@ Available data types:
|
|||
- Currently, the total sum of the field sizes cannot exceed 240 bytes.
|
||||
- A field without an array length specification is equivalent to an array of 1 element.
|
||||
- A character array can be used to store UTF-8 strings.
|
||||
|
||||
## User properties
|
||||
|
||||
User properties must be declared in `pack:config/user-props.toml` file:
|
||||
```toml
|
||||
"pack:property_name" = {}
|
||||
```
|
||||
|
||||
Example: [user properties of pack **base**](../../res/content/base/config/user-props.toml).
|
||||
|
|
|
|||
|
|
@ -199,3 +199,12 @@
|
|||
- На данный момент общая сумма размеров полей не может превышать 240 байт.
|
||||
- Поле без указания длины массива эквивалентно массиву из 1 элемента.
|
||||
- Массив символьного типа может использоваться для хранения UTF-8 строк.
|
||||
|
||||
## Пользовательские свойства
|
||||
|
||||
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
|
||||
```toml
|
||||
"пак:имя_свойства" = {}
|
||||
```
|
||||
|
||||
Пример: [пользовательские свойства пака **base**](../../res/content/base/config/user-props.toml).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue