place_as_tile question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

place_as_tile question

Post by TheSAguy »

Is it possible to have conditions on "place_as_tile".
What I'm trying the do is something like:
result =
{
["water"] = "grass",
["deepwater"] = water",
["water-green"] = "grass",
["deepwater-green"] = ""water-green"
}

Code: Select all

  {
    type = "item",
    name = "landfill",
    icon = "__base__/graphics/icons/landfill.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "terrain",
    order = "c[landfill]-a[dirt]",
    stack_size = 100,
    place_as_tile =
    {
      result =
              {
              ["water"] = "grass",
              ["deepwater"] = water",
              ["water-green"] = "grass",
              ["deepwater-green"] = ""water-green"
              },
      condition_size = 1,
      condition = { "ground-tile" }
    }
  }
Anyway to accomplish this without basically re-writing the landfill mod?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15950
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: place_as_tile question

Post by Rseding91 »

TheSAguy wrote:Anyway to accomplish this without basically re-writing the landfill mod?
No. The place as tile definition doesn't support that system.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”