summaryrefslogtreecommitdiff
path: root/devices.lua
AgeCommit message (Collapse)Author
2021-02-07Various small fixesHybridDog
* Save the fakeplayer's wielded item in set_wielded_item * pipeworks.luaentity: Return the found objects in get_objects_inside_radius * Remove the invalid and unused on_blast return values in lua_tube.lua This should avoid a crash when a strong explosion happens next to a Lua Tube. * Do not access a global "nodename" in a BUG message. This avoids a potential crash, in case the message actually appears in practice. * Set the Flow Sensor and Fountain Head mesecons connection rules * pipeworks.luaentity: Use the same function for move_to and set_pos * (no functional change) Do not save the object returned by tube_inject_item into the "item1" local variable in filter-injector.lua
2021-02-05Remove unused loop variables, trailing whitespace and fix mixed-whitespace ↵HybridDog
indentations
2021-02-03Remove or comment unused code and declare some variables localHybridDog
2020-02-18Add translation supportLouis Royer
- Created `locale/template.txt` - Fixed some typos - Replace some `print("[pipeworks]"..` with `pipeworks.logger()` - Removed "You hacker, you" from descriptions
2019-09-23add signs_lib placement rulesVanessa Dannenberg
only works on signs_lib commit dcdee222 or later.
2019-09-23use default metal sounds on all pipes and pipe devicesVanessa Dannenberg
2018-09-08remove value/sensor conversion LBMVanessa Dannenberg
no longer needed, broken anyway
2017-11-03added straight-only pipeVanessa Ezekowitz
(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-10-26add low-poly modeVanessa Ezekowitz
to enable, set pipeworks_enable_lowpoly = true in minetest.conf
2017-10-19devices.lua: convert spigot to single-ended horizontally rotating flowablethetaepsilon-gamedev
2017-10-19pressure logic: rewrite callbacks for horizontal rotation flowables to ↵thetaepsilon-gamedev
support singular and double-ended devices
2017-10-19devices.lua: convert entry panel and valve to horizontal rotation flowable classthetaepsilon-gamedev
2017-10-19devices.lua: make flow sensor use the horizontally rotating flowable classthetaepsilon-gamedev
2017-10-18devices.lua: make fountainheads directional using fixed vertical helperthetaepsilon-gamedev
2017-10-18pressure logic/flowable node registry: move pump directionality code to ↵thetaepsilon-gamedev
dedicated fixed vertical helper
2017-10-17devices.lua: implement directionfn for pump registrationthetaepsilon-gamedev
2017-10-16devices.lua: convert pump to use new directional flow classthetaepsilon-gamedev
2017-10-08new flow logic: implement post-transition hook with mesecons support, add ↵thetaepsilon-gamedev
mesecons transition rules for flow sensor
2017-10-08devices.lua: adjust flow sensor threshold to more closely model classic modethetaepsilon-gamedev
2017-10-08new flow logic: change simple transition set logic to take list of key-value ↵thetaepsilon-gamedev
pairs, add set registration for flow sensor pipe
2017-10-08new flow logic: algorithmic and value tuning for non-finite modethetaepsilon-gamedev
2017-10-07devices.lua: raise maximum pressure for pumpsthetaepsilon-gamedev
2017-10-07new flow logic: flowable_node_registry_install.lua: separate pressure ↵thetaepsilon-gamedev
threshold into upper and lower hysteresis values
2017-10-07devices.lua: factor out usage of flowlogic helper into dedicated registry ↵thetaepsilon-gamedev
function
2017-10-01new flow logic: abms.lua: rename neighbour output helper to better indicate ↵thetaepsilon-gamedev
lack of rotation support
2017-10-01devices.lua: make fountains functional under new flow logic using new ↵thetaepsilon-gamedev
neighbour output helper
2017-10-01new flow logic: abms.lua: generalise spigot output code to support arbitary ↵thetaepsilon-gamedev
neighbour lists
2017-10-01move flowable registration for flow sensor to devices.lua near node definitionthetaepsilon-gamedev
2017-10-01move flowable registration for airtight entry panel to devices.lua near node ↵thetaepsilon-gamedev
definition
2017-10-01move spigot behaviour registration to devices.luathetaepsilon-gamedev
2017-10-01migrate flowable registration for valve nodes to devices.luathetaepsilon-gamedev
2017-10-01move pump flow logic registration to devices.luathetaepsilon-gamedev
2017-10-01devices.lua: create local variables for device node names in preparation for ↵thetaepsilon-gamedev
flow logic registration
2017-09-27devices.lua: replace calls to add_node() with swap_node() to preserve node ↵thetaepsilon-gamedev
metadata
2017-04-12allow external devices to connect to pipesVanessa Ezekowitz
and use that feature to handle most of the existing devices) also, fix the "xray" glitch in the grating
2017-03-17prevent being able to place "loaded" and "on" itemsVanessa Ezekowitz
(forces them to "empty" and "off")
2017-03-17add turn-to-vertical handling to valve, flow sensorVanessa Ezekowitz
reuse the code from entry panel
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.
2017-03-17make valve and pump turn on/off via on_rightclickVanessa Ezekowitz
(instead of on_punch)
2016-04-14Squelch a warning if no mesecons.Auke Kok
2015-03-23drop direct support for dedicated protection modsVanessa Ezekowitz
just use minetest's standard protection functions instead (leave it up to those protection mods to do their job properly)
2015-03-12add missing alias for entry panelVanessa Ezekowitz
side effect left over from new_flow_logic tests
2015-01-16use animated water for pouring spigotVanessa Ezekowitz
also remove a couple of extranous .mtl files and a redundant spigot texture
2015-01-15Use mesh nodes for all nodebox-based pipe-related nodesVanessa Ezekowitz
2014-11-22update to use current mesecons APIVanessa Ezekowitz
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
2014-07-02Fix drops for storage tanksZefram
2013-12-21fix a missed function name (due to being renamed)Vanessa Ezekowitz
2013-12-21local-ize a couple more variablesVanessa Ezekowitz
2013-12-21mesecons_rules must be global. made so, confined to pipeworks.{} table.Vanessa Ezekowitz
2013-12-15fix incorrect variable nameVanessa Ezekowitz