allow_decomposition

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

allow_decomposition

Post by Ranakastrasz »

Anyone have any idea what that variable does?

Code: Select all

   {
    type = "recipe",
    name = "nuclear-fuel-reprocessing",
    energy_required = 50,
    enabled = false,
    category = "centrifuging",
    ingredients = {{"used-up-uranium-fuel-cell", 5}},
    icon = "__base__/graphics/icons/nuclear-fuel-reprocessing.png",
    subgroup = "intermediate-product",
    order = "r[uranium-processing]-b[nuclear-fuel-reprocessing]",
    main_product = "",
    results =
    {
      {
        name = "uranium-238",
        amount = 3
      }
    },
    allow_decomposition = false
  },
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

Rseding91
Factorio Staff
Factorio Staff
Posts: 13173
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: allow_decomposition

Post by Rseding91 »

It tells the "total raw" system to ignore the recipe when figuring out what something is made of.
If you want to get ahold of me I'm almost always on Discord.

User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2124
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: allow_decomposition

Post by Ranakastrasz »

GASP

That will be very useful for mods with circular recipes or weird/alternate sources.

Also barreling. I didn't check, but I assume it to be true there as well.


Always hated seeing something using tiny bits of like 30 different item types when it is just made of wood and iron... Or something.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16

User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 726
Joined: Sun Mar 13, 2016 9:48 am
Contact:

Re: allow_decomposition

Post by DRY411S »

Rseding91 wrote:It tells the "total raw" system to ignore the recipe when figuring out what something is made of.
This attribute does not feature in the lua-api documentation. Is it at the 'root' of the recipe object, or does it appear in the 'normal' and 'expensive' sections separately?

Post Reply

Return to “Modding help”