From ec25fd83415d0ecb49f41295af3dc30f14850b2f Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Mon, 17 Dec 2018 02:20:30 -0500 Subject: update biome_lib, digilines, hotbar, mesecons, pipeworks, ropes, technic, unified inventory, unified dyes, vines, and worldedit --- technic/machines/MV/freezer.lua | 12 ++++++++++++ technic/machines/MV/hydro_turbine.lua | 2 +- technic/machines/MV/init.lua | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 technic/machines/MV/freezer.lua (limited to 'technic/machines/MV') 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 -- cgit v1.2.3