carbon fiber start
This commit is contained in:
parent
032b5dbdba
commit
96e4164d80
6 changed files with 41 additions and 0 deletions
30
carbon-fiber.lua
Normal file
30
carbon-fiber.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
local util = require("__bzcarbon__.data-util");
|
||||||
|
|
||||||
|
if util.me.use_fiber() then
|
||||||
|
data:extend({
|
||||||
|
{
|
||||||
|
type = "item",
|
||||||
|
name = "carbon-fiber",
|
||||||
|
icon = "__bzcarbon__/graphics/icons/carbon-fiber.png",
|
||||||
|
icon_size = 128,
|
||||||
|
subgroup = "intermediate-product",
|
||||||
|
order = "g[graphite-carbon-fiber]",
|
||||||
|
stack_size = util.get_stack_size(100),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "recipe",
|
||||||
|
name = "carbon-fiber",
|
||||||
|
category = "advanced-crafting",
|
||||||
|
order = "d[graphite-carbon-fiber]",
|
||||||
|
enabled = false,
|
||||||
|
energy_required = 1,
|
||||||
|
ingredients = {
|
||||||
|
{type="item", name="plastic", amount=1},
|
||||||
|
{type="item", name="graphite", amount=1},
|
||||||
|
},
|
||||||
|
results = {
|
||||||
|
{type="item", name= "carbon-fiber", amount=1},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
BIN
graphics/icons/carbon-fiber.png
Normal file
BIN
graphics/icons/carbon-fiber.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
BIN
graphics/icons/carbon-fiber.xcf
Normal file
BIN
graphics/icons/carbon-fiber.xcf
Normal file
Binary file not shown.
BIN
graphics/technology/carbon-fiber.png
Normal file
BIN
graphics/technology/carbon-fiber.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
4
me.lua
4
me.lua
|
|
@ -3,6 +3,10 @@ local me = {}
|
||||||
me.name = "bzcarbon"
|
me.name = "bzcarbon"
|
||||||
me.list = {}
|
me.list = {}
|
||||||
|
|
||||||
|
function me.use_fiber()
|
||||||
|
return me.get_setting("bzcarbon-enable-carbon-fiber") == "yes"
|
||||||
|
end
|
||||||
|
|
||||||
function me.use_fullerenes()
|
function me.use_fullerenes()
|
||||||
if me.get_setting("bz-all-intermediates") then return true end
|
if me.get_setting("bz-all-intermediates") then return true end
|
||||||
return me.get_setting("bzcarbon-enable-fullerenes") == "yes"
|
return me.get_setting("bzcarbon-enable-fullerenes") == "yes"
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,13 @@ data:extend({
|
||||||
default_value = "no",
|
default_value = "no",
|
||||||
allowed_values = {"no", "yes"},
|
allowed_values = {"no", "yes"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type = "string-setting",
|
||||||
|
name = "bzcarbon-enable-carbon-fiber",
|
||||||
|
setting_type = "startup",
|
||||||
|
default_value = "no",
|
||||||
|
allowed_values = {"no", "yes"},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type = "string-setting",
|
type = "string-setting",
|
||||||
name = "bzcarbon-enable-rough-diamond",
|
name = "bzcarbon-enable-rough-diamond",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue