Empty Barrel Disassembling

This is the place to request new mods or give ideas about what could be done.
Post Reply
statuscaptain
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Jun 23, 2021 10:41 am
Contact:

Empty Barrel Disassembling

Post 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

PFQNiet
Filter Inserter
Filter Inserter
Posts: 289
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Re: Empty Barrel Disassembling

Post 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.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Empty Barrel Disassembling

Post by DaveMcW »


statuscaptain
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Jun 23, 2021 10:41 am
Contact:

Re: Empty Barrel Disassembling

Post by statuscaptain »

Awesome, thanks!

Post Reply

Return to “Ideas and Requests For Mods”