2012-03-05 19:21:26 +01:00
|
|
|
-- |\ /| ____ ____ ____ _____ ____ _____
|
|
|
|
-- | \ / | | | | | | | |\ | |
|
|
|
|
-- | \/ | |___ ____ |___ | | | | \ | |____
|
|
|
|
-- | | | | | | | | | \ | |
|
|
|
|
-- | | |___ ____| |___ |____ |____| | \| ____|
|
2012-12-08 14:14:04 +01:00
|
|
|
-- by Jeija, Uberi (Temperest), sfan5, VanessaE,
|
2012-03-05 19:21:26 +01:00
|
|
|
--
|
|
|
|
--
|
|
|
|
--
|
|
|
|
-- 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
|
2012-03-05 19:21:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
-- 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={}
|
|
|
|
|
2012-08-11 22:58:00 +02:00
|
|
|
-- INCLUDE SETTINGS
|
|
|
|
dofile(minetest.get_modpath("mesecons").."/settings.lua")
|
|
|
|
|
2012-12-08 14:14:04 +01:00
|
|
|
--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
|
|
|
|
2012-12-08 14:14:04 +01:00
|
|
|
--Deprecated stuff
|
|
|
|
dofile(minetest.get_modpath("mesecons").."/legacy.lua");
|
2012-03-05 19:21:26 +01:00
|
|
|
|
2012-12-08 14:14:04 +01:00
|
|
|
-- API API API API API API API API API API API API API API API API API API
|
2012-03-05 19:21:26 +01:00
|
|
|
|
2012-03-29 22:11:17 +02:00
|
|
|
|
2012-08-10 18:58:21 +02:00
|
|
|
|
2012-03-29 11:35:23 +02:00
|
|
|
|
2012-12-08 14:14:04 +01:00
|
|
|
print("[OK] mesecons")
|
2012-03-05 19:21:26 +01:00
|
|
|
|
2012-08-11 22:58:00 +02:00
|
|
|
--The actual wires
|
|
|
|
dofile(minetest.get_modpath("mesecons").."/wires.lua");
|
2012-08-13 08:50:10 +02:00
|
|
|
|
|
|
|
--Services like turnoff receptor on dignode and so on
|
|
|
|
dofile(minetest.get_modpath("mesecons").."/services.lua");
|