update doc/*/scripting/builtins/libblock.md
This commit is contained in:
@@ -59,6 +59,15 @@ block.is_replaceable_at(x: int, y: int, z: int) -> bool
|
|||||||
|
|
||||||
-- Returns count of available block IDs.
|
-- Returns count of available block IDs.
|
||||||
block.defs_count() -> int
|
block.defs_count() -> int
|
||||||
|
|
||||||
|
-- Returns the index of the item specified in the *picking-item* property.
|
||||||
|
block.get_picking_item(id: int) -> int
|
||||||
|
|
||||||
|
-- Returns the block variant index
|
||||||
|
block.get_variant(x: int, y: int, z: int) -> int
|
||||||
|
|
||||||
|
-- Sets the block variant by index
|
||||||
|
block.set_variant(x: int, y: int, z: int, index: int) -> int
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rotation
|
## Rotation
|
||||||
|
|||||||
@@ -61,6 +61,12 @@ block.defs_count() -> int
|
|||||||
|
|
||||||
-- Возвращает числовой id предмета, указанного в свойстве *picking-item*.
|
-- Возвращает числовой id предмета, указанного в свойстве *picking-item*.
|
||||||
block.get_picking_item(id: int) -> int
|
block.get_picking_item(id: int) -> int
|
||||||
|
|
||||||
|
-- Возвращает индекс варианта блока
|
||||||
|
block.get_variant(x: int, y: int, z: int) -> int
|
||||||
|
|
||||||
|
-- Устанавливает вариант блока по индексу
|
||||||
|
block.set_variant(x: int, y: int, z: int, index: int) -> int
|
||||||
```
|
```
|
||||||
|
|
||||||
### Raycast
|
### Raycast
|
||||||
|
|||||||
Reference in New Issue
Block a user