diff --git a/data.lua b/data.lua new file mode 100644 index 0000000..00e9073 --- /dev/null +++ b/data.lua @@ -0,0 +1,3 @@ +require("silica-recipe") +require("silicon-recipe") + diff --git a/graphics/icons/silica-processing.png b/graphics/icons/silica-processing.png new file mode 100644 index 0000000..a64b022 Binary files /dev/null and b/graphics/icons/silica-processing.png differ diff --git a/graphics/icons/silica.png b/graphics/icons/silica.png new file mode 100644 index 0000000..f6f9a57 Binary files /dev/null and b/graphics/icons/silica.png differ diff --git a/graphics/icons/silicon-processing.png b/graphics/icons/silicon-processing.png new file mode 100644 index 0000000..0735121 Binary files /dev/null and b/graphics/icons/silicon-processing.png differ diff --git a/graphics/icons/silicon.png b/graphics/icons/silicon.png new file mode 100644 index 0000000..92c5496 Binary files /dev/null and b/graphics/icons/silicon.png differ diff --git a/graphics/icons/thumbnail.png b/graphics/icons/thumbnail.png new file mode 100644 index 0000000..6babb48 Binary files /dev/null and b/graphics/icons/thumbnail.png differ diff --git a/locale/en/silicon.cfg b/locale/en/silicon.cfg new file mode 100644 index 0000000..cb8a9ed --- /dev/null +++ b/locale/en/silicon.cfg @@ -0,0 +1,23 @@ +[entity-name] +silica=Silica +silicon=Silicon + +[item-name] +silica=Silica +silicon=Silicon + +[item-description] +silica=Can be used directly or processed further. +silicon=Needed for various electrical and electronic applications + +[technology-name] +silica-processing=Silica processing +silicon-processing=Silicon processing + +[technology-description] +silica-processing=Process stone brick into silica. +silicon-processing=Process silica insto silcon. + +[recipe-name] +silica=__ITEM__Silica__ +silicon=__ITEM__Silicon__ diff --git a/silica-recipe.lua b/silica-recipe.lua new file mode 100644 index 0000000..93f4a41 --- /dev/null +++ b/silica-recipe.lua @@ -0,0 +1,59 @@ +-- Silica +data:extend( +{ + { + type = "recipe", + name = "silica", + category = "smelting", + normal = + { + enabled = false, + energy_required = 3.2, + ingredients = {{"stone-brick", 1}}, + result = "silica", + result_count = 5 + }, + expensive = + { + enabled = false, + energy_required = 6.4, + ingredients = {{"stone-brick", 2}}, + result = "silica", + result_count = 5 + }, + + }, + { + type = "item", + name = "silica", + icon = "__bzsilicon__/graphics/icons/silica.png", + icon_size = 64, + subgroup = "raw-material", + order = "b[silica]", + stack_size = 100 + }, + { + type = "technology", + name = "silica-processing", + icon_size = 128, + icon = "__bzsilicon__/graphics/icons/silica-processing.png", + effects = + { + { + type = "unlock-recipe", + recipe = "silica" + } + }, + unit = + { + count = 10, + ingredients = + { + {"automation-science-pack", 1}, + }, + time = 30 + }, + order = "b-b" + }, +} +) diff --git a/silicon-recipe.lua b/silicon-recipe.lua new file mode 100644 index 0000000..163e4b9 --- /dev/null +++ b/silicon-recipe.lua @@ -0,0 +1,61 @@ +-- Silicon +data:extend( +{ + { + type = "recipe", + name = "silicon", + category = "smelting", + normal = + { + enabled = false, + energy_required = 3.2, + ingredients = {{"silica", 10}}, + result = "silicon", + result_count = 1 + }, + expensive = + { + enabled = false, + energy_required = 3.2, + ingredients = {{"silica", 10}}, + result = "silicon", + result_count = 1 + }, + + }, + { + type = "item", + name = "silicon", + icon = "__bzsilicon__/graphics/icons/silicon.png", + icon_size = 64, + subgroup = "raw-material", + order = "b[silica]", + stack_size = 100 + }, + { + type = "technology", + name = "silicon-processing", + icon_size = 128, + icon = "__bzsilicon__/graphics/icons/silicon-processing.png", + effects = + { + { + type = "unlock-recipe", + recipe = "silicon" + } + }, + unit = + { + count = 100, + ingredients = + { + {"automation-science-pack", 1}, + {"logistic-science-pack", 1}, + }, + time = 30 + }, + prerequisites = {"silica-processing"}, + order = "b-b" + }, +} +) diff --git a/thumbnail.png b/thumbnail.png new file mode 100644 index 0000000..6babb48 Binary files /dev/null and b/thumbnail.png differ