Example (on a new map or in the attached save, where the position just to the right of the starting position is empty):
Code: Select all
/c game.print(game.surfaces[1].can_place_entity{direction=0, inner_name="transport-belt", name="entity-ghost", position={x=1.5,y=-0.5}, force="player", build_check_type=defines.build_check_type.script_ghost})
Code: Select all
/c game.print(game.surfaces[1].can_place_entity{direction=0, name="transport-belt", position={x=1.5, y=-0.5}, force="player", build_check_type=defines.build_check_type.script_ghost})
Code: Select all
/c game.print(game.surfaces[1].can_place_entity{direction=0, inner_name="inserter", name="entity-ghost", position={x=1.5, y=-0.5}, force="player", build_check_type=defines.build_check_type.script_ghost})
splitters, underground belts, and the fast/express versions all have the same issue. I'm not sure if I'm doing the right build_check_type, but the behavior is the same for all build_check_types.