Tiles collison

Place to get help with not working mods / modding interface.
Post Reply
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Tiles collison

Post by darkfrei »

Hi all!

By a lot of tiles you can find collision_mask, for example by water tile is:

Code: Select all

    collision_mask =
    {
      "water-tile",
      "item-layer",
      "resource-layer",
      "player-layer",
      "doodad-layer"
    }
By fast all ground tiles the collision looks like:

Code: Select all

collision_mask = {"ground-tile"}
Another place - items, that can be placed as tiles. For example, the concrete has this property:

Code: Select all

    place_as_tile =
    {
      result = "concrete",
      condition_size = 1,
      condition = { "water-tile" }
    }
Here "condition" is for disabling possibility that you can place concrete tiles near water tiles.

How to make that so, that you can't replace one tile with another?

Post Reply

Return to “Modding help”