fix typos in docs and dev test script

This commit is contained in:
zaveshaa 2026-08-23 19:18:17 +03:00
parent b06bbd3f7d
commit c759e02ceb
8 changed files with 30 additions and 30 deletions

View file

@ -151,7 +151,7 @@ block.raycast(start: vec3, dir: vec3, max_distance: number, [optional] dest: tab
Casts a ray from the start point in the direction of *dir*. Max_distance specifies the maximum ray length.
Argument `filter` can be used to tell ray what blocks can be skipped(passed through) during ray-casting.
To use filter `dest` argument must be filled with some value(can be nil), it's done for backwards compatability
To use filter `dest` argument must be filled with some value(can be nil), it's done for backwards compatibility
The `include_non_selectable` argument determines whether blocks that cannot be selected by the cursor will be included.
Example - `base:water`

View file

@ -186,7 +186,7 @@ inventory.clone(invid: int) -> int
-- Move an item from slotA of invA to slotB of invB.
-- invA may be the same as invB.
-- If slotB will be chosen automaticly if argument is not specified.
-- If slotB will be chosen automatically if argument is not specified.
-- The move may be incomplete if the available slot has no enough stack space.
inventory.move(invA: int, slotA: int, invB: int, slotB: int)

View file

@ -154,7 +154,7 @@ Returns position of the selected block or nil
player.get_selected_entity(playerid: int) -> int
```
Returns unique indentifier of the entity selected by player
Returns unique identifier of the entity selected by player
```lua
player.get_entity(playerid: int) -> int

View file

@ -8,7 +8,7 @@ The entity object is available in components as a global variable **entity**.
-- Deletes an entity (the entity may continue to exist until the frame ends, but will not be displayed in that frame)
entity:despawn()
-- Returns entity defintion index (integer ID)
-- Returns entity definition index (integer ID)
entity:def_index() -> int
-- Returns entity definition name (string ID)