summaryrefslogtreecommitdiff
path: root/technic/machines/MV
diff options
context:
space:
mode:
Diffstat (limited to 'technic/machines/MV')
-rw-r--r--technic/machines/MV/freezer.lua12
-rw-r--r--technic/machines/MV/hydro_turbine.lua2
-rw-r--r--technic/machines/MV/init.lua2
3 files changed, 15 insertions, 1 deletions
diff --git a/technic/machines/MV/freezer.lua b/technic/machines/MV/freezer.lua
new file mode 100644
index 0000000..ab48838
--- /dev/null
+++ b/technic/machines/MV/freezer.lua
@@ -0,0 +1,12 @@
+-- MV freezer
+
+minetest.register_craft({
+ output = 'technic:mv_freezer',
+ recipe = {
+ {'technic:stainless_steel_ingot', 'technic:motor', 'technic:stainless_steel_ingot'},
+ {'pipeworks:pipe_1_empty', 'technic:mv_transformer', 'pipeworks:pipe_1_empty'},
+ {'technic:stainless_steel_ingot', 'technic:mv_cable', 'technic:stainless_steel_ingot'},
+ }
+})
+
+technic.register_freezer({tier = "MV", demand = {800, 600, 400}, speed = 0.5, upgrade = 1, tube = 1})
diff --git a/technic/machines/MV/hydro_turbine.lua b/technic/machines/MV/hydro_turbine.lua
index 36aac91..e5df5e6 100644
--- a/technic/machines/MV/hydro_turbine.lua
+++ b/technic/machines/MV/hydro_turbine.lua
@@ -18,7 +18,7 @@ minetest.register_craft({
local function get_water_flow(pos)
local node = minetest.get_node(pos)
- if minetest.get_item_group(node.name, "water") == 3 then
+ if minetest.get_item_group(node.name, "water") == 3 and string.find(node.name, "flowing") then
return node.param2 -- returns approx. water flow, if any
end
return 0
diff --git a/technic/machines/MV/init.lua b/technic/machines/MV/init.lua
index 7092fda..07c44b6 100644
--- a/technic/machines/MV/init.lua
+++ b/technic/machines/MV/init.lua
@@ -25,6 +25,8 @@ dofile(path.."/centrifuge.lua")
dofile(path.."/tool_workshop.lua")
+dofile(path.."/freezer.lua")
+
-- The power radiator supplies appliances with inductive coupled power:
-- Lighting and associated textures is taken directly from VanessaE's homedecor and made electric.
-- This is currently useless, slow, and mostly copied