techage/init.lua

73 lines
2.3 KiB
Lua
Raw Normal View History

2019-03-02 14:24:48 +03:00
techage = {
NodeDef = {}, -- node registration info
}
techage.max_num_forceload_blocks = tonumber(minetest.setting_get("techage_max_num_forceload_blocks")) or 12
techage.basalt_stone_enabled = minetest.setting_get("techage_basalt_stone_enabled") == "true"
techage.machine_aging_value = tonumber(minetest.setting_get("techage_machine_aging_value")) or 100
2019-03-17 17:33:13 +03:00
techage.ore_rarity = tonumber(minetest.setting_get("techage_ore_rarity")) or 1
2019-03-02 14:24:48 +03:00
local MP = minetest.get_modpath("techage")
-- Load support for intllib.
dofile(MP.."/basis/intllib.lua")
-- Basis features
2019-03-02 14:24:48 +03:00
dofile(MP.."/basis/power.lua") -- power distribution
dofile(MP.."/basis/node_states.lua")
2019-03-02 14:24:48 +03:00
dofile(MP.."/basis/trowel.lua") -- hidden networks
dofile(MP.."/basis/junction.lua") -- network junction box
2019-03-09 21:26:15 +03:00
dofile(MP.."/basis/tubes.lua") -- tubelib replacement
dofile(MP.."/basis/command.lua") -- tubelib replacement
2019-03-10 15:53:53 +03:00
dofile(MP.."/basis/consumer.lua") -- consumer base model
dofile(MP.."/basis/steam_pipe.lua")
dofile(MP.."/basis/firebox.lua")
2019-03-02 14:24:48 +03:00
2019-03-17 17:33:13 +03:00
-- Iron Age
dofile(MP.."/iron_age/main.lua")
2019-03-17 17:33:13 +03:00
dofile(MP.."/iron_age/gravelsieve.lua")
dofile(MP.."/iron_age/hammer.lua")
dofile(MP.."/iron_age/lighter.lua")
dofile(MP.."/iron_age/charcoalpile.lua")
dofile(MP.."/iron_age/coalburner.lua")
dofile(MP.."/iron_age/meltingpot.lua")
if minetest.global_exists("wielded_light") then
dofile(MP.."/iron_age/meridium.lua")
end
2019-03-17 17:33:13 +03:00
2019-03-02 14:24:48 +03:00
-- Steam Engine
2019-03-08 23:18:55 +03:00
dofile(MP.."/steam_engine/drive_axle.lua")
dofile(MP.."/steam_engine/firebox.lua")
dofile(MP.."/steam_engine/boiler.lua")
dofile(MP.."/steam_engine/cylinder.lua")
dofile(MP.."/steam_engine/flywheel.lua")
dofile(MP.."/steam_engine/gearbox.lua")
dofile(MP.."/steam_engine/consumer.lua")
2019-03-11 00:33:03 +03:00
dofile(MP.."/steam_engine/battery.lua")
2019-03-02 14:24:48 +03:00
dofile(MP.."/electric/electric_cable.lua")
dofile(MP.."/electric/test.lua")
2019-03-08 20:16:44 +03:00
dofile(MP.."/electric/generator.lua")
dofile(MP.."/electric/consumer.lua")
2019-03-02 14:24:48 +03:00
2019-03-17 17:33:13 +03:00
-- Basic Machines
2019-03-09 21:26:15 +03:00
dofile(MP.."/basic_machines/pusher.lua")
dofile(MP.."/basic_machines/legacy_nodes.lua")
2019-03-10 13:36:00 +03:00
dofile(MP.."/basic_machines/grinder.lua")
2019-03-11 00:33:03 +03:00
dofile(MP.."/basic_machines/distributor.lua")
2019-03-17 17:33:13 +03:00
dofile(MP.."/basic_machines/gravelsieve.lua")
dofile(MP.."/basic_machines/chest.lua")
2019-03-09 15:42:51 +03:00
-- Coal power station
dofile(MP.."/coal_power_station/firebox.lua")
2019-03-02 14:24:48 +03:00
2019-03-03 20:15:30 +03:00
--dofile(MP.."/fermenter/biogas_pipe.lua")
2019-03-08 01:12:07 +03:00
--dofile(MP.."/fermenter/gasflare.lua")
2019-03-02 14:24:48 +03:00
2019-03-10 15:53:53 +03:00
--dofile(MP.."/nodes/test.lua")
2019-03-08 01:12:07 +03:00
--dofile(MP.."/mechanic/perf_test.lua")