lead colors
This commit is contained in:
parent
1db2ff551d
commit
0c88cd3ac9
4 changed files with 29 additions and 1 deletions
22
lead-recipe-colors.lua
Normal file
22
lead-recipe-colors.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
local util = require("__bzlead__.util");
|
||||
|
||||
|
||||
|
||||
local items = {"concrete", "refined-concrete", "stone-brick", "stone-wall"}
|
||||
|
||||
local colors = {
|
||||
"acid", "black", "blue", "brown", "cyan", "green",
|
||||
"orange", "pink", "purple", "red", "white", "yellow"
|
||||
}
|
||||
|
||||
|
||||
for i, item in pairs(items) do
|
||||
for j, color in pairs(colors) do
|
||||
if data.raw.recipe[item.."-"..color] then
|
||||
util.add_ingredient(item.."-"..color, "lead-plate", 1)
|
||||
end
|
||||
if data.raw.recipe[color.."-"..item] then
|
||||
util.add_ingredient(color.."-"..item, "lead-plate", 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue