This commit is contained in:
Xertis 2026-03-16 00:56:17 +03:00
commit d4e5bc99a0
61 changed files with 1209 additions and 534 deletions

View file

@ -95,6 +95,23 @@ Example:
0. A rectangular area with a width, height and length of 0.4 m, centered at 0.0.
1. Radial area with a radius of 1.6 m.
### *solid*
Makes the entity's hitbox an obstacle. When enabling this property for `dynamic` body, a mass must be specified.
### *mass*
Defines the entity's mass. Kilograms are used as the default.
For `kinematic` bodies, an infinite mass is used instead.
### *elasticity*
Defines the entity's elasticity (affects the bounce on collision).
### *step-height*
Defines the maximum height of an obstacle an entity can step onto without jumping.
## View
### *skeleton-name*

View file

@ -4,14 +4,17 @@ A library for managing audio/visual weather effects.
Weather settings:
| Property | Description | Default |
| ------------ | ------------------------------ | ------- |
| fall | Precipitation (see table 2) | {} |
| clouds | Cloudiness [0.0, 1.0] | 0.0 |
| fog_opacity | Maximum fog density [0.0, 1.0] | 0.0 |
| fog_dencity | Fog density | 1.0 |
| fog_curve | Fog curve | 1.0 |
| thunder_rate | Thunder rate [0.0, 1.0] | 0.0 |
| Property | Description | Default |
| ------------- | -------------------------------- | ----------------- |
| fall | Precipitation (see table 2) | {} |
| clouds | Cloudiness [0.0, 1.0] | 0.0 |
| fog_opacity | Maximum fog density [0.0, 1.0] | 0.0 |
| fog_dencity | Fog density | 1.0 |
| fog_curve | Fog curve | 1.0 |
| thunder_rate | Thunder rate [0.0, 1.0] | 0.0 |
| sky_tint | Sky color multiplier | {1, 1, 1} |
| clouds_tint | Cloud color multiplier | {1, 1, 1} |
| min_sky_light | Minimum sky-emitted light (moon) | {0.2, 0.25, 0.33} |
Precipitation:

View file

@ -78,14 +78,14 @@ Returns the id of all base packages (non-removeable)
```lua
pack.get_info(packid: str) -> {
id: str,
title: str,
creator: str,
description: str,
version: str,
path: str,
icon: str, -- not available in headless mode
dependencies: optional strings array
id: str,
title: str,
creator: str,
description: str,
version: str,
path: str,
icon: str, -- not available in headless mode
dependencies: optional strings array
}
```
@ -95,6 +95,7 @@ Returns information about the pack (not necessarily installed).
- `!` - required
- `?` - optional
- `~` - weak
for example `!teal`
To obtain information about multiple packs, use table of ids to avoid re-scanning:one

View file

@ -114,6 +114,21 @@ body:set_crouching(enabled: bool)
body:get_body_type() -> str
-- Sets the physical body type
body:set_body_type(type: str)
-- Returns the body material (same as for blocks)
body:get_material() -> str
-- Sets the body material
body:set_material(material: str)
-- Returns the body's mass
body:get_mass() -> number
-- Sets the body's mass
body:set_mass(mass: number)
-- Returns the body's elasticity
body:get_elasticity() -> number
-- Sets the body's elasticity
body:set_elasticity(elasticity: number)
```
### Skeleton

View file

@ -98,6 +98,7 @@ A panel that controls the size and position of two elements. Allows the user to
Inner text is a button text.
- `font` - font name
- `text-align` - inner text alignment (*left/center/right*). Type: string.
## *checkbox*
@ -108,6 +109,7 @@ Inner text is a button text.
## *label*
- `font` - font name
- `text-align` - text alignment (*left/center/right*). Type: string.
- `valign` - vertical text alignment: top/center/bottom.
- `supplier` - text supplier (called every frame).
@ -131,6 +133,7 @@ Inner text is a button text.
Inner text - initially entered text
- `font` - font name
- `placeholder` - placeholder text (used if the text field is empty)
- `hint` - text displayed if the text field is empty (not sent to consumer, sub-consumer and validator).
- `supplier` - text supplier (called every frame)
@ -190,6 +193,14 @@ Example of list description:
- `selected` - initially selected value. Default: "".
- `onselect` - function to which the user-selected value is passed
## *bindbox*
An element for displaying and editing key or mouse button bindings.
- `font` - font name. Type: string.
- `binding` - binding name. Type: string.
- `padding` - padding between text and element borders. Type: number. Default: 6
# Inventory elements
## *inventory*
@ -213,9 +224,6 @@ Element must be in direct sub-element of *inventory*.
## *slots-grid*
- `start-index` - inventory slot index of the first slot. Type: integer
- `rows` - number of grid rows (unnecessary if *cols* and *count* specified). Type: integer
- `cols` - number of grid columns (unnecessary if *rows* and *count* specified). Type: integer
- `count` - total number of slots in grid (unnecessary if *rows* and *cols* specified). Type: integer
- `interval` - visual slots interval. Type: number
- `padding` - grid padding (not slots interval). Type: number. (*deprecated*)
- `sharefunc` - Lua event called on <btn>LMB</btn> + <btn>Shift</btn>. Inventory id and slot index passed as arguments.
@ -223,3 +231,8 @@ Element must be in direct sub-element of *inventory*.
- `onrightclick` - Lua event called on <btn>RMB</btn> click. Inventory id and slot index passed as arguments.
- `taking` - the ability to take an item from a slot.
- `placing` - the ability to put an item in a slot.
Slots configuration (just specify two attributes):
- `rows` - ​​number of rows. Type: integer
- `cols` - number of columns. Type: integer
- `count` - total number of slots. Type: integer