update /doc/*/block-properties.md

This commit is contained in:
MihailRis 2025-02-02 17:38:50 +03:00
parent 3fb16ab50e
commit 93e9fbbe84
2 changed files with 4 additions and 0 deletions

View File

@ -216,6 +216,8 @@ Example: [user properties of pack **base**](../../res/content/base/config/user-p
## 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*
The time it takes to break a block without tools or effects, measured in seconds.

View File

@ -218,6 +218,8 @@
## Пользовательские свойства
Доступ к пользовательским свойствам производится через таблицу `block.properties[id]["свойство"]` где id - числовой id (индекс) блока.
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
```toml
"пак:имя_свойства" = {}