From 3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Tue, 15 Dec 2020 13:05:55 -0500 Subject: [PATCH] lua_api.txt: Add mod_orgin to node def (#10697) --- doc/lua_api.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2fbbd4226..f5c07fe85 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -7612,6 +7612,13 @@ Used by `minetest.register_node`. -- intensity: 1.0 = mid range of regular TNT. -- If defined, called when an explosion touches the node, instead of -- removing the node. + + mod_origin = "modname", + -- stores which mod actually registered a node + -- if it can not find a source, returns "??" + -- useful for getting what mod truly registered something + -- example: if a node is registered as ":othermodname:nodename", + -- nodename will show "othermodname", but mod_orgin will say "modname" } Crafting recipes