summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ward <anjayward@gmail.com>2013-01-10 21:15:30 +0000
committerAndrew Ward <anjayward@gmail.com>2013-01-10 21:15:30 +0000
commitebb81cce88fbcbf9816587a5ba544fb8e5cf1fb1 (patch)
tree653a3dab5b010ca33b3993c481d6b7f23ead520d
parent203ae5d42065ef6fbc050cde7a8b22d262d6c843 (diff)
Update support.lua
-rw-r--r--support.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/support.lua b/support.lua
index a4bdb50..e633fed 100644
--- a/support.lua
+++ b/support.lua
@@ -9,6 +9,12 @@
-- ======================================
print "Food [Support] - Initialising"
+
+--NODE_IMPLEMENT() Gets an item from another mod softly
+-- modname: the name of the mod that the item will be got from
+-- n_ext: the name of the item that we want to get
+-- n_int: the name we want to save the item so we can load it as an ingredient
+-- resultfunc: if the mod does not exist, then do this function
function node_implement(modname,n_ext,n_int,resultfunc)
if not minetest.get_modpath(modname) then
-- Mod is NOT installed