aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-12-20 14:17:39 +0100
committerorwell96 <mono96.mml@gmail.com>2016-12-20 14:17:39 +0100
commitf806ed9eee8c13eb0b4868641311d25257c63f46 (patch)
tree0657366d21caf17881266054baa1dfae2365b9d8 /advtrains/init.lua
parent05ce694decc0653997f45fa4f9a24b40057dbd01 (diff)
downloadadvtrains-f806ed9eee8c13eb0b4868641311d25257c63f46.tar.gz
advtrains-f806ed9eee8c13eb0b4868641311d25257c63f46.tar.bz2
advtrains-f806ed9eee8c13eb0b4868641311d25257c63f46.zip
Turning mod into a modpack and separating the trains from the core mod
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua42
1 files changed, 42 insertions, 0 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
new file mode 100644
index 0000000..41b624e
--- /dev/null
+++ b/advtrains/init.lua
@@ -0,0 +1,42 @@
+--advtrains
+
+advtrains={}
+
+advtrains.modpath = minetest.get_modpath("advtrains")
+
+--print=function(text)
+-- minetest.log("action", tostring(text) or "<non-string>")
+--end
+print = function(t) minetest.log("action", t) minetest.chat_send_all(t) end
+
+dofile(advtrains.modpath.."/helpers.lua");
+dofile(advtrains.modpath.."/debugitems.lua");
+
+advtrains.meseconrules =
+{{x=0, y=0, z=-1},
+ {x=1, y=0, z=0},
+ {x=-1, y=0, z=0},
+ {x=0, y=0, z=1},
+ {x=1, y=1, z=0},
+ {x=1, y=-1, z=0},
+ {x=-1, y=1, z=0},
+ {x=-1, y=-1, z=0},
+ {x=0, y=1, z=1},
+ {x=0, y=-1, z=1},
+ {x=0, y=1, z=-1},
+ {x=0, y=-1, z=-1},
+ {x=0, y=-2, z=0}}
+dofile(advtrains.modpath.."/trainlogic.lua")
+dofile(advtrains.modpath.."/trainhud.lua")
+dofile(advtrains.modpath.."/trackplacer.lua")
+dofile(advtrains.modpath.."/tracks.lua")
+dofile(advtrains.modpath.."/atc.lua")
+dofile(advtrains.modpath.."/wagons.lua")
+
+dofile(advtrains.modpath.."/pseudoload.lua")
+dofile(advtrains.modpath.."/couple.lua")
+dofile(advtrains.modpath.."/damage.lua")
+
+dofile(advtrains.modpath.."/signals.lua")
+dofile(advtrains.modpath.."/misc_nodes.lua")
+dofile(advtrains.modpath.."/crafting.lua")