Add MV-Freezer (#457)
New Grinder-recipe: ice => snowblock New recipe for freezer: Freezer now generates ice
							
								
								
									
										12
									
								
								technic/machines/MV/freezer.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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})
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										9
									
								
								technic/machines/register/freezer.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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
 | 
			
		||||
							
								
								
									
										21
									
								
								technic/machines/register/freezer_recipes.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -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
 | 
			
		||||
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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")
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technic_mv_freezer_bottom.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 284 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technic_mv_freezer_front.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 413 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technic_mv_freezer_front_active.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 447 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technic_mv_freezer_side.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 381 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technic_mv_freezer_top.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 325 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technicx32/technic_mv_freezer_bottom.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 672 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technicx32/technic_mv_freezer_front.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 947 B  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technicx32/technic_mv_freezer_front_active.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technicx32/technic_mv_freezer_side.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 1.1 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								technic/textures/technicx32/technic_mv_freezer_top.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 826 B  |