summaryrefslogtreecommitdiff
path: root/pipeworks/register_flow_logic.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2018-02-13 14:05:34 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2018-02-13 14:05:34 -0500
commit335d9a3eddcb590c3ca5de9cba9b152e5e560af1 (patch)
tree1b95d73b945fbc9924438c28a35d7f1019fa255f /pipeworks/register_flow_logic.lua
parent1d0f113f4c5afcf8479973f2e01786fb9a1fbbb7 (diff)
downloaddreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.gz
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.bz2
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.tar.xz
dreambuilder_modpack-335d9a3eddcb590c3ca5de9cba9b152e5e560af1.zip
removed boost_cart and carbone_mobs -- too many crashes
updated blox, homedecor, plantlifed, cottages, farming_redo, framedglass, gloopblocks, mesecons, moreblocks, moretrees, pipeworks, player_textures, replacer, signs_lib, stained_glass, technic, travelnet, unified_inventory, unifieddyes, and worldedit.
Diffstat (limited to 'pipeworks/register_flow_logic.lua')
-rw-r--r--pipeworks/register_flow_logic.lua58
1 files changed, 0 insertions, 58 deletions
diff --git a/pipeworks/register_flow_logic.lua b/pipeworks/register_flow_logic.lua
deleted file mode 100644
index c9df09c..0000000
--- a/pipeworks/register_flow_logic.lua
+++ /dev/null
@@ -1,58 +0,0 @@
--- register new flow logic ABMs
--- written 2017 by thetaepsilon
-
-local pipes_full_nodenames = pipeworks.pipes_full_nodenames
-local pipes_empty_nodenames = pipeworks.pipes_empty_nodenames
-
--- run pressure balancing ABM over all water-moving nodes
--- FIXME: DRY principle, get this from elsewhere in the code
-local pump_on = "pipeworks:pump_on"
-local pump_off = "pipeworks:pump_off"
-local spigot_off = "pipeworks:spigot"
-local spigot_on = "pipeworks:spigot_pouring"
-
-local pipes_all_nodenames = pipes_full_nodenames
-for _, pipe in ipairs(pipes_empty_nodenames) do
- table.insert(pipes_all_nodenames, pipe)
-end
-
-if pipeworks.enable_pipe_devices then
- table.insert(pipes_all_nodenames, pump_off)
- table.insert(pipes_all_nodenames, pump_on)
- table.insert(pipes_all_nodenames, spigot_on)
- table.insert(pipes_all_nodenames, spigot_off)
-end
-
-
-if pipeworks.enable_pipes then
- minetest.register_abm({
- nodenames = pipes_all_nodenames,
- interval = 1,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- pipeworks.balance_pressure(pos, node)
- end
- })
-end
-
-if pipeworks.enable_pipe_devices then
- -- absorb water into pumps if it'll fit
- minetest.register_abm({
- nodenames = { pump_on },
- interval = 1,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- pipeworks.run_pump_intake(pos, node)
- end
- })
- -- output water from spigots
- -- add both "on/off" spigots so one can be used to indicate a certain level of fluid.
- minetest.register_abm({
- nodenames = { spigot_on, spigot_off },
- interval = 1,
- chance = 1,
- action = function(pos, node, active_object_count, active_object_count_wider)
- pipeworks.run_spigot_output(pos, node)
- end
- })
-end