diff options
author | wsor4035 <24964441+wsor4035@users.noreply.github.com> | 2020-12-15 13:05:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 19:05:55 +0100 |
commit | 3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f (patch) | |
tree | 5488a8fb95a267aef281e69c19998992b4c2505e /doc/lua_api.txt | |
parent | 4d41ed09750c7a2fbfeeeccb7a2c3452e3dd26dc (diff) | |
download | minetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.tar.gz minetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.tar.bz2 minetest-3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f.zip |
lua_api.txt: Add mod_orgin to node def (#10697)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
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 |