forked from brevven/titanium
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtitanium-recipe-final-5d.lua
More file actions
124 lines (113 loc) · 3.99 KB
/
titanium-recipe-final-5d.lua
File metadata and controls
124 lines (113 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
local util = require("__bztitanium__.data-util");
if mods["5dim_core"] then
data.raw.item[util.me.titanium_plate].subgroup = "plates-plates"
data.raw.recipe[util.me.titanium_plate].subgroup = "plates-plates"
data.raw.item["titanium-ore"].subgroup = "plates-ore"
if mods["5dim_resources"] then
-- Industrial furnace
data:extend({
{
type = "recipe",
name = "titanium-plate-industrial-ore",
category = "industrial-furnace",
subgroup = "plates-industrial-ore",
order = "ad[titanium-plate]",
icon = "__bztitanium__/graphics/icons/titanium-plate.png",
icon_size = 64, icon_mipmaps = 3,
enabled = false,
energy_required = 140,
ingredients = {{"titanium-ore", 425}},
result = util.me.titanium_plate,
result_count = 100,
}
})
table.insert(data.raw.technology[util.me.titanium_processing].effects,
{type = "unlock-recipe", recipe="titanium-plate-industrial-ore"})
-- Titanium dust
data:extend(
{
{
type = "item",
name = "titanium-dust",
subgroup = "plates-dust",
order = "d[titanium-plate]",
icon = "__bztitanium__/graphics/icons/titanium-powder.png",
icon_size = 64, icon_mipmaps = 3,
stack_size = 200
},
{
type = "recipe",
name = "titanium-plate-dust",
icon = "__bztitanium__/graphics/icons/titanium-plate.png",
icon_size = 64, icon_mipmaps = 3,
subgroup = "plates-plates2",
order = "d[titanium-plate]",
category = "smelting",
energy_required = 8,
enabled = false,
ingredients = {
{"titanium-dust", 5}
},
result = util.me.titanium_plate
},
{
type = "recipe",
name = "titanium-dust",
category = "mashering",
order = "d[titanium-plate]",
energy_required = 3.2,
enabled = false,
ingredients = {
{"titanium-ore", 1}
},
result = "titanium-dust",
result_count = 2
},
{
type = "recipe",
name = "titanium-plate-industrial-dust",
category = "industrial-furnace",
subgroup = "plates-industrial-dust",
order = "ad[titanium-plate]",
icon = "__bztitanium__/graphics/icons/titanium-plate.png",
icon_size = 64, icon_mipmaps = 3,
enabled = false,
energy_required = 140,
ingredients = {{"titanium-dust", 425}},
result = util.me.titanium_plate,
result_count = 100,
}
})
table.insert(data.raw.technology[util.me.titanium_processing].effects,
{type = "unlock-recipe", recipe="titanium-dust"})
table.insert(data.raw.technology[util.me.titanium_processing].effects,
{type = "unlock-recipe", recipe="titanium-plate-dust"})
table.insert(data.raw.technology[util.me.titanium_processing].effects,
{type = "unlock-recipe", recipe="titanium-plate-industrial-dust"})
end
if mods["5dim_automation"] then
for i, name in ipairs(
{"5d-assembling-machine-07","5d-assembling-machine-08","5d-lab-06","5d-lab-07"}) do
util.replace_ingredient(name, "steel-plate", util.me.titanium_plate)
end
end
if mods["5dim_nuclear"] then
for i, name in ipairs(
{
"5d-steam-turbine-02",
"5d-steam-turbine-03",
"5d-steam-turbine-04",
"5d-steam-turbine-05",
"5d-steam-turbine-06",
"5d-steam-turbine-07",
"5d-steam-turbine-08",
"5d-steam-turbine-09",
"5d-steam-turbine-10"
}) do
util.add_ingredient(name, util.me.titanium_plate, 20)
end
end
if mods["5dim_battlefield"] then
util.replace_ingredient(name, "steel-plate", util.me.titanium_plate)
end
end