mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update /doc/*/block-properties.md
This commit is contained in:
parent
3fb16ab50e
commit
93e9fbbe84
2 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -218,6 +218,8 @@
|
|||
|
||||
## Пользовательские свойства
|
||||
|
||||
Доступ к пользовательским свойствам производится через таблицу `block.properties[id]["свойство"]` где id - числовой id (индекс) блока.
|
||||
|
||||
Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
|
||||
```toml
|
||||
"пак:имя_свойства" = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue