summaryrefslogtreecommitdiff
path: root/mesecons
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-04-22 07:55:57 +0200
committerJeija <norrepli@gmail.com>2012-04-22 07:55:57 +0200
commit029ad8be33aeb2596a88e676bc6e2218d03356d5 (patch)
treec0e2b5a4c3102fb97c7ee79bd284f387908cb75b /mesecons
parent84cc0264cad9351030ae9fa40f888420c49a9659 (diff)
downloadmesecons-029ad8be33aeb2596a88e676bc6e2218d03356d5.tar
mesecons-029ad8be33aeb2596a88e676bc6e2218d03356d5.tar.gz
mesecons-029ad8be33aeb2596a88e676bc6e2218d03356d5.tar.bz2
mesecons-029ad8be33aeb2596a88e676bc6e2218d03356d5.tar.xz
mesecons-029ad8be33aeb2596a88e676bc6e2218d03356d5.zip
Add documentation for conductors
Diffstat (limited to 'mesecons')
-rw-r--r--mesecons/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/mesecons/init.lua b/mesecons/init.lua
index 1b6992f..10a4533 100644
--- a/mesecons/init.lua
+++ b/mesecons/init.lua
@@ -64,6 +64,21 @@
-- minetest.env:remove_node(pos) -- The action: The removestone is removed
-- end -- end of if
--end) -- end of the function, )=end of the parameters of mesecon:register_on_signal_on
+--
+--CONDUCTORS: (new feature!! yay)
+--You can specify your custom conductors using
+--# mesecon:register_conductor(onstate, offstate)
+-- onstate=the conductor's nodename when it is turned on
+-- offstate=the conductor's nodename when it is turned off
+--
+--As you can see, conductors need an offstate and an onstate node, just like receptors
+--mesecons:mesecon_on / mesecons:mesecon_off are the default conductors
+--Other conductors connect to other conductors. It's always "the same energy"
+--! As there is no special drawtype, conductors don't connect to others visually,
+--but it works in fact.
+--
+--The function # mesecon:register_conductor(onstate, offstate) is the only thing you need to do,
+--the mod does everything else for you (turn the conductor on and off...)
-- INCLUDE SETTINGS
dofile(minetest.get_modpath("mesecons").."/settings.lua")