aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2017-05-12 10:27:58 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-12 11:27:58 +0200
commitf286c54908e007e4861428f98017a156531fe3f0 (patch)
treeeb8206df22eaa593f0230a6bd6a399bcf94257f0
parent0e0c824ea75a812a99c7d329c3a4862d6beadf3b (diff)
downloadminetest-f286c54908e007e4861428f98017a156531fe3f0.tar.gz
minetest-f286c54908e007e4861428f98017a156531fe3f0.tar.bz2
minetest-f286c54908e007e4861428f98017a156531fe3f0.zip
Replace inconsistent mentions of core.* with minetest.* (#5749)
-rw-r--r--doc/lua_api.txt24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index a295d7d0e..4e2ec00c3 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1872,14 +1872,14 @@ Escape sequences
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.
The following functions provide escape sequences:
-* `core.get_color_escape_sequence(color)`:
+* `minetest.get_color_escape_sequence(color)`:
* `color` is a ColorString
* The escape sequence sets the text color to `color`
-* `core.colorize(color, message)`:
+* `minetest.colorize(color, message)`:
* Equivalent to:
- `core.get_color_escape_sequence(color) ..
+ `minetest.get_color_escape_sequence(color) ..
message ..
- core.get_color_escape_sequence("#ffffff")`
+ minetest.get_color_escape_sequence("#ffffff")`
* `color.get_background_escape_sequence(color)`
* `color` is a ColorString
* 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
version entirely. To check for the presence of engine features, test
whether the functions exported by the wanted features exist. For example:
- `if core.nodeupdate then ... end`.
+ `if minetest.nodeupdate then ... end`.
### Logging
* `minetest.debug(...)`
@@ -2359,8 +2359,8 @@ and `minetest.auth_reload` call the authetification handler.
* `function EmergeAreaCallback(blockpos, action, calls_remaining, param)`
* - `blockpos` is the *block* coordinates of the block that had been emerged
* - `action` could be one of the following constant values:
- * `core.EMERGE_CANCELLED`, `core.EMERGE_ERRORED`, `core.EMERGE_FROM_MEMORY`,
- * `core.EMERGE_FROM_DISK`, `core.EMERGE_GENERATED`
+ * `minetest.EMERGE_CANCELLED`, `minetest.EMERGE_ERRORED`, `minetest.EMERGE_FROM_MEMORY`,
+ * `minetest.EMERGE_FROM_DISK`, `minetest.EMERGE_GENERATED`
* - `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
* parameter was absent)
@@ -2415,11 +2415,11 @@ and `minetest.auth_reload` call the authetification handler.
might be removed.
* returns `false` if the area is not fully generated,
`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
unattached `group:attached_node` node to fall.
* 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
unattached `group:attached_node` node to fall.
* 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:
```
-core.CONTENT_UNKNOWN (ID for "unknown" nodes)
-core.CONTENT_AIR (ID for "air" nodes)
-core.CONTENT_IGNORE (ID for "ignore" nodes)
+minetest.CONTENT_UNKNOWN (ID for "unknown" nodes)
+minetest.CONTENT_AIR (ID for "air" nodes)
+minetest.CONTENT_IGNORE (ID for "ignore" nodes)
```
##### Mapgen VoxelManip objects