Help with cliffs

Place to get help with not working mods / modding interface.
SamuelS
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Feb 01, 2017 2:51 pm
Contact:

Help with cliffs

Post 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
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Help with cliffs

Post by Bilka »

there is cliff and small-cliff in the code, so probabaly one of those.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
SamuelS
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Feb 01, 2017 2:51 pm
Contact:

Re: Help with cliffs

Post 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
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3717
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Help with cliffs

Post by DaveMcW »

Cliffs are entities, not tiles. You can't use place_as_tile to create cliffs.
Post Reply

Return to “Modding help”