1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-11-18 00:08:28 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
Zefram
22eb00e5d1 Let stack of projectiles diminish in node breaker
The logic that prevents mechanically wearing a tool was also preventing
the diminution of a stack of items to use, such as a stack of snowballs.
Restrict the use of pickcopy to the case where the stack still has the
same item type, count, and metadata.
2014-07-21 09:52:53 -04:00
Zefram
2b5aeda9d1 Set infotext for node breakers
As node breakers now have a form, they should also have infotext to draw
attention to it, as do most form-containing nodes.
2014-07-14 14:55:29 -04:00
Zefram
6432bf721d Don't spill an extra pick from old node breakers
Due to historical shenanigans around the addition of the pick slot to
node breakers, some breakers that were placed before the addition have
ended up with a mese pick in their newly-acquired pick slot, rather than
in the ghost_pick slot where it belongs.  This causes these breakers to
spill this ghost pick when they are broken.  To avoid this, make pick
spilling conditional on the breaker having a formspec: pre-slot breakers
don't have one.
2014-07-14 14:55:27 -04:00
Novatux
f8bbe908cd Don't wear tools out in nodebreaker if it's mechanical wear (tools which are repaired by the tool workshop of technic) 2014-07-02 14:29:51 +02:00
Novatux
5a5bb3bf12 Fix crash with legacy nodebreakers 2014-06-21 08:29:41 +02:00
Novatux
5ab329285c Try to fix old node breakers dropping items 2014-06-08 22:49:30 +02:00
Novatux
8b0c56ad08 Support for detection of pipeworks fake players by other mods (item drop, etc.) 2014-06-08 16:04:36 +02:00
Novatux
476a60b848 Fix #66 2014-05-25 22:24:42 +02:00
Novatux
8efcd39e39 Bugfix 2014-05-18 16:41:37 +02:00
Novatux
3f72bbf3d0 Much better node breaker, own contents of deployer too (but still allow IO with tubes) 2014-05-18 14:30:58 +02:00
Novatux
5a2d57b485 Fix node breaker, use new minetest.swap_node 2013-12-21 10:24:55 +01:00
Vanessa Ezekowitz
bdbdab0dfd rules_all has to be global. made it so, confined to pipeworks.{} table 2013-12-21 03:30:07 -05:00
Vanessa Ezekowitz
a4a74413c0 tube_item has to be global. confined it to pipeworks.{} table. 2013-12-15 14:41:03 -05:00
Vanessa Ezekowitz
bd80f18cfc local-ize pretty muchg everything that was previously global except where
stuff needs to be globally-visible.  Also, fix a bad drop on valve.
2013-12-15 02:53:10 -05:00
Vanessa Ezekowitz
b43a1036ca catch a similar nil condition in the node breaker 2013-12-10 22:39:53 -05:00
Vanessa Ezekowitz
bd1d8bbd86 Make the tube_connects={} method work properly for technic devices.
Also phase out "old new" API, leaving only the "tube_connects={}" method,
as nothing in technic or pipeworks uses it.

Fix a few more places where minetest.facedir_to_dir() was duplicated, since
that code is part of Minetest 0.4.8.
2013-11-26 00:26:38 -05:00
Novatux
c7e9c7c160 Fix node breaker crash. 2013-10-30 08:45:29 +01:00
Vanessa Ezekowitz
a59e147013 Make nodebreaker and deployer use wood group instead of default wood 2013-10-24 21:18:40 -04:00
Novatux
79897c8fe6 Better deployer and node breaker mesecons rules. 2013-10-06 10:35:53 +02:00
Pilcrow
cedb49d887 Fix hacky_swap_node to not repeatedly swap the same node in over and over 2013-09-13 11:09:57 -04:00
hdastwb
d44c2e6d3b removed aliases to the technic deployers/node breakers 2013-07-25 18:53:51 -04:00
hdastwb
ec416df794 added support for 6d facedir for all tube components, changed autoplace.lua to follow tubes.connect_sides rather than having each component coded individually, and added support for placing deployers and node breakers facing vertically 2013-07-19 19:16:26 -04:00
Anthony Zhang
479df82f2b Fix for older mod versions that used a different alias. 2013-07-01 20:38:10 -04:00
Vanessa Ezekowitz
17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Anthony Zhang
6b411ab8ad Node breakers now make sure the node is actually diggable before digging (implements the functionality of minetest.node_dig). Now can dig working mesecons and can't dig locked chests or other indestructable nodes. 2013-06-24 16:25:23 -04:00
Vanessa Ezekowitz
3a0fd39bf6 rewrote autoplacement code to make it more aware of filters,
autocrafter, nodebreaker, deployer, and made sure each item will only
initiate a connection to those sides which can accept such.  Fixed
various autorouting bugs as I ran across them.  Autorouting for various
devices is now:

filters: left and right sides only
nodebreaker, deployer:  back only
autocrafter:  all six sides
chests:  top, bottom, left, right, back (not front)
furnace: bottom, left, right, back (not the top or front)
2013-06-23 21:36:13 -04:00
Anthony Zhang
5537257185 Whoops, tubes ought to connect to deployers! 2013-06-23 19:52:01 -04:00
Anthony Zhang
e728df46df Super duper pipeworks deployer and node breaker updates. 2013-06-23 19:15:31 -04:00
Vanessa Ezekowitz
aaacd37c6f Removed node breaker and deployer. These belong in technic, not pipeworks.
Added aliases to avoid unknown nodes/map breakage.  Old code has been moved
into pipeworks/attic/
2013-01-31 18:49:47 -05:00
Novatux
fe0fd68601 Changed the name of some textures for naming conventions. Added deployer and node breaker (most of the code is from Technic, the textures too). 2013-01-20 17:53:17 +01:00