Make EntityPrototype.tile_buildability_rules also search entity collision masks

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 420
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Make EntityPrototype.tile_buildability_rules also search entity collision masks

Post by protocol_1903 »

As in title, tile_buildability rules should support all collision mask sources and not just tiles. This would be really nice for creating things like wind turbines that can't be in a certain distance from other wind turbines but other entities can be nearby.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 212
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Make EntityPrototype.tile_buildability_rules also search entity collision masks

Post by Osmo »

Not sure if this would be fitting for tile buildability rules, but having a similar way to restrict placement based on entities around would be handy, especially for showing the valid placement spots to the user as highlighting entities green/red based on cursor position isn't something mods can do
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 420
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Make EntityPrototype.tile_buildability_rules also search entity collision masks

Post by protocol_1903 »

Osmo wrote: Sat Dec 20, 2025 5:09 pm Not sure if this would be fitting for tile buildability rules, but having a similar way to restrict placement based on entities around would be handy, especially for showing the valid placement spots to the user as highlighting entities green/red based on cursor position isn't something mods can do
Rather, I think it should be renamed to something like buildability_rules and cover both cases. Or add entity_buildability_rules but checking collision layers twice seems excessive.
Py and PyBlock developer, wielder of LUA in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
Post Reply

Return to “Modding interface requests”