mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
Merge pull request #478 from Onran0/main
doc: block.properties added to libblock.md
This commit is contained in:
commit
da2fecb02e
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue