Merge branch 'main' into animation

This commit is contained in:
MihailRis 2026-08-14 19:46:37 +03:00
commit 49e7f2c631
89 changed files with 1050 additions and 687 deletions

View file

@ -139,7 +139,7 @@ gui.confirm(
## Documents and templates
```lua
-- Loads a UI document with its script, returns the name of the document if successfully loaded.
-- Loads a UI document with its script. Returns document environment table
gui.load_document(
-- Path to the xml file of the page. Example: `core:layouts/pages/main.xml`
path: str,
@ -147,7 +147,7 @@ gui.load_document(
name: str
-- Table of parameters passed to the on_open event
args: table
) -> str
) -> table
-- Loads and processes layout template from file
gui.template(

View file

@ -57,6 +57,10 @@ hud.get_block_inventory() -> int
-- Gives the ID of the second open inventory (block, virtual inventory...) or 0.
hud.get_second_inventory() -> int
-- Get the inventory ID of exchange item (grabbed item in inventory) or 0.
-- It has only one slot - 0
hud.get_exchange_inventory() -> int
-- Gives the ID of the player that the UI is bound to.
hud.get_player() -> int

View file

@ -24,7 +24,7 @@ Called on block broken by player
function on_replaced(x, y, z, playerid)
```
Called on block replaced with other by player
Called before a player replaces a block
```lua
function on_interact(x, y, z, playerid) -> bool