Commit Graph

37 Commits

Author SHA1 Message Date
Jeija
5aa0815ffb hopefully fix http://minetest.net/forum/viewtopic.php?pid=58093#p58093 2012-12-19 18:20:21 +01:00
Jeija
a1852204fb Cleanup and improve piston code 2012-12-16 11:58:43 +01:00
Jeija
ae4bd1e21c Merge branch 'master' into nextgen
Conflicts:
	mesecons_pistons/init.lua
2012-12-16 08:59:06 +01:00
Anthony Zhang
9dee0c020c Fix placing while facing diagonally. 2012-12-15 19:16:59 -05:00
Anthony Zhang
aab0d4d943 Place up/down pistons automatically depending on the player look direction, remove the craft recipes for up/down pistons, and unify all the pushing/pulling behaviors into mesecon:piston_push(pos) and mesecon:piston_pull(pos). 2012-12-15 19:12:20 -05:00
Jeija
44dc1a128c Upload cleaned up mesecons to nextgen branch 2012-12-15 18:45:51 +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
Anthony Zhang
3bab7cb252 Simpler piston push/pull method. 2012-11-28 23:32:24 -05:00
Anthony Zhang
aaddd9e74d Fix a rare piston pushing bug and make piston updating faster. 2012-11-27 19:34:54 -05:00
Anthony Zhang
db434c6fe9 Use nodeupdate() so things like pushing gravel/sand off a ledge allows it to fall. 2012-11-11 17:51:03 -05:00
Anthony Zhang
3ae31cd849 Use add_node since place_node only works with ItemStacks and can't specify param1/param2 value. This fixes pistons pushing pistons/torches/etc. 2012-10-27 12:40:11 -04:00
Anthony Zhang
ff5dcda7c7 Further piston improvements, the pistons now delay before retracting and play nice with invalid states. 2012-10-13 12:45:15 -04:00
Anthony Zhang
dcd2f94ba9 New pistons activation mechanism, fixes many of the issues reported when pushing mesecons around. Side effect is that it might be somewhat slower, and it waits a tiny delay before extending or retracting. This should be unnoticable in normal use. 2012-10-02 17:09:39 -04:00
Anthony Zhang
cd8fd55fe3 Fix whitespace, simplify node updating. 2012-10-01 22:18:45 -04:00
Jat
b7553145b0 Actuator ignored liquid (all) 2012-08-30 14:20:18 +02:00
Jeija
164971f6d1 Remove piston_up from dead groups 2012-08-13 20:39:14 +02:00
Jeija
6f9036c70b Register piston_up and piston_down as effectors 2012-08-13 20:37:39 +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
9829abc74d HUGE speed improvement 2012-08-12 10:57:00 +02:00
Vanessa Ezekowitz
e12b297987 change all recipes to use group:mesecon_conductor_craftable
fixed deprecated/invalid recipes in lightstones.

fixed copy&paste error in one of the delayer textures

fixed recipe for player detector to rely on microcontroller instead of old IC
2012-08-11 20:53:47 -04:00
Jeija
1f6e1fa7ab Mesecons only connect to blocks with group mesecon > 1 2012-08-11 23:39:28 +02:00
Vanessa Ezekowitz
fa1213134a did the same for buttons and up/down pistons 2012-08-10 17:59:52 -04:00
Vanessa Ezekowitz
39db9cf01c Added "mesecon = 1" to the groups setting for most objects, so that they'll
visibly connect to neighboring wires.
2012-08-10 17:35:54 -04:00
Jeija
9d52049e83 Fix sticky piston duplicate bug 2012-08-10 20:12:53 +02:00
cornernote
2330d0af79 added pistons up and down 2012-08-09 13:52:47 +09:30
sfan5
10fe94dea7 Make Pistons use set_node not dig_node (Speed Improvement) 2012-08-08 12:40:18 +02:00
sfan5
55e74c04ed Trigger Block Update when retracting Piston 2012-08-08 11:44:12 +02:00
Vanessa Ezekowitz
f502cbd801 use normal piston textures on sides of sticky piston plunger. Also fixes
deprecated tile_images bits.
2012-08-07 03:11:36 -04:00
Anthony Zhang
aa8ad0fde9 Fix off-by-one error in piston length calculation and change the node pushing to make use of the fact that minetest.env:place_node() is apparently a no-op if the node is not air or liquid. 2012-07-20 22:15:49 -04:00
Anthony Zhang
9736b0f61e Nodebox piston pushers! Fix a few piston bugs such as pistons pushing pistons, pistons pushing blocks into pushers causing blocks to get deleted, and many more. As a side effect, players can no longer simply walk through piston pushers. Additionally, pistons will only remove their own pushers, and not those of neighboring pistons as well. Remove ENABLE_PISTON_ANIMATION option (not compatible with nodebox piston pushers). 2012-07-20 16:27:43 -04:00
Anthony Zhang
64a452da24 Fix piston duplication bug, simplify piston handling, limit piston push distance to 15 blocks. Remove deprecated object:get_entity_name() call, and some obselete settings. 2012-07-18 23:38:59 -04:00
Anthony Zhang
1e569782f5 Use minetest.env:place_node and minetest.env:dig_node to enable usage of the on_place and on_dig callbacks. 2012-06-21 20:32:48 -04:00
Anthony Zhang
4200757ba3 Remove deprecated API functions "register_on_placenode" and "register_on_dignode" where possible. 2012-06-04 22:20:04 -04:00
Jeija
0f7e2d5ab3 Fix Bug: Pistons can now be removed 2012-03-25 00:09:47 +01:00
Anthony Zhang
3018128b4b Update nodes for compatibility with digging time groups. 2012-03-22 17:52:11 -04:00
xyzz
ff75bcdcab Fix pistons removing entities when it shouldn't 2012-03-18 11:26:54 -04:00
Jeija
36ae0cc1a5 Upload after major code reorganization - Version 0.6 DEV - Split mesecons mod into several modules - [BUGGY?] 2012-03-05 19:21:26 +01:00