mirror of
https://github.com/minetest/minetest.git
synced 2024-12-04 05:23:44 +01:00
Replace inconsistent mentions of core.* with minetest.* (#5749)
This commit is contained in:
parent
0e0c824ea7
commit
f286c54908
@ -1872,14 +1872,14 @@ Escape sequences
|
|||||||
Most text can contain escape sequences, that can for example color the text.
|
Most text can contain escape sequences, that can for example color the text.
|
||||||
There are a few exceptions: tab headers, dropdowns and vertical labels can't.
|
There are a few exceptions: tab headers, dropdowns and vertical labels can't.
|
||||||
The following functions provide escape sequences:
|
The following functions provide escape sequences:
|
||||||
* `core.get_color_escape_sequence(color)`:
|
* `minetest.get_color_escape_sequence(color)`:
|
||||||
* `color` is a ColorString
|
* `color` is a ColorString
|
||||||
* The escape sequence sets the text color to `color`
|
* The escape sequence sets the text color to `color`
|
||||||
* `core.colorize(color, message)`:
|
* `minetest.colorize(color, message)`:
|
||||||
* Equivalent to:
|
* Equivalent to:
|
||||||
`core.get_color_escape_sequence(color) ..
|
`minetest.get_color_escape_sequence(color) ..
|
||||||
message ..
|
message ..
|
||||||
core.get_color_escape_sequence("#ffffff")`
|
minetest.get_color_escape_sequence("#ffffff")`
|
||||||
* `color.get_background_escape_sequence(color)`
|
* `color.get_background_escape_sequence(color)`
|
||||||
* `color` is a ColorString
|
* `color` is a ColorString
|
||||||
* The escape sequence sets the background of the whole text element to
|
* The escape sequence sets the background of the whole text element to
|
||||||
@ -2026,7 +2026,7 @@ Helper functions
|
|||||||
reliable or verifyable. Compatible forks will have a different name and
|
reliable or verifyable. Compatible forks will have a different name and
|
||||||
version entirely. To check for the presence of engine features, test
|
version entirely. To check for the presence of engine features, test
|
||||||
whether the functions exported by the wanted features exist. For example:
|
whether the functions exported by the wanted features exist. For example:
|
||||||
`if core.nodeupdate then ... end`.
|
`if minetest.nodeupdate then ... end`.
|
||||||
|
|
||||||
### Logging
|
### Logging
|
||||||
* `minetest.debug(...)`
|
* `minetest.debug(...)`
|
||||||
@ -2359,8 +2359,8 @@ and `minetest.auth_reload` call the authetification handler.
|
|||||||
* `function EmergeAreaCallback(blockpos, action, calls_remaining, param)`
|
* `function EmergeAreaCallback(blockpos, action, calls_remaining, param)`
|
||||||
* - `blockpos` is the *block* coordinates of the block that had been emerged
|
* - `blockpos` is the *block* coordinates of the block that had been emerged
|
||||||
* - `action` could be one of the following constant values:
|
* - `action` could be one of the following constant values:
|
||||||
* `core.EMERGE_CANCELLED`, `core.EMERGE_ERRORED`, `core.EMERGE_FROM_MEMORY`,
|
* `minetest.EMERGE_CANCELLED`, `minetest.EMERGE_ERRORED`, `minetest.EMERGE_FROM_MEMORY`,
|
||||||
* `core.EMERGE_FROM_DISK`, `core.EMERGE_GENERATED`
|
* `minetest.EMERGE_FROM_DISK`, `minetest.EMERGE_GENERATED`
|
||||||
* - `calls_remaining` is the number of callbacks to be expected after this one
|
* - `calls_remaining` is the number of callbacks to be expected after this one
|
||||||
* - `param` is the user-defined parameter passed to emerge_area (or nil if the
|
* - `param` is the user-defined parameter passed to emerge_area (or nil if the
|
||||||
* parameter was absent)
|
* parameter was absent)
|
||||||
@ -2415,11 +2415,11 @@ and `minetest.auth_reload` call the authetification handler.
|
|||||||
might be removed.
|
might be removed.
|
||||||
* returns `false` if the area is not fully generated,
|
* returns `false` if the area is not fully generated,
|
||||||
`true` otherwise
|
`true` otherwise
|
||||||
* `core.check_single_for_falling(pos)`
|
* `minetest.check_single_for_falling(pos)`
|
||||||
* causes an unsupported `group:falling_node` node to fall and causes an
|
* causes an unsupported `group:falling_node` node to fall and causes an
|
||||||
unattached `group:attached_node` node to fall.
|
unattached `group:attached_node` node to fall.
|
||||||
* does not spread these updates to neighbours.
|
* does not spread these updates to neighbours.
|
||||||
* `core.check_for_falling(pos)`
|
* `minetest.check_for_falling(pos)`
|
||||||
* causes an unsupported `group:falling_node` node to fall and causes an
|
* causes an unsupported `group:falling_node` node to fall and causes an
|
||||||
unattached `group:attached_node` node to fall.
|
unattached `group:attached_node` node to fall.
|
||||||
* spread these updates to neighbours and can cause a cascade
|
* spread these updates to neighbours and can cause a cascade
|
||||||
@ -3408,9 +3408,9 @@ Note that the node being queried needs to have already been been registered.
|
|||||||
|
|
||||||
The following builtin node types have their Content IDs defined as constants:
|
The following builtin node types have their Content IDs defined as constants:
|
||||||
```
|
```
|
||||||
core.CONTENT_UNKNOWN (ID for "unknown" nodes)
|
minetest.CONTENT_UNKNOWN (ID for "unknown" nodes)
|
||||||
core.CONTENT_AIR (ID for "air" nodes)
|
minetest.CONTENT_AIR (ID for "air" nodes)
|
||||||
core.CONTENT_IGNORE (ID for "ignore" nodes)
|
minetest.CONTENT_IGNORE (ID for "ignore" nodes)
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Mapgen VoxelManip objects
|
##### Mapgen VoxelManip objects
|
||||||
|
Loading…
Reference in New Issue
Block a user