Wood Does Burn
Wooden chests and small electric poles burn as fuel again, like they did before Factorio 0.17.
Their fuel value is derived from the wood in their recipes:
wood fuel value x wood used in the recipe / items crafted x energy recovery rate
The values are calculated from the recipes and from wood's fuel value rather than hard-coded, so changes made by other mods to either are reflected.
The energy recovery rate is a startup setting (0 to 1, default 0.75); at 0 no fuel value is set. At the default rate a wooden chest burns for 3MJ and a small electric pole for 0.75MJ.
Chests and poles are scrap fuel: only stationary burners (furnaces, boilers, burner mining drills, ...) accept them. Locomotives, cars, tanks, spidertrons and burner inserters do not.
Requires Factorio 2.1.20 or newer.
Notes for modders
The items are not in the chemical fuel category. They use their own category, wooddoesburn-scrap.
Registering your own wooden items
Add a mod-data prototype in your data stage. No dependency on this mod is needed:
data:extend({
{
type = "mod-data",
name = "your-mod-name",
data_type = "wood-still-burns.items",
data = {items = {"your-wooden-item", "another-wooden-item"}},
},
})
The data_type is the one Wood Still Burns uses, so one registration works with either mod. An item is skipped (and the reason logged) when it already has a fuel value, when its recipe (the recipe with the same name as the item) contains no wood, or when the result has a probability or no fixed amount.
Working with the fuel category
- Your entity is a locomotive, car, spider-vehicle or inserter and should burn scrap: add
"wooddoesburn-scrap"to itsfuel_categoriesyourself. - Your stationary burner should not burn scrap: add an optional dependency (
"? WoodDoesBurn") and remove"wooddoesburn-scrap"from itsfuel_categoriesin your owndata-final-fixes.lua. - Your burner uses a custom fuel category instead of
chemical: it is left alone. Add"wooddoesburn-scrap"yourself if you want it. - Autofill-style scripts: to keep scrap out, skip items whose
fuel_categoriescontainwooddoesburn-scrap, or only insertchemicalfuels.
Thanks
Wood Still Burns by sakuro: thank you for keeping this feature alive on Factorio 2.1.20 while WoodDoesBurn no longer loaded. The fuel value derived from the recipe, the energy recovery rate setting and the registration through mod-data were introduced there; this mod adopted all three.