Code: Select all
--in rocket-fuel.lua
data:extend(
{
{
type = "item",
name = "rocket-fuel",
fuel_value = "250MJ"
}
}
)
Code: Select all
--in rocket-fuel.lua
data:extend(
{
{
type = "item",
name = "rocket-fuel",
fuel_value = "250MJ"
}
}
)
Code: Select all
{
type = "item",
name = "solid-fuel",
icon = "__base__/graphics/icons/solid-fuel.png",
flags = {"goes-to-main-inventory"},
fuel_value = "25MJ",
subgroup = "raw-resource",
order = "c[solid-fuel]",
stack_size = 50
}
Code: Select all
{
type = "item",
name = "rocket-fuel",
icon = "__YouMod__/path/to/icon.png", --change this to a path to your icon for the item.
flags = {"goes-to-main-inventory"},
fuel_value = "250MJ",
subgroup = "intermediate-product",
order = "c[solid-fuel]",
stack_size = 50
}
Code: Select all
data.raw.item["rocket-fuel"].fuel_value = "250MJ"
I just tried this, and it doesn't seem to work.Rahjital wrote:Or you can do this:
More elegant and doesn't overwrite any other properties of rocket fuel, ie it's more compatible with other mods.Code: Select all
data.raw.item["rocket-fuel"].fuel_value = "250MJ"
Code: Select all
table.insert(data.raw.item["rocket-fuel"],{fuel_value = "250MJ",})
Then you've done something wrong because it worked perfectly fine for me.bigyihsuan wrote:I just tried this, and it doesn't seem to work.