Commit Graph

24 Commits

Author SHA1 Message Date
wsor4035 5aa0501872
make pipeworks Game agnostic (#16)
* make it boot in non mtg

* make water flow

* fix water texture warnings

* fix missing steel texture issues

* remove depreciated/unnessary default function calls

* make sounds work

* fix default formspec crashes

* fix wierd tab spacing

* additionally game dig group support

* move crafts to crafts.lua

* make crafts support various games
2022-03-14 21:39:58 -04:00
HybridDog 17a602a5a1 Remove unused loop variables, trailing whitespace and fix mixed-whitespace indentations 2021-02-05 17:17:50 +01:00
Vanessa Ezekowitz ee0c276900 added straight-only pipe
(for situations where one might want to run
several closely-spaced parallel pipelines)

Also fixed a bug where a pipe "entry panel" would
report full of water if a pipe next to it (but not
connecting) was also full of water

Only tested under "classic" flowing logic mode.
2017-11-03 23:02:36 -04:00
Jordan Irwin 69d994a2a2 Replace deprecated methods: (#179)
- 'setting_get' with 'settings:get'
- 'setting_getbool' with 'settings:get_bool'
2017-05-18 05:33:56 -04:00
Vanessa Ezekowitz 88ad79163d add screwdriver rotation handling on most pipes-related nodes
caveats:  in order to cleanly handle the entry panel, valve, and sensor
I had to rotate the valve and sensor models 90 degrees
so that their in-/outlet pipes point the same direction as the
entry panel.

This also enables proper handling of a valve or sensor turned vertically.

Some objects have rotation disabled entirely (as flipping them over/around makes
no sense)

When a valve is rotated, it is turned off automatically, to work around a glitch in
the rotation code.
2017-03-17 10:07:34 -04:00
Auke Kok f76668969e Do not trust node.param2.
The table lookup will fail if node.param2 is outside [0-3] which
is easily possible since there are several ways to modify param2
values of nodes. Force truncating param2 to always be 0-3 before
using it in a table lookup.
2016-06-11 17:09:07 -07:00
Novatux 10cf11e008 A few more fixes (spamming the commit log again...) 2013-12-21 11:11:36 +01: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 3d19cca557 Add fountainhead (vertical spigot, basically). 2013-10-27 22:38:19 -04:00
Vanessa Ezekowitz b310c201b5 fix nil references in flowing_logic.lua 2013-08-07 22:16:47 -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
Vanessa Ezekowitz 2f843fdd76 remove a bunch of useless metadata and settings
("pipelike" everywhere, but it isn't used for anything)
2013-07-04 03:12:45 -04:00
Vanessa Ezekowitz 7e7ddd9c95 rewrite flowing logic a bit to eliminate excessive add_node/remove_node calls
also got rid of obsolete optdepends
2013-07-04 00:01:08 -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 d4dddc41ec add flow sensor. Sends mesecons signal when water is flowing through it. 2013-05-10 18:28:57 -04:00
Vanessa Ezekowitz 9231f9fa01 made valves and airtight entry panels work.
Removed "flowing" spigot from creative inventory.
2013-05-10 17:28:11 -04:00
Vanessa Ezekowitz 54a78297bb remove water node at spigot only at the
pouring-->off transition, not repeatedly.
2013-05-10 16:17:47 -04:00
Vanessa Ezekowitz b0d92dd358 periodically remove one water node next to each "on" pump that's also flowing
This should make it work more or less correctly with finite water.

also, fix a bug where a blocked spigot still looks like its pouring, and check
for blockages on every step.
2013-05-10 15:59:56 -04:00
Vanessa Ezekowitz 8f12d18b1d fix a bug where spigot pouring would replace the node under it with
water.  Also clean up spigot logic slightly.
2013-04-28 17:45:25 -04:00
Vanessa Ezekowitz 4e1ac10a5a forgot to account for facedir in spigots when I added that water stream 2013-01-14 19:55:41 -05:00
Vanessa Ezekowitz 3a7b9fa31c Added a little stub to the bottom of the spigot, showing the water texture,
so that when a spigot is flowing, it looks like water is actually pouring out
of it.
2013-01-14 14:34:55 -05:00
Vanessa Ezekowitz 0a1f90c391 Made pipes able to carry water!
It was just a minor logic error resulting from moving the water flowing code
into it's own file when I originally imported it.  Many thanks to Mauvebic for
writing it!
2013-01-04 01:34:25 -05:00
Vanessa Ezekowitz 88bc800ccb minor spacing tweaks, nothing functional 2013-01-04 01:12:39 -05:00
Vanessa Ezekowitz 6419ecb117 First stage of integrating Mauvebic's water flowing code. This is experimental
and doesn't move water yet - but at least it doesn't break anything :-)
2013-01-04 00:15:23 -05:00