]> git.lizzy.rs Git - dragonfireclient.git/commitdiff
lua_api.txt: Add mod_orgin to node def (#10697)
authorwsor4035 <24964441+wsor4035@users.noreply.github.com>
Tue, 15 Dec 2020 18:05:55 +0000 (13:05 -0500)
committerGitHub <noreply@github.com>
Tue, 15 Dec 2020 18:05:55 +0000 (19:05 +0100)
doc/lua_api.txt

index 2fbbd422677c42d587e7838b42f048d585bee48c..f5c07fe855f42ee5c2d21703157c7dc92d257403 100644 (file)
@@ -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