Merge pull request #478 from Onran0/main
doc: block.properties added to libblock.md
This commit is contained in:
@@ -13,6 +13,9 @@ block.material(blockid: int) -> str
|
|||||||
-- Table of materials by their full names (example: base:carpet)
|
-- Table of materials by their full names (example: base:carpet)
|
||||||
block.materials: table<string, table>
|
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.
|
-- Returns the block display name.
|
||||||
block.caption(blockid: int) -> str
|
block.caption(blockid: int) -> str
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ block.material(blockid: int) -> str
|
|||||||
-- Таблица материалов по их полным именам (пример: base:carpet)
|
-- Таблица материалов по их полным именам (пример: base:carpet)
|
||||||
block.materials: table<string, table>
|
block.materials: table<string, table>
|
||||||
|
|
||||||
|
-- Таблица пользовательских свойств блоков (см. ../../block-properties.md)
|
||||||
|
block.properties: table<int, table<string, object>>
|
||||||
|
|
||||||
-- Возвращает название блока, отображаемое в интерфейсе.
|
-- Возвращает название блока, отображаемое в интерфейсе.
|
||||||
block.caption(blockid: int) -> str
|
block.caption(blockid: int) -> str
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user