mesecons/mesecons/init.lua

50 lines
1.6 KiB
Lua
Raw Normal View History

-- |\ /| ____ ____ ____ _____ ____ _____
-- | \ / | | | | | | | |\ | |
-- | \/ | |___ ____ |___ | | | | \ | |____
-- | | | | | | | | | \ | |
-- | | |___ ____| |___ |____ |____| | \| ____|
-- by Jeija, Uberi (Temperest), sfan5, VanessaE,
--
--
--
-- This mod adds mesecons[=minecraft redstone] and different receptors/effectors to minetest.
--
-- See the documentation on the forum for additional information, especially about crafting
--
2012-09-05 23:52:09 +02:00
-- For developer documentation see the Developers' section on mesecons.tk
-- PUBLIC VARIABLES
mesecon={} -- contains all functions and all global variables
mesecon.actions_on={} -- Saves registered function callbacks for mesecon on
mesecon.actions_off={} -- Saves registered function callbacks for mesecon off
2012-03-29 22:11:17 +02:00
mesecon.actions_change={} -- Saves registered function callbacks for mesecon change
2012-08-13 12:03:36 +02:00
mesecon.receptors={}
2012-08-12 10:57:00 +02:00
mesecon.effectors={}
2012-04-22 07:48:45 +02:00
mesecon.conductors={}
-- INCLUDE SETTINGS
dofile(minetest.get_modpath("mesecons").."/settings.lua")
--Presets (eg default rules)
dofile(minetest.get_modpath("mesecons").."/presets.lua");
2012-04-22 07:48:45 +02:00
--Internal API
2012-08-13 11:58:04 +02:00
dofile(minetest.get_modpath("mesecons").."/internal.lua");
2012-04-22 07:48:45 +02:00
--Deprecated stuff
dofile(minetest.get_modpath("mesecons").."/legacy.lua");
-- API API API API API API API API API API API API API API API API API API
2012-03-29 22:11:17 +02:00
2012-03-29 11:35:23 +02:00
print("[OK] mesecons")
--The actual wires
dofile(minetest.get_modpath("mesecons").."/wires.lua");
--Services like turnoff receptor on dignode and so on
dofile(minetest.get_modpath("mesecons").."/services.lua");