mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-24 09:50:31 +01:00
d40946fa38
minetest.conf technic_cnc_use_technic = false disables use of power, returns items instantly, uses only default stuff in craft recipe (defaults to enabled if technic is installed)
19 lines
679 B
Lua
19 lines
679 B
Lua
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")
|