Commit Graph

61 Commits

Author SHA1 Message Date
Zefram
ce1505d008 Fix detector tube item counting
A detector tube would sometimes miss a decrement, due to the pos structure
passed to can_go being modified by the tubed-item entity while it's also
sitting in the timer queue as an argument to item_exit.  As the can_go
API actually depends on being able to mutate the pos structure (see the
teleporter tube), we can't just start passing in a never-mutated copy
of pos.  So for now just fix in the detector tube's can_go, by copying the
structure there.  Incidentally, make the decrement mechanism consistent
between the two forms of increment.
2014-07-14 14:55:22 -04:00
Zefram
87d87c91fa Name tube items for function rather than material
Previously, some tube types were named based on their function, and others
based on some arbitrarily-chosen material used in their construction,
with no meaningful system governing which was in each category.  With this
change they are consistently named according to function.  Naming style
is also made consistent in the wording that identifies tubes as such,
and in capitalisation.
2014-07-05 12:55:33 -04:00
Novatux
a31a9d573f Ugly attempt to fix detector tube. 2014-06-14 16:54:31 +02:00
Novatux
eeff32781c Try to fix #67 2014-06-01 08:51:18 +02:00
Novatux
274d7fb048 Deployer fixes 2014-04-13 09:25:31 +02:00
Vanessa Ezekowitz
653b65a168 fix missing tubelike meta on legacy tubes
(kept them from properly routing items after placement)
2014-01-12 02:10:34 -05:00
Vanessa Ezekowitz
9a9bd2f491 misc fixed 2014-01-02 04:36:52 -05:00
Vanessa Ezekowitz
1dc7410024 fix missing wield/inventory image on "compatibility" tubes
gave them fuller node defs with descriptions et al. also and
made them directly call the scan-for-tube-objects function
when placed.
2014-01-01 23:14:27 -05:00
Vanessa Ezekowitz
ea32144950 fix facedir getting reset in detector tubes on state change 2014-01-01 22:36:52 -05:00
Vanessa Ezekowitz
82f5ba09fe fix tube and pipe drops 2014-01-01 13:26:25 -05:00
Vanessa Ezekowitz
ddfc8173ac always check for CONTENT_IGNORE around a pipe/tube before converting it 2014-01-01 12:26:33 -05:00
Novatux
1dab36812a Use crossing textures 2013-12-31 13:59:25 +01:00
Novatux
bc2d6b26e7 Fix conversion 2013-12-31 13:54:13 +01:00
Novatux
44a34da9c6 Last forgotten spaces 2013-12-31 13:54:13 +01:00
Novatux
9b08a1c40a Remove old code 2013-12-31 13:54:13 +01:00
Novatux
ca70069586 Add a few comments 2013-12-31 13:54:13 +01:00
Novatux
76183bc325 Fix some more coding style, fix a crash, get rid of a conversion table (only used for the table generation) 2013-12-31 13:54:13 +01:00
Novatux
27f3a8ab31 Fix indentation and coding style 2013-12-31 13:54:13 +01:00
Novatux
95aac90b67 Indent correctly the function 2013-12-31 13:54:13 +01:00
Novatux
b0c50203d2 Add 6d tubes, cleanup code a bit 2013-12-31 13:54:13 +01:00
Vanessa Ezekowitz
f57443e96f mesecons_rules must be global. made so, confined to pipeworks.{} table. 2013-12-21 03:33:06 -05:00
Vanessa Ezekowitz
41ce9be8f3 notvel function can't be local - made global and confined to pipeworks.{} 2013-12-15 16:05:35 -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
c0ce62dacf local-ize a few more variables and functions 2013-12-15 05:53:11 -05:00
Vanessa Ezekowitz
d099b9f8f0 get rid of an excess print() call 2013-12-15 05:46:39 -05:00
Vanessa Ezekowitz
eabced6976 default settings have to be global or pipeworks can't see them
(duh!)  confined them to pipeworks.{} table.
2013-12-15 04:43:13 -05:00
Vanessa Ezekowitz
659b4e42b2 local-ize a few more variables, move all of the nodebox models
into their own file and confine them and pretty much everything
else to the pipeworks.{} table (still global though).  More to
come.
2013-12-15 04:35:59 -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
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
Vanessa Ezekowitz
d3825b6db6 fix bad lighting on one-way tube 2013-11-19 13:10:35 -05:00
Novatux
12eb772d18 Fix crossing tube and one way tube. 2013-10-21 11:34:10 +02:00
Novatux
3c8266d3ee Add one way tube 2013-10-19 15:34:04 +02: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
Vanessa Ezekowitz
c0af957167 added ability to disable most components via config file in world folder
moved pipes out of init.lua and into a separate file.
some minor formatting changes
2013-07-13 22:39:25 -04:00
hdastwb
31680fcf80 added more powerful sand tubes (MESE sand tubes), along with associated crafts, textures, and documentation 2013-07-13 21:16:44 -04:00
Vanessa Ezekowitz
17ee4f6aab Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Vanessa Ezekowitz
4a88ed096d typo fix 2013-06-28 09:26:46 -04:00
Novatux
6ca5da4c3a Add crossing tubes 2013-06-28 15:03:24 +02:00
Vanessa Ezekowitz
47b6c25abe minor tweaks to various dofile() calls, moved one from tubes.lua to init.lua 2013-06-22 17:51:57 -04:00
Vanessa Ezekowitz
00e6d148d5 minor tweak to allow the register_tube() function to use any arbitrary
namespace for the tube instead of forcing it to be pipeworks:
2013-06-22 15:08:05 -04:00
Vanessa Ezekowitz
ada718fc42 Added appropriate textures for mesecon conductor tubes 2013-06-16 09:36:49 -04:00
Novatux
d373742752 Fix bug with sand tubes 2013-06-02 20:36:27 +02:00
VanessaE
3788437c91 Merge pull request #28 from Novatux/master
Fix conductive tube drop.
2013-04-12 11:02:02 -07:00
Novatux
33e3d76cec Fix conductive tube drop. 2013-04-12 19:55:39 +02:00
VanessaE
03588a64c2 Merge pull request #27 from Novatux/master
Add conductor tubes.
2013-04-11 12:28:13 -07:00
Novatux
8cd0861484 Add conductor tubes (no crafting recipe or texture for now). 2013-04-11 20:00:34 +02:00
Anthony
6889ab0419 Add inventory images for tubes. 2013-03-18 23:01:09 -03:00
Novatux
e97d42e20d Bugfix 2013-02-07 17:21:35 +01:00
Novatux
4da23ce736 Fixed a bug with mese tubes not correctly distributing the items. 2013-01-23 18:55:41 +01:00
Novatux
c03414dc9d Added textures for sand and accelerator tubes, added crafting recipe for sand tube. 2013-01-20 19:06:40 +01:00