Merge pull request #478 from Onran0/main

doc: block.properties added to libblock.md
This commit is contained in:
MihailRis 2025-02-25 11:37:01 +03:00 committed by GitHub
commit da2fecb02e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ block.material(blockid: int) -> str
-- Table of materials by their full names (example: base:carpet)
block.materials: table<string, table>
-- Table of custom block properties (see ../../block-properties.md)
block.properties: table<int, table<string, object>>
-- Returns the block display name.
block.caption(blockid: int) -> str

View File

@ -13,6 +13,9 @@ block.material(blockid: int) -> str
-- Таблица материалов по их полным именам (пример: base:carpet)
block.materials: table<string, table>
-- Таблица пользовательских свойств блоков (см. ../../block-properties.md)
block.properties: table<int, table<string, object>>
-- Возвращает название блока, отображаемое в интерфейсе.
block.caption(blockid: int) -> str