Page 1 of 1

Help with cliffs

Posted: Fri Dec 15, 2017 5:40 pm
by SamuelS
Hey guys, I'm making a small mod for myself where you would be able to use landfill on land and the result would be cliffs.

I have figured out the landfill part of it but i can't for the life of me find what the cliff entity name is.

This is the closest thing i can find but it is in a local function scaled_cliff. Line 87 in demo-entities.lua

return {
type = "cliff",
name = name,
icon = "__base__/graphics/icons/cliff-icon.png",
icon_size = 32,
subgroup = "cliffs",
flags = {"placeable-neutral"},

I can't figure out what the result should be...

place_as_tile =
{
result = "small-cliff",
condition_size = 1,
condition = { "water-tile" }
}

thanks,
Samuel

Re: Help with cliffs

Posted: Fri Dec 15, 2017 6:49 pm
by Bilka
there is cliff and small-cliff in the code, so probabaly one of those.

Re: Help with cliffs

Posted: Fri Dec 15, 2017 6:52 pm
by SamuelS
Bilka wrote:there is cliff and small-cliff in the code, so probabaly one of those.
yeah i have tried both of those. ugh this is Frustrating

Re: Help with cliffs

Posted: Sat Dec 16, 2017 12:45 am
by DaveMcW
Cliffs are entities, not tiles. You can't use place_as_tile to create cliffs.