I am trying to add asphalt from https://mods.factorio.com/mod/AsphaltPaving as a road surface.
I am currently using the following code:
data.raw.item["Arci-asphalt"].is_road_tile = true
to add to this from Asphalt Roads:
data:extend(
{
{
type = "item",
name = "Arci-asphalt",
icon = "AsphaltPaving/graphics/icons/hr/asphalt.png",
icon_size = 64,
flags = {},
subgroup = "Arci-asphalt-1",
order = "a",
stack_size = config.asphalt_stack_size,
place_as_tile =
{
result = "Arci-asphalt",
condition_size = 1,
condition = { "water-tile" }
}
}
}
)
Is this the correct implementation?