update /doc/*/block-properties.md
This commit is contained in:
parent
3fb16ab50e
commit
93e9fbbe84
@ -216,6 +216,8 @@ Example: [user properties of pack **base**](../../res/content/base/config/user-p
|
|||||||
|
|
||||||
## Properties introduced by the `base` pack
|
## Properties introduced by the `base` pack
|
||||||
|
|
||||||
|
Access to custom properties is provided through the table `block.properties[id]["property"]` where id is the numeric id (index) of the block.
|
||||||
|
|
||||||
### *base:durability*
|
### *base:durability*
|
||||||
|
|
||||||
The time it takes to break a block without tools or effects, measured in seconds.
|
The time it takes to break a block without tools or effects, measured in seconds.
|
||||||
|
|||||||
@ -218,6 +218,8 @@
|
|||||||
|
|
||||||
## Пользовательские свойства
|
## Пользовательские свойства
|
||||||
|
|
||||||
|
Доступ к пользовательским свойствам производится через таблицу `block.properties[id]["свойство"]` где id - числовой id (индекс) блока.
|
||||||
|
|
||||||
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
|
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
|
||||||
```toml
|
```toml
|
||||||
"пак:имя_свойства" = {}
|
"пак:имя_свойства" = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user