Add details to TileBuildabilityRule structure

Place to report issues and suggest improvements to the API documentation.
robot256
Smart Inserter
Smart Inserter
Posts: 1293
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Add details to TileBuildabilityRule structure

Post by robot256 »

https://lua-api.factorio.com/latest/typ ... yRule.html

area - seems to be the area around the entity center that must have tiles that conform to the rules.

required_tiles - entity will be buildable on any tile that collides with the specified collision mask.

colliding_tiles - entity will not be buildable on any tile that collides with the specified collision mask.

remove_on_collision - not sure what this one does.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 168
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Add details to TileBuildabilityRule structure

Post by Osmo »

area does not need to be around entity center, but it is relative to it
remove_on_collision not sure, but it seems like whether tiles are allowed to be changed after entity placement. For example offshore pumps can be landfilled over and they have remove_on_collision=false, but thrusters cannot have platform foundation behind them and have remove remove_on_collision=true
Post Reply

Return to “Documentation Improvement Requests”