mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Allow the join/leave message to be overridden by mods.
This commit is contained in:
parent
bb225672f9
commit
d10cccee31
2 changed files with 19 additions and 7 deletions
|
@ -3071,6 +3071,10 @@ These functions return the leftover itemstack.
|
|||
* Replaces definition of a builtin hud element
|
||||
* `name`: `"breath"` or `"health"`
|
||||
* `hud_definition`: definition to replace builtin definition
|
||||
* `minetest.send_join_message(player_name)`
|
||||
* Can be overridden by mods to change the join message
|
||||
* `minetest.send_leave_message(player_name, timed_out)`
|
||||
* Can be overridden by mods to change the leave message
|
||||
* `minetest.hash_node_position({x=,y=,z=})`: returns an 48-bit integer
|
||||
* Gives a unique hash number for a node position (16+16+16=48bit)
|
||||
* `minetest.get_position_from_hash(hash)`: returns a position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue