mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
add cached item.has_tag, block.has_tag & update docs
This commit is contained in:
parent
185b6cc661
commit
19acda1a88
6 changed files with 43 additions and 13 deletions
|
|
@ -67,6 +67,9 @@ block.get_variant(x: int, y: int, z: int) -> int
|
|||
|
||||
-- Устанавливает вариант блока по индексу
|
||||
block.set_variant(x: int, y: int, z: int, index: int) -> int
|
||||
|
||||
-- Проверяет наличие тега у блока
|
||||
block.has_tag(id: int, tag: str) -> bool
|
||||
```
|
||||
|
||||
### Raycast
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ item.emission(itemid: int) -> str
|
|||
|
||||
-- Возвращает значение свойства `uses`
|
||||
item.uses(itemid: int) -> int
|
||||
|
||||
-- Проверяет наличие тега у предмета
|
||||
item.has_tag(itemid: int, tag: str) -> bool
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue