Page 1 of 1

Empty Barrel Disassembling

Posted: Wed Jun 23, 2021 10:50 am
by statuscaptain
Hi

I would really love a mod recipe that could simply (as per the title) disassemble/smelt empty barrels back into steel plates or iron plates even. This is not something unrealistic irl and therefor should be available in game?

For balancing purposes, a raw materials penalty should probably apply - perhaps getting 3 of 4 iron plates per barrel?

Looking forward to hearing from devs!

Thanks

Re: Empty Barrel Disassembling

Posted: Wed Jun 23, 2021 12:03 pm
by PFQNiet

Code: Select all

data:extend{
  {
    type = "recipe",
    name = "recycle-empty-barrel",
    category = "crafting",
    energy_required = 1,
    ingredients = {{"empty-barrel",1}},
    result = "steel-plate", -- or results = {{type="item", name="steel-plate", amount=1, probability=0.75}},
    subgroup = "intermediate-product",
    enabled = false
  }
}
table.insert(data.raw.technology['fluid-handling'].effects, {type="unlock-recipe", recipe="recycle-empty-barrel"})
And that's about it. Add a locale entry as well:

Code: Select all

[recipe-name]
recycle-empty-barrel=Recycle empty barrel
And you're done. Obviously you can go further, such as adding a custom icon to the recipe, but that's easy enough.

Re: Empty Barrel Disassembling

Posted: Wed Jun 23, 2021 1:12 pm
by DaveMcW

Re: Empty Barrel Disassembling

Posted: Wed Jun 23, 2021 1:50 pm
by statuscaptain
Awesome, thanks!