place_as_tile question
Posted: Thu Jun 30, 2016 7:13 pm
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"
}
Anyway to accomplish this without basically re-writing the landfill mod?
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" }
}
}