aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorwsor4035 <24964441+wsor4035@users.noreply.github.com>2020-12-15 13:05:55 -0500
committerGitHub <noreply@github.com>2020-12-15 19:05:55 +0100
commit3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f (patch)
tree5488a8fb95a267aef281e69c19998992b4c2505e /doc
parent4d41ed09750c7a2fbfeeeccb7a2c3452e3dd26dc (diff)
downloadminetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.tar.gz
minetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.tar.bz2
minetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.zip
lua_api.txt: Add mod_orgin to node def (#10697)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt7
1 files changed, 7 insertions, 0 deletions
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