diff options
author | FaceDeer <derksenmobile@gmail.com> | 2016-12-30 23:38:18 -0700 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2016-12-30 23:38:18 -0700 |
commit | 2695c6103383996fedfd12098cf3f28c5fc43fe2 (patch) | |
tree | 7db55aac50e27846ff3da78f9a59687a942c1721 /init.lua | |
parent | 25ca1c02615a8d458e16ff10b12fd6395767663c (diff) |
Initial commit
Initial commit. Contains digger head, sand digger, builder, controller,
pusher, structure node, light, inventory, and digtron core crafting
item.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..92e0a88 --- /dev/null +++ b/init.lua @@ -0,0 +1,22 @@ +dofile( minetest.get_modpath( "digtron" ) .. "/util.lua" ) +dofile( minetest.get_modpath( "digtron" ) .. "/pointset.lua" ) + +dofile( minetest.get_modpath( "digtron" ) .. "/node_misc.lua" ) -- contains inventory and structure nodes +dofile( minetest.get_modpath( "digtron" ) .. "/node_diggers.lua" ) -- contains all diggers +dofile( minetest.get_modpath( "digtron" ) .. "/node_builders.lua" ) -- contains all builders (there's just one currently) +dofile( minetest.get_modpath( "digtron" ) .. "/node_controllers.lua" ) -- controllers + +dofile( minetest.get_modpath( "digtron" ) .."/recipes.lua" ) + +digtron.refractory = 1.0 -- How long a digtron waits between cycles. + +-- digtron group numbers: +-- 1 - generic digtron node, nothing special is done with these. They're just dragged along. +-- 2 - inventory-holding digtron, has a "main" inventory that the digtron can add to and take from. +-- 3 - digger head, has an "execute_dig" method in its definition +-- 4 - builder head, has a "test_build" and "execute_build" method in its definition + + + + + |