From 48493a979b4300d96ba17e2ef3a881641323f43e Mon Sep 17 00:00:00 2001 From: paramat Date: Fri, 2 Mar 2018 21:27:59 +0000 Subject: Gennotify: Add 'minetest.get_decoration_id' API Returns the decoration ID for the provided decoration name string. For use with gennotify, to know the decoration IDs for use in 'minetest.set_gen_notify'. --- doc/lua_api.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 29be2a98c..ccc30a2a1 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -2842,8 +2842,11 @@ and `minetest.auth_reload` call the authentication handler. * decoration * The second parameter is a list of IDS of decorations which notification is requested for. -* `get_gen_notify()` +* `minetest.get_gen_notify()` * Returns a flagstring and a table with the `deco_id`s. +* `minetest.get_decoration_id(decoration_name) + * Returns the decoration ID number for the provided decoration name string, + or `nil` on failure. * `minetest.get_mapgen_object(objectname)` * Return requested mapgen object if available (see "Mapgen objects") * `minetest.get_heat(pos)` -- cgit v1.2.3