1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-04 00:40:24 +02:00

Add API function to invoke player respawn

closes #12272
This commit is contained in:
sfan5
2022-05-25 19:29:11 +02:00
parent da71e86633
commit f195db2d14
5 changed files with 27 additions and 3 deletions

View File

@ -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`
-----------