add distiller
This commit is contained in:
parent
001d1c51d6
commit
8c9f78095f
12
technic_modpack/technic/machines/MV/distiller.lua
Normal file
12
technic_modpack/technic/machines/MV/distiller.lua
Normal 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})
|
@ -33,3 +33,4 @@ dofile(path.."/freezer.lua")
|
||||
--dofile(path.."/power_radiator.lua")
|
||||
--dofile(path.."/lighting.lua")
|
||||
|
||||
dofile(path.."/distiller.lua") -- patch by Irremann
|
||||
|
9
technic_modpack/technic/machines/register/distiller.lua
Normal file
9
technic_modpack/technic/machines/register/distiller.lua
Normal 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
|
@ -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
|
@ -69,3 +69,22 @@ if minetest.get_modpath("dye") then
|
||||
})
|
||||
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
|
||||
|
@ -33,3 +33,8 @@ dofile(path.."/extractor.lua")
|
||||
dofile(path.."/compressor.lua")
|
||||
dofile(path.."/centrifuge.lua")
|
||||
dofile(path.."/freezer.lua")
|
||||
|
||||
|
||||
-- distiller by Irremann
|
||||
dofile(path.."/distiller_recipes.lua")
|
||||
dofile(path.."/distiller.lua")
|
||||
|
BIN
technic_modpack/technic/textures/technic_mv_distiller_bottom.png
Normal file
BIN
technic_modpack/technic/textures/technic_mv_distiller_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 508 B |
BIN
technic_modpack/technic/textures/technic_mv_distiller_front.png
Normal file
BIN
technic_modpack/technic/textures/technic_mv_distiller_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 882 B |
Binary file not shown.
After Width: | Height: | Size: 911 B |
BIN
technic_modpack/technic/textures/technic_mv_distiller_side.png
Normal file
BIN
technic_modpack/technic/textures/technic_mv_distiller_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 736 B |
Binary file not shown.
After Width: | Height: | Size: 716 B |
BIN
technic_modpack/technic/textures/technic_mv_distiller_top.png
Normal file
BIN
technic_modpack/technic/textures/technic_mv_distiller_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 472 B |
Loading…
x
Reference in New Issue
Block a user