diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 75 |
1 files changed, 41 insertions, 34 deletions
@@ -14,44 +14,51 @@ minetest.register_alias("gold_locked_chest", "technic:gold_locked_chest") minetest.register_alias("mithril_chest", "technic:mithril_chest") minetest.register_alias("mithril_locked_chest", "technic:mithril_locked_chest") + +modpath=minetest.get_modpath("technic") + --Read technic config file -dofile(minetest.get_modpath("technic").."/config.lua") +dofile(modpath.."/config.lua") +dofile(modpath.."/concrete.lua") +dofile(modpath.."/iron_chest.lua") +dofile(modpath.."/copper_chest.lua") +dofile(modpath.."/silver_chest.lua") +dofile(modpath.."/gold_chest.lua") +dofile(modpath.."/mithril_chest.lua") +dofile(modpath.."/electric_furnace.lua") +dofile(modpath.."/battery_box.lua") +dofile(modpath.."/wires.lua") +dofile(modpath.."/wires_mv.lua") +dofile(modpath.."/ores.lua") +dofile(modpath.."/tool_workshop.lua") +dofile(modpath.."/music_player.lua") +dofile(modpath.."/grinder.lua") +dofile(modpath.."/mining_laser_mk1.lua") +dofile(modpath.."/injector.lua") +dofile(modpath.."/generator.lua") +dofile(modpath.."/solar_panel.lua") +dofile(modpath.."/geothermal.lua") +dofile(modpath.."/water_mill.lua") +dofile(modpath.."/alloy_furnace.lua") +dofile(modpath.."/items.lua") +dofile(modpath.."/mining_drill.lua") +dofile(modpath.."/screwdriver.lua") +dofile(modpath.."/sonic_screwdriver.lua") +dofile(modpath.."/node_breaker.lua") +dofile(modpath.."/deployer.lua") +dofile(modpath.."/constructor.lua") +dofile(modpath.."/tree_tap.lua") +dofile(modpath.."/flashlight.lua") +dofile(modpath.."/cans.lua") +dofile(modpath.."/chainsaw.lua") -dofile(minetest.get_modpath("technic").."/concrete.lua") -dofile(minetest.get_modpath("technic").."/iron_chest.lua") -dofile(minetest.get_modpath("technic").."/copper_chest.lua") -dofile(minetest.get_modpath("technic").."/silver_chest.lua") -dofile(minetest.get_modpath("technic").."/gold_chest.lua") -dofile(minetest.get_modpath("technic").."/mithril_chest.lua") -dofile(minetest.get_modpath("technic").."/electric_furnace.lua") -dofile(minetest.get_modpath("technic").."/battery_box.lua") -dofile(minetest.get_modpath("technic").."/wires.lua") -dofile(minetest.get_modpath("technic").."/wires_mv.lua") -dofile(minetest.get_modpath("technic").."/ores.lua") +if enable_item_drop then dofile(modpath.."/item_drop.lua") end +if enable_item_pickup then dofile(modpath.."/item_pickup.lua") end -dofile(minetest.get_modpath("technic").."/tool_workshop.lua") -dofile(minetest.get_modpath("technic").."/music_player.lua") -dofile(minetest.get_modpath("technic").."/grinder.lua") -dofile(minetest.get_modpath("technic").."/mining_laser_mk1.lua") -dofile(minetest.get_modpath("technic").."/injector.lua") -dofile(minetest.get_modpath("technic").."/generator.lua") -dofile(minetest.get_modpath("technic").."/solar_panel.lua") -dofile(minetest.get_modpath("technic").."/geothermal.lua") -dofile(minetest.get_modpath("technic").."/water_mill.lua") -dofile(minetest.get_modpath("technic").."/alloy_furnace.lua") -dofile(minetest.get_modpath("technic").."/items.lua") -dofile(minetest.get_modpath("technic").."/mining_drill.lua") -dofile(minetest.get_modpath("technic").."/screwdriver.lua") -dofile(minetest.get_modpath("technic").."/sonic_screwdriver.lua") -dofile(minetest.get_modpath("technic").."/node_breaker.lua") -dofile(minetest.get_modpath("technic").."/deployer.lua") -dofile(minetest.get_modpath("technic").."/constructor.lua") -dofile(minetest.get_modpath("technic").."/tree_tap.lua") -dofile(minetest.get_modpath("technic").."/flashlight.lua") -dofile(minetest.get_modpath("technic").."/cans.lua") -dofile(minetest.get_modpath("technic").."/chainsaw.lua") -if enable_item_drop then dofile(minetest.get_modpath("technic").."/item_drop.lua") end +--MV machines +dofile(modpath.."/solar_panel_mv.lua") +dofile(modpath.."/battery_box_mv.lua") function has_locked_chest_privilege(meta, player) |