Skip to content

Commit

Permalink
update /doc/*/block-properties.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Feb 2, 2025
1 parent 3fb16ab commit 93e9fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/en/block-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions doc/ru/block-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@

## Пользовательские свойства

Доступ к пользовательским свойствам производится через таблицу `block.properties[id]["свойство"]` где id - числовой id (индекс) блока.

Пользовательские свойства должны быть объявляены в файле `пак:config/user-props.toml`:
```toml
"пак:имя_свойства" = {}
Expand Down

0 comments on commit 93e9fbb

Please sign in to comment.