update doc/*/block-properties.md
This commit is contained in:
parent
aa60ae3fad
commit
ba1a82539f
@ -187,3 +187,12 @@ Available data types:
|
|||||||
- Currently, the total sum of the field sizes cannot exceed 240 bytes.
|
- 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 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.
|
- 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 байт.
|
- На данный момент общая сумма размеров полей не может превышать 240 байт.
|
||||||
- Поле без указания длины массива эквивалентно массиву из 1 элемента.
|
- Поле без указания длины массива эквивалентно массиву из 1 элемента.
|
||||||
- Массив символьного типа может использоваться для хранения UTF-8 строк.
|
- Массив символьного типа может использоваться для хранения UTF-8 строк.
|
||||||
|
|
||||||
|
## Пользовательские свойства
|
||||||
|
|
||||||
|
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
|
||||||
|
```toml
|
||||||
|
"пак:имя_свойства" = {}
|
||||||
|
```
|
||||||
|
|
||||||
|
Пример: [пользовательские свойства пака **base**](../../res/content/base/config/user-props.toml).
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user