Terrain Toggle

by NOiZE

Toggle landfill, foundation, cliff explosives and elevated rail auto-placement on/off. Prevents accidental shift+click terrain filling in blueprints and the rail planner. Recipes remain craftable regardless of toggle state.

Utilities
11 hours ago
2.0
5
Trains Environment

Changelog

Version: 1.0.0
Date: 2026-06-07
  Major Features:
    - Initial release. Inspired by "Foundation research toggle" (CramerC) (v1.2.0).
    - Added: Elevated rail toggle (Space Age only) — un-researches the elevated-rail technology to suppress blueprint auto-suggestion; recipe stays enabled.
    - Added: Toggling landfill/foundation now updates the default cover tile on all liquid tiles at runtime via set_default_cover_tile, so the rail planner immediately reflects the new state without requiring a game restart.
    - Added: Crafting recipes (landfill, foundation, cliff-explosives, elevated-rail) remain enabled when the toggle is turned OFF, so the player can still craft and place tiles manually even while blueprint auto-suggestion is disabled.
    - Added: FoundationsRequired compatibility — when landfill or foundation is toggled OFF, entity and tile ghosts placed on the corresponding liquid tiles (water/wetlands for landfill; lava/oil-ocean for foundation) are automatically destroyed, preventing ghost buildings from being queued on impassable terrain.
    - Added: Prototype default_cover_tile is cleared from liquid tiles that have landfill or foundation set directly in their prototype (rather than via a technology effect), ensuring the rail planner does not auto-suggest these tiles before the technology has been researched or after it is toggled OFF.