mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-24 11:29:44 +00:00
update doc/*/scripting/builtins
This commit is contained in:
parent
6f761e08b3
commit
3ae9e42883
2 changed files with 13 additions and 2 deletions
|
|
@ -177,7 +177,12 @@ block.get_textures(id: int, [optional] variant_index: int = 0) -> string table
|
||||||
-- returns array of two vectors (arrays of 3 numbers):
|
-- returns array of two vectors (arrays of 3 numbers):
|
||||||
-- 1. Minimum point of the hitbox
|
-- 1. Minimum point of the hitbox
|
||||||
-- 2. Hitbox size
|
-- 2. Hitbox size
|
||||||
block.get_hitbox(id: int, rotation_index: int, [optional] hitbox_index: int = 0) -> {vec3, vec3}
|
block.get_hitbox(
|
||||||
|
id: int,
|
||||||
|
rotation_index: int,
|
||||||
|
[optional] hitbox_index: int = 0,
|
||||||
|
[optional] variant_index: int = 0
|
||||||
|
) -> {vec3, vec3}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Data fields
|
## Data fields
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,13 @@ block.get_textures(id: int, [опционально] variant_index: int = 0) ->
|
||||||
-- 2. Размер хитбокса
|
-- 2. Размер хитбокса
|
||||||
-- rotation_index - индекс поворота блока
|
-- rotation_index - индекс поворота блока
|
||||||
-- hitbox_index - индекс хитбокса
|
-- hitbox_index - индекс хитбокса
|
||||||
block.get_hitbox(id: int, rotation_index: int, [опционально] hitbox_index: int = 0) -> {vec3, vec3}
|
-- variant_index - индекс варианта
|
||||||
|
block.get_hitbox(
|
||||||
|
id: int,
|
||||||
|
rotation_index: int,
|
||||||
|
[опционально] hitbox_index: int = 0,
|
||||||
|
[опционально] variant_index: int = 0
|
||||||
|
) -> {vec3, vec3}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Данные блоков
|
## Данные блоков
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue