Commit Graph

68 Commits

Author SHA1 Message Date
Jeija
192b9eca4f Fix crash when digging unknown nodes 2012-12-10 21:14:03 +01:00
Jeija
e9f2beb2c6 Slightly change wire look (may be reverted?) 2012-12-10 20:39:12 +01:00
Jeija
5904abbd79 Port gates (finally) 2012-12-10 19:46:24 +01:00
Jeija
961b955f2d Port door, fix button/lever bug, new visual style for receiver 2012-12-09 13:28:32 +01:00
Jeija
b37bdbf55c Port a lot more (basically everything apart from gates, pistons and extrawire crossing) to the new nodedef system. There are some problems with wall button and wall lever (in the way they visually connect to wires) 2012-12-09 00:42:30 +01:00
Jeija
cf6080f723 Port more blocks to nodedef system: object detector, extrawires, water turbine, insulated wire 2012-12-08 22:28:46 +01:00
Jeija
00e071b695 Cleanup, make and use util.lua, port command block and delayer to nodedef 2012-12-08 21:56:09 +01:00
Jeija
8578fd89c8 Port lightstones (as reference for effectors) + blinky plant to the new nodedef system 2012-12-08 19:02:34 +01:00
Jeija
472650f099 Finish new mesecon-in-nodedef for conductors and receptors. Make wires and switch use it for reference. 2012-12-08 17:50:25 +01:00
Jeija
e0aa5b1d3d New branch: Move mesecon to node definition instead of functions like register_conductor; first steps: move everything to legacy 2012-12-08 14:14:04 +01:00
PilzAdam
4a8e20b68e Speed update of pressureplates up by using node_timers 2012-12-07 15:52:52 +01:00
Jeija
7542dd4da0 Fix a bug (in some cases the output rules of a receptor weren't respected, bug introduced by commit before, 64d109b31b) 2012-12-03 18:59:34 +01:00
Anthony Zhang
64d109b31b mesecon:updatenode() was written to work only with conductors, though in several places it was used on recepters and effectors. This issue, reported by simion314, is fixed in this commit by explicitly checking for the type of mesecon node being updated. 2012-12-01 18:34:05 -05:00
Jeija
f959c16763 Fix Microcontroller bug (discovered by Fenris) and some others that propably noone found 2012-09-08 15:10:31 +02:00
Jeija
4ae7bc9aa6 Use sunlight_propagates = true for some more nodes 2012-09-07 15:59:49 +02:00
Jeija
3928d54d0c Implement mesecon:register_receptor(onstate, offstate, rules, get_rules) and make add_receptor_node(_off) deprecated 2012-09-06 09:53:30 +02:00
Jeija
7e7e1de725 Code cleanup 2012-09-05 23:52:09 +02:00
Vanessa Ezekowitz
bca93e8287 minor tweak to vertical mesecons wire stubs to help with z-fighting objects
above them
2012-08-21 14:19:28 -04:00
Jeija
15fa38b848 Switch from tile_images to tiles = {...} 2012-08-20 10:12:10 +02:00
Jeija
863ef26b63 Make isolated wires depend on facedir, rename them to 'insulated' 2012-08-17 11:59:06 +02:00
Jeija
78fdedc880 Add conductor rules, add demo isolated mesecons to proof that it works 2012-08-16 21:24:06 +02:00
Jeija
6214dbf66e Remove Temperest setting as it is an extension now 2012-08-15 11:11:13 +02:00
Jeija
c58882b0c6 Bugfix: Check if receptor node is powered from somewhere before turning it off in mesecons:turnoff 2012-08-13 22:42:45 +02:00
Jeija
9396ce8940 Re-enable backwards compatibility (sorry for disabling) 2012-08-13 21:51:41 +02:00
Jeija
00ce2540c2 New effector system, effectors have to be registered with mesecon:register_effector(onstate, offstate, rules, function get_rules) rules and function get_rules are optional. You don't have to specify both onstate and offstate (required for e.g. removestone) 2012-08-13 20:17:45 +02:00
Jeija
24c50571f7 Make mesecons only connect to input and output ports (e.g. of the delayer) 2012-08-13 16:49:14 +02:00
Jeija
b197d29bef Code cleanup, little bugfix (some conductors placed next to receptors didn't turn on) 2012-08-13 13:12:19 +02:00
Jeija
987de2c7d5 Merge pull request #23 from VanessaE/master
solar panel doesn't actually need a side texture.
2012-08-13 03:08:12 -07:00
Jeija
cf6106ce43 Code cleanup - remove internal_api.lua (now internal.lua) 2012-08-13 12:05:37 +02:00
Jeija
955b8254dd Code cleanup 2012-08-13 12:03:36 +02:00
Jeija
b8ba13a17a Code cleanup 2012-08-13 11:58:04 +02:00
Vanessa Ezekowitz
b78b540653 reworked textures for mesecons wires, added a new one for each of on/off
states, to allow wires without junction bumps to be textured differently.
2012-08-13 05:54:14 -04:00
Jeija
c20a4b3a89 Minimal speedup by not checking some nodes twice for receptors 2012-08-13 09:37:55 +02:00
Jeija
c8c2fd32da Code cleanup and ond more extremely small speedup 2012-08-13 08:50:10 +02:00
Vanessa Ezekowitz
68342c79d5 Made X <-> Z bends not produce junction bump (only appears on T-junctions,
crossings, etc)
2012-08-12 22:31:35 -04:00
Vanessa Ezekowitz
6d499ae971 Slimmed down wire junctions a bit. 2012-08-12 22:28:45 -04:00
Jeija
fc74976f9c Further (small) speed improvement, shrink code & more comments on it 2012-08-12 23:02:38 +02:00
Jeija
3ea68a6eae Fix mesecon delayer bugs and other non-functional changes 2012-08-12 21:28:53 +02:00
Jeija
9829abc74d HUGE speed improvement 2012-08-12 10:57:00 +02:00
Vanessa Ezekowitz
d950f0d169 Merge branch 'master' of github.com:Jeija/minetest-mod-mesecons 2012-08-11 17:52:11 -04:00
Vanessa Ezekowitz
d2aeeb3e94 Reverted back to old mesecons wire image for inventory 2012-08-11 17:51:36 -04:00
Jeija
8b62511615 Add some wires to mesecon_conductor_craftable group 2012-08-11 23:45:51 +02:00
Jeija
1f6e1fa7ab Mesecons only connect to blocks with group mesecon > 1 2012-08-11 23:39:28 +02:00
Jeija
6b1941a380 Add new nodebox style wires. Can be activated by setting NEW_STYLE_WIRES to true (in mesecons/settings.lua) 2012-08-11 22:58:00 +02:00
Jeija
8fa6894953 Consistency improvement and remove dead code 2012-08-10 18:58:21 +02:00
Jeija
ef740353ef Add first experimental version of a (programmable) microcontroller 2012-08-08 13:26:32 +02:00
sfan5
13538d56d9 Fix mesecon:updatenode for the last Time... 2012-08-08 12:39:33 +02:00
sfan5
f4782df445 Finally fix mesecon:updatenode 2012-08-08 12:31:00 +02:00
sfan5
6b5c789204 Fix Typo in mesecon:nodeupdate 2012-08-08 12:27:45 +02:00
sfan5
dd1921c03a Add mesecon:nodeupdate Function 2012-08-08 12:16:28 +02:00