Is there any way to make item placeable only next to rail (like stations and signals)? Where I should dig to? Collision box or something else?
placement constraints
placement constraints
Hello mighty All 
Is there any way to make item placeable only next to rail (like stations and signals)? Where I should dig to? Collision box or something else?
Is there any way to make item placeable only next to rail (like stations and signals)? Where I should dig to? Collision box or something else?
Re: placement constraints
Unfortunately you cannot restrict arbitrary entities to specific locations.
You could use a dummy signal entity to place it and then use control.lua to replace it with whatever entity you wish to constrain to the railways.
You could use a dummy signal entity to place it and then use control.lua to replace it with whatever entity you wish to constrain to the railways.
My mods: Red Alert Harvesters - Clean Pipes - Filtered Splitters

