summaryrefslogtreecommitdiff
path: root/flowing_logic.lua
AgeCommit message (Collapse)Author
2017-03-17add screwdriver rotation handling on most pipes-related nodesVanessa Ezekowitz
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.
2016-06-11Do not trust node.param2.Auke Kok
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.
2013-12-21A few more fixes (spamming the commit log again...)Novatux
2013-12-15local-ize pretty muchg everything that was previously global except whereVanessa Ezekowitz
stuff needs to be globally-visible. Also, fix a bad drop on valve.
2013-10-27Add fountainhead (vertical spigot, basically).Vanessa Ezekowitz
2013-08-07fix nil references in flowing_logic.luaVanessa Ezekowitz
2013-07-13added ability to disable most components via config file in world folderVanessa Ezekowitz
moved pipes out of init.lua and into a separate file. some minor formatting changes
2013-07-04remove a bunch of useless metadata and settingsVanessa Ezekowitz
("pipelike" everywhere, but it isn't used for anything)
2013-07-04rewrite flowing logic a bit to eliminate excessive add_node/remove_node callsVanessa Ezekowitz
also got rid of obsolete optdepends
2013-06-30Phased out all deprecated minetest.env:* uses in favor of minetest.*Vanessa Ezekowitz
2013-05-10add flow sensor. Sends mesecons signal when water is flowing through it.Vanessa Ezekowitz
2013-05-10made valves and airtight entry panels work.Vanessa Ezekowitz
Removed "flowing" spigot from creative inventory.
2013-05-10remove water node at spigot only at theVanessa Ezekowitz
pouring-->off transition, not repeatedly.
2013-05-10periodically remove one water node next to each "on" pump that's also flowingVanessa Ezekowitz
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-04-28fix a bug where spigot pouring would replace the node under it withVanessa Ezekowitz
water. Also clean up spigot logic slightly.
2013-01-14forgot to account for facedir in spigots when I added that water streamVanessa Ezekowitz
2013-01-14Added a little stub to the bottom of the spigot, showing the water texture,Vanessa Ezekowitz
so that when a spigot is flowing, it looks like water is actually pouring out of it.
2013-01-04Made pipes able to carry water!Vanessa Ezekowitz
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-04minor spacing tweaks, nothing functionalVanessa Ezekowitz
2013-01-04First stage of integrating Mauvebic's water flowing code. This is experimentalVanessa Ezekowitz
and doesn't move water yet - but at least it doesn't break anything :-)