Page 1 of 1

Some collision mask

Posted: Fri Jul 29, 2016 3:29 pm
by Neemys
It would be nice if mod have some mean to add custom collision-mask layer. When we change actual mask for some entities to make room for one to use it mess up those entities. Having something like that :

Code: Select all

data:extend(
{
  {
    type = "collision-layer",
    name = "my-custom-collision-layer-not-used-by-anything"
  }
}
If something like that is already planned for later or too long to be implemented now, could you just add some layer named like "mod-layer1", "mod-layer2" that are not used by any existing vanilla item so we have at least some layer that we can use even if it could collide with other mod.

Thanks

Re: Some collision mask

Posted: Sat Jul 30, 2016 1:57 pm
by Rseding91
I expanded the collision masks so all of the available masks are usable. For 0.13.13 and later there will be layer-10 through layer-15 that can be used.

Custom collision masks aren't supported as the internal data structure doesn't work that way.

Re: Some collision mask

Posted: Sat Jul 30, 2016 4:25 pm
by Neemys
I really appreciate all of your hard work and effort. Thanks you !