diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-12-01 09:06:00 -0500 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-12-01 09:06:00 -0500 |
commit | 856b86858ebfa4af2c352b022188f82dcff7ed92 (patch) | |
tree | 867b0323f38e6b582b3fa3e4e1e896607493d5b1 /technic_cnc/init.lua | |
parent | 2d8ff9f889450fb5c36016276997544aae98a350 (diff) | |
download | dreambuilder_modpack-856b86858ebfa4af2c352b022188f82dcff7ed92.tar dreambuilder_modpack-856b86858ebfa4af2c352b022188f82dcff7ed92.tar.gz dreambuilder_modpack-856b86858ebfa4af2c352b022188f82dcff7ed92.tar.bz2 dreambuilder_modpack-856b86858ebfa4af2c352b022188f82dcff7ed92.tar.xz dreambuilder_modpack-856b86858ebfa4af2c352b022188f82dcff7ed92.zip |
update basic_materials, biome_lib, technic, digilines, digistuff,
gloopblocks, homedecor, moreblocks, pipeworks, prefab_redo
Diffstat (limited to 'technic_cnc/init.lua')
-rw-r--r-- | technic_cnc/init.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/technic_cnc/init.lua b/technic_cnc/init.lua new file mode 100644 index 0000000..3c4da3e --- /dev/null +++ b/technic_cnc/init.lua @@ -0,0 +1,18 @@ +local modpath = minetest.get_modpath("technic_cnc") + +technic_cnc = {} + +technic_cnc.technic_modpath = minetest.get_modpath("technic") + +technic_cnc.use_technic = technic_cnc.technic_modpath + and minetest.settings:get_bool("technic_cnc_use_technic") ~= false + +if rawget(_G, "intllib") then + technic_cnc.getter = intllib.Getter() +else + technic_cnc.getter = function(s,a,...)if a==nil then return s end a={a,...}return s:gsub("(@?)@(%(?)(%d+)(%)?)",function(e,o,n,c)if e==""then return a[tonumber(n)]..(o==""and c or"")else return"@"..o..n..c end end) end +end + +dofile(modpath.."/cnc.lua") +dofile(modpath.."/cnc_api.lua") +dofile(modpath.."/cnc_materials.lua") |