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/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 diff --git a/technic/machines/register/freezer.lua b/technic/machines/register/freezer.lua new file mode 100644 index 0000000..b4da6d9 --- /dev/null +++ b/technic/machines/register/freezer.lua @@ -0,0 +1,9 @@ + +local S = technic.getter + +function technic.register_freezer(data) + data.typename = "freezing" + data.machine_name = "freezer" + data.machine_desc = S("%s Freezer") + technic.register_base_machine(data) +end diff --git a/technic/machines/register/freezer_recipes.lua b/technic/machines/register/freezer_recipes.lua new file mode 100644 index 0000000..641b28a --- /dev/null +++ b/technic/machines/register/freezer_recipes.lua @@ -0,0 +1,21 @@ + +local S = technic.getter + +technic.register_recipe_type("freezing", { description = S("Freezing") }) + +function technic.register_freezer_recipe(data) + data.time = data.time or 5 + technic.register_recipe("freezing", data) +end + +local recipes = { + {"bucket:bucket_water", { "default:ice", "bucket:bucket_empty" } }, + {"bucket:bucket_river_water", { "default:ice", "bucket:bucket_empty" } }, + {"default:dirt", "default:dirt_with_snow" }, + {"bucket:bucket_lava", { "default:obsidian", "bucket:bucket_empty" } } +} + +for _, data in pairs(recipes) do + technic.register_freezer_recipe({input = {data[1]}, output = data[2]}) +end + diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index da90aad..ab70724 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -30,6 +30,8 @@ local recipes = { {"default:sandstone", "default:sand 2"}, -- reverse recipe can be found in the compressor {"default:desert_sandstone", "default:desert_sand 2"}, -- reverse recipe can be found in the compressor {"default:silver_sandstone", "default:silver_sand 2"}, -- reverse recipe can be found in the compressor + + {"default:ice", "default:snowblock"}, } -- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe) diff --git a/technic/machines/register/init.lua b/technic/machines/register/init.lua index 1667d75..29ec2ea 100644 --- a/technic/machines/register/init.lua +++ b/technic/machines/register/init.lua @@ -20,6 +20,7 @@ dofile(path.."/grinder_recipes.lua") dofile(path.."/extractor_recipes.lua") dofile(path.."/compressor_recipes.lua") dofile(path.."/centrifuge_recipes.lua") +dofile(path.."/freezer_recipes.lua") -- Multi-Machine Recipes dofile(path.."/grindings.lua") @@ -31,3 +32,4 @@ dofile(path.."/grinder.lua") dofile(path.."/extractor.lua") dofile(path.."/compressor.lua") dofile(path.."/centrifuge.lua") +dofile(path.."/freezer.lua") diff --git a/technic/textures/technic_mv_freezer_bottom.png b/technic/textures/technic_mv_freezer_bottom.png new file mode 100644 index 0000000..f0c7ce2 Binary files /dev/null and b/technic/textures/technic_mv_freezer_bottom.png differ diff --git a/technic/textures/technic_mv_freezer_front.png b/technic/textures/technic_mv_freezer_front.png new file mode 100644 index 0000000..bd6f387 Binary files /dev/null and b/technic/textures/technic_mv_freezer_front.png differ diff --git a/technic/textures/technic_mv_freezer_front_active.png b/technic/textures/technic_mv_freezer_front_active.png new file mode 100644 index 0000000..d90010a Binary files /dev/null and b/technic/textures/technic_mv_freezer_front_active.png differ diff --git a/technic/textures/technic_mv_freezer_side.png b/technic/textures/technic_mv_freezer_side.png new file mode 100644 index 0000000..c5e211b Binary files /dev/null and b/technic/textures/technic_mv_freezer_side.png differ diff --git a/technic/textures/technic_mv_freezer_top.png b/technic/textures/technic_mv_freezer_top.png new file mode 100644 index 0000000..10102bd Binary files /dev/null and b/technic/textures/technic_mv_freezer_top.png differ diff --git a/technic/textures/technicx32/technic_mv_freezer_bottom.png b/technic/textures/technicx32/technic_mv_freezer_bottom.png new file mode 100644 index 0000000..4e3351f Binary files /dev/null and b/technic/textures/technicx32/technic_mv_freezer_bottom.png differ diff --git a/technic/textures/technicx32/technic_mv_freezer_front.png b/technic/textures/technicx32/technic_mv_freezer_front.png new file mode 100644 index 0000000..4327514 Binary files /dev/null and b/technic/textures/technicx32/technic_mv_freezer_front.png differ diff --git a/technic/textures/technicx32/technic_mv_freezer_front_active.png b/technic/textures/technicx32/technic_mv_freezer_front_active.png new file mode 100644 index 0000000..4aba6f8 Binary files /dev/null and b/technic/textures/technicx32/technic_mv_freezer_front_active.png differ diff --git a/technic/textures/technicx32/technic_mv_freezer_side.png b/technic/textures/technicx32/technic_mv_freezer_side.png new file mode 100644 index 0000000..c439476 Binary files /dev/null and b/technic/textures/technicx32/technic_mv_freezer_side.png differ diff --git a/technic/textures/technicx32/technic_mv_freezer_top.png b/technic/textures/technicx32/technic_mv_freezer_top.png new file mode 100644 index 0000000..2b54212 Binary files /dev/null and b/technic/textures/technicx32/technic_mv_freezer_top.png differ