Commit Graph

77 Commits

Author SHA1 Message Date
Tim 5a79a60e0f use the default tube textures as fallback for any missing textures during tube registration 2015-01-29 22:38:01 +01:00
Tim a98af7bf15 split the big tubes file up into functional modules independend from the tube registration and add their respective crafting recipes
use this opportunity to remove some whitespaces issues from it
2015-01-29 22:37:29 +01:00
Tim b54a868c33 chmod -x *.lua 2015-01-29 21:59:35 +01:00
Tim c9d18f74e4 update all formspecs "current_name" to "context" to reflect current api 2015-01-29 20:08:58 +01:00
est31 52cfe9f277 Add intermediate button state for sorttube enabler
Image supplied by VanessaE.
2015-01-27 23:17:10 +01:00
est31 8b22593f55 Color up the enable/disable buttons for sorttube 2015-01-26 23:51:03 +01:00
Diego Martinez 9493478e59 Fix tubes only taking a single designated path. 2015-01-22 11:18:23 -05:00
Diego Martinez 9a83380b2b Optimize sorting tube code a bit. 2015-01-20 14:06:44 -03:00
Tim 6f16dd24c2 allow sorting tubes to be dug, despite virtual items in the inventories 2014-12-27 22:14:33 +01:00
Vanessa Ezekowitz 614f6f4da1 minetest.env:* --> minetest.* 2014-11-30 12:38:06 -05:00
Vanessa Ezekowitz 28cef5e82f update to use current mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-11-22 13:55:54 -05:00
Novatux f8a8046a7b Fix mese tube formspec 2014-08-15 15:35:42 +02:00
Zefram 7915e7f51e Rename tube_item() to tube_inject_item()
The new function has no API compatibility with the old one, so give it
a different name to avoid confusion among caller mods, which need to
change their usage.  Have a function under the old name that outputs a
helpful error message.
2014-08-15 13:24:52 +02:00
Novatux b77146f29c Fix old mese tube detection 2014-08-15 11:51:23 +02:00
Novatux d5480f5ff0 Major rewrite of items in tubes 2014-08-14 16:22:03 +02:00
Zefram bd37e96222 Make sorting tube dialog lag-resistant 2014-07-21 14:43:37 -04:00
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