summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-25 19:29:11 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commitf195db2d140a7b4f2f2fbc438680c9d5e23a0d6d (patch)
treeaf2e07480ea04277ed2a8d16af42e9e86526f8fe /doc
parentda71e86633d0b27cd02d7aac9fdac625d141ca13 (diff)
downloadminetest-f195db2d140a7b4f2f2fbc438680c9d5e23a0d6d.tar.gz
minetest-f195db2d140a7b4f2f2fbc438680c9d5e23a0d6d.tar.bz2
minetest-f195db2d140a7b4f2f2fbc438680c9d5e23a0d6d.zip
Add API function to invoke player respawn
closes #12272
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 882c9c54c..15a067a5e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -7099,6 +7099,8 @@ object you are working with still exists.
* `intensity` sets the intensity of the shadows from 0 (no shadows, default) to 1 (blackness)
* `get_lighting()`: returns the current state of lighting for the player.
* Result is a table with the same fields as `light_definition` in `set_lighting`.
+* `respawn()`: Respawns the player using the same mechanism as the death screen,
+ including calling on_respawnplayer callbacks.
`PcgRandom`
-----------