Register craft types with unified_inventory

This commit is contained in:
Zefram 2014-04-30 00:19:17 +01:00
parent c9bf799e32
commit 9b64ffea8c
8 changed files with 54 additions and 1 deletions

@ -178,3 +178,8 @@ Single node. = Einzelblock
Sonic Screwdriver = Schallschraubendreher Sonic Screwdriver = Schallschraubendreher
Tree Tap = Baumzapfhahn Tree Tap = Baumzapfhahn
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

@ -168,3 +168,8 @@ Single node. = Nodo simple.
Sonic Screwdriver = Destonillador Sonico Sonic Screwdriver = Destonillador Sonico
Tree Tap = Grifo de Arbol Tree Tap = Grifo de Arbol
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

@ -165,3 +165,9 @@ Mining Laser Mk%d = Laser da miniera mk%d
Single node. = Nodo singolo. Single node. = Nodo singolo.
Sonic Screwdriver = Cacciavite sonico Sonic Screwdriver = Cacciavite sonico
Tree Tap = Batti albero Tree Tap = Batti albero
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

@ -178,3 +178,8 @@ Single node. =
Sonic Screwdriver = Sonic Screwdriver =
Tree Tap = Tree Tap =
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

@ -3,6 +3,14 @@ technic.compressor_recipes = {}
local S = technic.getter local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("compressing", {
description = S("Compressing"),
height = 1,
width = 1,
})
end
technic.register_compressor_recipe = function(src, src_count, dst, dst_count) technic.register_compressor_recipe = function(src, src_count, dst, dst_count)
technic.compressor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count} technic.compressor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then if unified_inventory then

@ -3,6 +3,14 @@ technic.extractor_recipes ={}
local S = technic.getter local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("extracting", {
description = S("Extracting"),
height = 1,
width = 1,
})
end
technic.register_extractor_recipe = function(src, src_count, dst, dst_count) technic.register_extractor_recipe = function(src, src_count, dst, dst_count)
technic.extractor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count} technic.extractor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then if unified_inventory then

@ -1,6 +1,14 @@
local S = technic.getter local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("alloy", {
description = S("Alloy cooking"),
height = 2,
width = 1,
})
end
-- Register alloy recipes -- Register alloy recipes
technic.alloy_recipes = {} technic.alloy_recipes = {}
@ -32,7 +40,7 @@ technic.register_alloy_recipe = function(metal1, count1, metal2, count2, result,
type = "alloy", type = "alloy",
output = result.." "..count3, output = result.." "..count3,
items = {metal1.." "..count1, metal2.." "..count2}, items = {metal1.." "..count1, metal2.." "..count2},
width = 2, width = 0,
}) })
end end
end end

@ -1,6 +1,14 @@
local S = technic.getter local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("grinding", {
description = S("Grinding"),
height = 1,
width = 1,
})
end
technic.grinder_recipes = {} technic.grinder_recipes = {}
function technic.register_grinder_recipe(data) function technic.register_grinder_recipe(data)