update doc/*/scripting/builtins/libblock.md

This commit is contained in:
MihailRis 2024-11-22 10:02:18 +03:00
parent a200c3988b
commit ea2f7ede0d
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@ block.index(name: str) -> int
-- Returns the id of the block material.
block.material(blockid: int) -> str
-- Table of materials by their full names (example: base:carpet)
block.materials: table<string, table>
-- Returns the block display name.
block.caption(blockid: int) -> str

View File

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