add distiller

This commit is contained in:
Sergei Mozhaisky 2019-11-17 14:20:25 +00:00
parent 001d1c51d6
commit 8c9f78095f
12 changed files with 67 additions and 0 deletions

View File

@ -0,0 +1,12 @@
-- MV distiller
minetest.register_craft({
output = 'technic:mv_distiller',
recipe = {
{'technic:stainless_steel_ingot', 'basic_materials:heating_element', 'technic:stainless_steel_ingot'},
{'pipeworks:tube_1', 'technic:mv_transformer', 'pipeworks:tube_1'},
{'technic:stainless_steel_ingot', 'technic:mv_cable', 'technic:stainless_steel_ingot'},
}
})
technic.register_distiller({tier = "MV", demand = {800, 600, 400}, speed = 2, upgrade = 1, tube = 1})

View File

@ -33,3 +33,4 @@ dofile(path.."/freezer.lua")
--dofile(path.."/power_radiator.lua") --dofile(path.."/power_radiator.lua")
--dofile(path.."/lighting.lua") --dofile(path.."/lighting.lua")
dofile(path.."/distiller.lua") -- patch by Irremann

View File

@ -0,0 +1,9 @@
local S = technic.getter
function technic.register_distiller(data)
data.typename = "distilling"
data.machine_name = "distiller"
data.machine_desc = S("%s Distiller")
technic.register_base_machine(data)
end

View File

@ -0,0 +1,21 @@
local S = technic.getter
technic.register_recipe_type("distilling", {
description = S("Distilling"),
input_size = 2,
})
function technic.register_distiller_recipe(data)
data.time = data.time or 4
technic.register_recipe("distilling", data)
end
local recipes = {
{"farming:sugar", "vessels:glass_bottle", "farming:bottle_ethanol"},
{"mobs:honey", "vessels:glass_bottle", "farming:bottle_ethanol"},
}
for _, data in pairs(recipes) do
technic.register_distiller_recipe({input = {data[1], data[2]}, output = data[3]})
end

View File

@ -69,3 +69,22 @@ if minetest.get_modpath("dye") then
}) })
end end
end end
local recipes = {
{"default:apple", "farming:sugar"},
{"default:papyrus", "farming:sugar 2"},
{"farming:potato", "farming:sugar"},
{"farming:beetroot", "farming:sugar 3"},
{"farming:corn", "farming:sugar 2"},
{"farming:grapes", "farming:sugar 2"},
{"farming:melon_8", "farming:sugar 4"},
{"farming:melon_slice", "farming:sugar"},
{"farming:pepper", "farming:sugar"},
{"farming:pineapple", "farming:sugar 3"},
{"farming:pumpkin_8", "farming:sugar 2"},
{"farming:raspberries", "farming:sugar"},
}
for _, data in pairs(recipes) do
technic.register_extractor_recipe({input = {data[1]}, output = data[2]})
end

View File

@ -33,3 +33,8 @@ dofile(path.."/extractor.lua")
dofile(path.."/compressor.lua") dofile(path.."/compressor.lua")
dofile(path.."/centrifuge.lua") dofile(path.."/centrifuge.lua")
dofile(path.."/freezer.lua") dofile(path.."/freezer.lua")
-- distiller by Irremann
dofile(path.."/distiller_recipes.lua")
dofile(path.."/distiller.lua")

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B