mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update doc/*/scripting/builtins/libblock.md
This commit is contained in:
parent
a200c3988b
commit
ea2f7ede0d
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue