mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 18:25:21 +01:00
Enforce newline after headings
This commit is contained in:
@@ -52,13 +52,16 @@ configuration file can usually be found at:
|
|||||||
## Useful Settings
|
## Useful Settings
|
||||||
|
|
||||||
### `gui_scaling`
|
### `gui_scaling`
|
||||||
|
|
||||||
This is a user-specified scaling factor for the GUI. If the main menu is too big or small on your device, try changing
|
This is a user-specified scaling factor for the GUI. If the main menu is too big or small on your device, try changing
|
||||||
this value.
|
this value.
|
||||||
|
|
||||||
### `mapblock_limit`
|
### `mapblock_limit`
|
||||||
|
|
||||||
Mobile devices generally have less RAM than PC, this setting limits how many mapblock can be kept in RAM.
|
Mobile devices generally have less RAM than PC, this setting limits how many mapblock can be kept in RAM.
|
||||||
|
|
||||||
### `fps_limit`
|
### `fps_limit`
|
||||||
|
|
||||||
This setting limits maximum FPS. The default value is `60`, which is the lowest commonly found
|
This setting limits maximum FPS. The default value is `60`, which is the lowest commonly found
|
||||||
Android refresh rate, but if you're using a device with a lower refresh rate, change this.
|
Android refresh rate, but if you're using a device with a lower refresh rate, change this.
|
||||||
|
|
||||||
|
|||||||
@@ -709,6 +709,7 @@ Please do not try to access the reference until the camera is initialized, other
|
|||||||
* Returns aspect ratio of screen
|
* Returns aspect ratio of screen
|
||||||
|
|
||||||
## `LocalPlayer`
|
## `LocalPlayer`
|
||||||
|
|
||||||
An interface to retrieve information about the player.
|
An interface to retrieve information about the player.
|
||||||
This object will only be available after the client is initialized. Earlier accesses will yield a `nil` value.
|
This object will only be available after the client is initialized. Earlier accesses will yield a `nil` value.
|
||||||
|
|
||||||
@@ -825,6 +826,7 @@ Methods:
|
|||||||
* Returns `true` on success, otherwise returns `nil`
|
* Returns `true` on success, otherwise returns `nil`
|
||||||
|
|
||||||
## `Settings`
|
## `Settings`
|
||||||
|
|
||||||
An interface to read config files in the format of `minetest.conf`.
|
An interface to read config files in the format of `minetest.conf`.
|
||||||
|
|
||||||
It can be created via `Settings(filename)`.
|
It can be created via `Settings(filename)`.
|
||||||
@@ -841,6 +843,7 @@ It can be created via `Settings(filename)`.
|
|||||||
* `to_table()`: returns `{[key1]=value1,...}`
|
* `to_table()`: returns `{[key1]=value1,...}`
|
||||||
|
|
||||||
## `NodeMetaRef`
|
## `NodeMetaRef`
|
||||||
|
|
||||||
Node metadata: reference extra data and functionality stored in a node.
|
Node metadata: reference extra data and functionality stored in a node.
|
||||||
Can be obtained via `minetest.get_meta(pos)`.
|
Can be obtained via `minetest.get_meta(pos)`.
|
||||||
|
|
||||||
|
|||||||
@@ -2936,6 +2936,7 @@ background elements are drawn before all other elements.
|
|||||||
coordinate. With the old system, newlines are spaced 2/5 of an inventory slot.
|
coordinate. With the old system, newlines are spaced 2/5 of an inventory slot.
|
||||||
|
|
||||||
### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
|
### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
|
||||||
|
|
||||||
* Displays a static formatted text with hyperlinks.
|
* Displays a static formatted text with hyperlinks.
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> This element is currently unstable and subject to change.
|
> This element is currently unstable and subject to change.
|
||||||
@@ -2944,6 +2945,7 @@ background elements are drawn before all other elements.
|
|||||||
* `text` is the formatted text using `Markup Language` described below.
|
* `text` is the formatted text using `Markup Language` described below.
|
||||||
|
|
||||||
### `vertlabel[<X>,<Y>;<label>]`
|
### `vertlabel[<X>,<Y>;<label>]`
|
||||||
|
|
||||||
* Textual label drawn vertically
|
* Textual label drawn vertically
|
||||||
* `label` is the text on the label
|
* `label` is the text on the label
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
@@ -3112,6 +3114,7 @@ background elements are drawn before all other elements.
|
|||||||
* See also `minetest.explode_scrollbar_event`
|
* See also `minetest.explode_scrollbar_event`
|
||||||
|
|
||||||
### `scrollbaroptions[opt1;opt2;...]`
|
### `scrollbaroptions[opt1;opt2;...]`
|
||||||
|
|
||||||
* Sets options for all following `scrollbar[]` elements
|
* Sets options for all following `scrollbar[]` elements
|
||||||
* `min=<int>`
|
* `min=<int>`
|
||||||
* Sets scrollbar minimum value, defaults to `0`.
|
* Sets scrollbar minimum value, defaults to `0`.
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# Minetest Lua Mainmenu API Reference 5.8.0
|
# Minetest Lua Mainmenu API Reference 5.8.0
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
The main menu is defined as a formspec by Lua in `builtin/mainmenu/`
|
The main menu is defined as a formspec by Lua in `builtin/mainmenu/`
|
||||||
|
|||||||
@@ -18,28 +18,33 @@ Texture pack directory structure
|
|||||||
`-- Another Texture Pack
|
`-- Another Texture Pack
|
||||||
|
|
||||||
### Texture Pack
|
### Texture Pack
|
||||||
|
|
||||||
This is a directory containing the entire contents of a single texture pack.
|
This is a directory containing the entire contents of a single texture pack.
|
||||||
It can be chosen more or less freely and will also become the name of the
|
It can be chosen more or less freely and will also become the name of the
|
||||||
texture pack. The name must not be "base".
|
texture pack. The name must not be "base".
|
||||||
|
|
||||||
### `texture_pack.conf`
|
### `texture_pack.conf`
|
||||||
|
|
||||||
A key-value config file with the following keys:
|
A key-value config file with the following keys:
|
||||||
|
|
||||||
* `title` - human readable title
|
* `title` - human readable title
|
||||||
* `description` - short description, shown in the content tab
|
* `description` - short description, shown in the content tab
|
||||||
|
|
||||||
### `description.txt`
|
### `description.txt`
|
||||||
|
|
||||||
**Deprecated**, you should use texture_pack.conf instead.
|
**Deprecated**, you should use texture_pack.conf instead.
|
||||||
|
|
||||||
A file containing a short description of the texture pack to be shown in the
|
A file containing a short description of the texture pack to be shown in the
|
||||||
content tab.
|
content tab.
|
||||||
|
|
||||||
### `screenshot.png`
|
### `screenshot.png`
|
||||||
|
|
||||||
A preview image showing an in-game screenshot of this texture pack; it will be
|
A preview image showing an in-game screenshot of this texture pack; it will be
|
||||||
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
|
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
|
||||||
minimum size of 300×200 pixels.
|
minimum size of 300×200 pixels.
|
||||||
|
|
||||||
### `your_texture_1.png`, `your_texture_2.png`, etc.
|
### `your_texture_1.png`, `your_texture_2.png`, etc.
|
||||||
|
|
||||||
Any other PNG files will be interpreted as textures. They must have the same
|
Any other PNG files will be interpreted as textures. They must have the same
|
||||||
names as the textures they are supposed to override. For example, to override
|
names as the textures they are supposed to override. For example, to override
|
||||||
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
|
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ storing coordinates separately), but the format has been kept unchanged for
|
|||||||
that part.
|
that part.
|
||||||
|
|
||||||
## `map.sqlite`
|
## `map.sqlite`
|
||||||
|
|
||||||
`map.sqlite` is a `SQLite3` database, containing a single table, called
|
`map.sqlite` is a `SQLite3` database, containing a single table, called
|
||||||
`blocks`. It looks like this:
|
`blocks`. It looks like this:
|
||||||
|
|
||||||
@@ -423,6 +424,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
|
|||||||
* Always 2
|
* Always 2
|
||||||
|
|
||||||
## Node Data
|
## Node Data
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Zlib-compressed before map format version 29
|
> Zlib-compressed before map format version 29
|
||||||
|
|
||||||
@@ -439,6 +441,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
|
|||||||
* The location of a node in each of those arrays is `(z*16*16 + y*16 + x)`.
|
* The location of a node in each of those arrays is `(z*16*16 + y*16 + x)`.
|
||||||
|
|
||||||
### Node Metadata List
|
### Node Metadata List
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Zlib-compressed before map version format 29
|
> Zlib-compressed before map version format 29
|
||||||
* Before map format version 23:
|
* Before map format version 23:
|
||||||
@@ -470,6 +473,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
|
|||||||
> Version type was `u16` before map format version 23
|
> Version type was `u16` before map format version 23
|
||||||
|
|
||||||
## Node Timers
|
## Node Timers
|
||||||
|
|
||||||
* Map format version 23:
|
* Map format version 23:
|
||||||
* `u8` unused version (always 0)
|
* `u8` unused version (always 0)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,11 @@ Test Tools is a mod for developers that adds a bunch of tools to directly manipu
|
|||||||
Here's the list of tools:
|
Here's the list of tools:
|
||||||
|
|
||||||
## Remover
|
## Remover
|
||||||
|
|
||||||
Removes nodes and non-player entities that you punch.
|
Removes nodes and non-player entities that you punch.
|
||||||
|
|
||||||
## Node Setter
|
## Node Setter
|
||||||
|
|
||||||
Replace a node with another one.
|
Replace a node with another one.
|
||||||
|
|
||||||
First, punch a node you want to remember.
|
First, punch a node you want to remember.
|
||||||
@@ -16,6 +18,7 @@ Then rightclick any other node to replace it with the node you remembered.
|
|||||||
If you rightclick while pointing nothing, you can manually enter the node and param2.
|
If you rightclick while pointing nothing, you can manually enter the node and param2.
|
||||||
|
|
||||||
## Param2 Tool
|
## Param2 Tool
|
||||||
|
|
||||||
Change the value param2 of nodes.
|
Change the value param2 of nodes.
|
||||||
|
|
||||||
* Punch: Add 1 to param2
|
* Punch: Add 1 to param2
|
||||||
@@ -27,6 +30,7 @@ Change the value param2 of nodes.
|
|||||||
> Use the debug screen (F5) to see the param2 of the pointed node.
|
> Use the debug screen (F5) to see the param2 of the pointed node.
|
||||||
|
|
||||||
## Falling Node Tool
|
## Falling Node Tool
|
||||||
|
|
||||||
Turns nodes into falling nodes.
|
Turns nodes into falling nodes.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -35,6 +39,7 @@ Usage:
|
|||||||
* Place: Try to teleport up to 2 units upwards, then make it fall
|
* Place: Try to teleport up to 2 units upwards, then make it fall
|
||||||
|
|
||||||
## Node Meta Editor
|
## Node Meta Editor
|
||||||
|
|
||||||
Edit and view metadata of nodes.
|
Edit and view metadata of nodes.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -42,6 +47,7 @@ Usage:
|
|||||||
* Punch: Open node metadata editor
|
* Punch: Open node metadata editor
|
||||||
|
|
||||||
## Item Meta Editor
|
## Item Meta Editor
|
||||||
|
|
||||||
Edit and view metadata of items.
|
Edit and view metadata of items.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -50,6 +56,7 @@ Usage:
|
|||||||
inventory slot from the wielded item
|
inventory slot from the wielded item
|
||||||
|
|
||||||
## Entity Rotator
|
## Entity Rotator
|
||||||
|
|
||||||
Changes the entity rotation (with `set_rotation`).
|
Changes the entity rotation (with `set_rotation`).
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -61,6 +68,7 @@ Usage:
|
|||||||
Each usage rotates the entity by 22.5°.
|
Each usage rotates the entity by 22.5°.
|
||||||
|
|
||||||
## Entity Spawner
|
## Entity Spawner
|
||||||
|
|
||||||
Spawns entities.
|
Spawns entities.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -69,6 +77,7 @@ Usage:
|
|||||||
* Place to place selected entity
|
* Place to place selected entity
|
||||||
|
|
||||||
## Object Property Editor
|
## Object Property Editor
|
||||||
|
|
||||||
Edits properties of objects.
|
Edits properties of objects.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -80,6 +89,7 @@ To edit a property, select it in the list, enter a new value (in Lua syntax)
|
|||||||
and hit "Submit".
|
and hit "Submit".
|
||||||
|
|
||||||
## Object Attacher
|
## Object Attacher
|
||||||
|
|
||||||
Allows you to attach an object to another one.
|
Allows you to attach an object to another one.
|
||||||
|
|
||||||
Basic usage:
|
Basic usage:
|
||||||
@@ -98,6 +108,7 @@ Hint: To detach all objects nearby you (including on yourself), use the
|
|||||||
`/detach` server command.
|
`/detach` server command.
|
||||||
|
|
||||||
## Object Mover
|
## Object Mover
|
||||||
|
|
||||||
Move an object by a given distance.
|
Move an object by a given distance.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -107,6 +118,7 @@ Usage:
|
|||||||
* Sneak+place: Decrease move distance
|
* Sneak+place: Decrease move distance
|
||||||
|
|
||||||
## Children Getter
|
## Children Getter
|
||||||
|
|
||||||
Shows list of objects that are attached to an object (aka "children") in chat.
|
Shows list of objects that are attached to an object (aka "children") in chat.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -114,6 +126,7 @@ Usage:
|
|||||||
* Punch air: Show your own children
|
* Punch air: Show your own children
|
||||||
|
|
||||||
## Entity Visual Scaler
|
## Entity Visual Scaler
|
||||||
|
|
||||||
Change visual size of entities
|
Change visual size of entities
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -122,6 +135,7 @@ Usage:
|
|||||||
* Sneak+punch entity to decrease visual size
|
* Sneak+punch entity to decrease visual size
|
||||||
|
|
||||||
## Branding Iron
|
## Branding Iron
|
||||||
|
|
||||||
Give an object a temporary name.
|
Give an object a temporary name.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -133,6 +147,7 @@ Usage:
|
|||||||
Use `testtools.get_branded_object(name)` to get an ObjRef.
|
Use `testtools.get_branded_object(name)` to get an ObjRef.
|
||||||
|
|
||||||
## Note Meta Privatizer
|
## Note Meta Privatizer
|
||||||
|
|
||||||
Sets the 'formspec' and 'infotext' metadata fields of a node
|
Sets the 'formspec' and 'infotext' metadata fields of a node
|
||||||
to private. This means that clients can no longer access these
|
to private. This means that clients can no longer access these
|
||||||
fields.
|
fields.
|
||||||
@@ -142,6 +157,7 @@ Usage:
|
|||||||
* Punch: Set metadata of pointed node to private
|
* Punch: Set metadata of pointed node to private
|
||||||
|
|
||||||
## Light Tool
|
## Light Tool
|
||||||
|
|
||||||
Show light level of node.
|
Show light level of node.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
@@ -149,6 +165,7 @@ Usage:
|
|||||||
* Place: Show light info of the node that you touched
|
* Place: Show light info of the node that you touched
|
||||||
|
|
||||||
## Particle Spawner
|
## Particle Spawner
|
||||||
|
|
||||||
Spawn a random animated particle.
|
Spawn a random animated particle.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|||||||
Reference in New Issue
Block a user