mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-25 10:20:37 +01:00
Register craft types with unified_inventory
This commit is contained in:
parent
c9bf799e32
commit
9b64ffea8c
@ -178,3 +178,8 @@ Single node. = Einzelblock
|
||||
Sonic Screwdriver = Schallschraubendreher
|
||||
Tree Tap = Baumzapfhahn
|
||||
|
||||
## Craft descriptions
|
||||
Alloy cooking =
|
||||
Grinding =
|
||||
Compressing =
|
||||
Extracting =
|
||||
|
@ -168,3 +168,8 @@ Single node. = Nodo simple.
|
||||
Sonic Screwdriver = Destonillador Sonico
|
||||
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.
|
||||
Sonic Screwdriver = Cacciavite sonico
|
||||
Tree Tap = Batti albero
|
||||
|
||||
## Craft descriptions
|
||||
Alloy cooking =
|
||||
Grinding =
|
||||
Compressing =
|
||||
Extracting =
|
||||
|
@ -178,3 +178,8 @@ Single node. =
|
||||
Sonic Screwdriver =
|
||||
Tree Tap =
|
||||
|
||||
## Craft descriptions
|
||||
Alloy cooking =
|
||||
Grinding =
|
||||
Compressing =
|
||||
Extracting =
|
||||
|
@ -3,6 +3,14 @@ technic.compressor_recipes = {}
|
||||
|
||||
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.compressor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
|
||||
if unified_inventory then
|
||||
|
@ -3,6 +3,14 @@ technic.extractor_recipes ={}
|
||||
|
||||
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.extractor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
|
||||
if unified_inventory then
|
||||
|
@ -1,6 +1,14 @@
|
||||
|
||||
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
|
||||
technic.alloy_recipes = {}
|
||||
|
||||
@ -32,7 +40,7 @@ technic.register_alloy_recipe = function(metal1, count1, metal2, count2, result,
|
||||
type = "alloy",
|
||||
output = result.." "..count3,
|
||||
items = {metal1.." "..count1, metal2.." "..count2},
|
||||
width = 2,
|
||||
width = 0,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,14 @@
|
||||
|
||||
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 = {}
|
||||
|
||||
function technic.register_grinder_recipe(data)
|
||||
|
Loading…
Reference in New Issue
Block a user