Merge remote-tracking branch 'minetest/master'
This commit is contained in:
commit
a5f670a8d5
@ -2134,7 +2134,7 @@ and `minetest.auth_reload` call the authetification handler.
|
||||
* `minetest.set_node(pos, node)`
|
||||
* `minetest.add_node(pos, node): alias set_node(pos, node)`
|
||||
* Set node at position (`node = {name="foo", param1=0, param2=0}`)
|
||||
* `minetest.swap_node(pos, node`
|
||||
* `minetest.swap_node(pos, node)`
|
||||
* Set node at position, but don't remove metadata
|
||||
* `minetest.remove_node(pos)`
|
||||
* Equivalent to `set_node(pos, "air")`
|
||||
@ -2340,7 +2340,7 @@ and `minetest.auth_reload` call the authetification handler.
|
||||
* `formname`: has to exactly match the one given in show_formspec, or the formspec will
|
||||
not close.
|
||||
* calling show_formspec(playername, formname, "") is equal to this expression
|
||||
* to close a formspec regardless of the formname, call
|
||||
* to close a formspec regardless of the formname, call
|
||||
minetest.close_formspec(playername, ""). USE THIS ONLY WHEN ABSOLUTELY NECESSARY!
|
||||
* `minetest.formspec_escape(string)`: returns a string
|
||||
* escapes the characters "[", "]", "\", "," and ";", which can not be used in formspecs
|
||||
@ -2576,6 +2576,10 @@ These functions return the leftover itemstack.
|
||||
|
||||
### Misc.
|
||||
* `minetest.get_connected_players()`: returns list of `ObjectRefs`
|
||||
* `minetest.hud_replace_builtin(name, hud_definition)`
|
||||
* Replaces definition of a builtin hud element
|
||||
* `name`: `"breath"` or `"health"`
|
||||
* `hud_definition`: definition to replace builtin definition
|
||||
* `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
|
||||
@ -2901,10 +2905,6 @@ This is basically a reference to a C++ `ServerActiveObject`
|
||||
* `hud_set_hotbar_selected_image(texturename)`
|
||||
* sets image for selected item of hotbar
|
||||
* `hud_get_hotbar_selected_image`: returns texturename
|
||||
* `hud_replace_builtin(name, hud_definition)`
|
||||
* replace definition of a builtin hud element
|
||||
* `name`: `"breath"` or `"health"`
|
||||
* `hud_definition`: definition to replace builtin definition
|
||||
* `set_sky(bgcolor, type, {texture names})`
|
||||
* `bgcolor`: ColorSpec, defaults to white
|
||||
* Available types:
|
||||
|
Loading…
x
Reference in New Issue
Block a user