OreGuard

by drdozer

Prevents building over ore except for things needed for mining. Can be configured for various levels of restriction.

Tweaks
2 months ago
2.0
27

Changelog

Version: 0.3.0
Date: 2025-01-15
  Features:
  - Added startup setting to prevent regular rails from being built over ore patches.
  - If elevated rails mod is present, rail bridges can automatically span over ore patches.
  - Rail planner now automatically creates elevated rails when regular rails would conflict with ore.
  Bug Fixes:
  - Fixed blueprints not respecting ore protection rules.
Version: 0.2.1
Date: 2025-06-15
  Features:
  - Added explicit support for elevated rails and rail supports, allowing them to be placed over ore patches.
  Bug Fixes:
  - Fixed a crash that occurred when building rails (or other entities without a direct item) over ore patches.
Version: 0.2.0
Date: 2024-02-15
  Features:
  - Added tiered build restrictions as a map setting with selectable levels: Hardcore, Mining, Bot Mining, Default, and Decorative.
  - Warning messages now use floating text instead of chat.
  - Improved locale and settings integration.
Version: 0.1.0
Date: 2024-01-01
  Major Features:
  - Initial release.
  - Prevents building most entities and flooring tiles directly on top of ore patches.
  - Allows placement of mining drills, power poles, belts, beacons, pipes, roboports, boxes, and furnaces on ore.
  - Returns blocked items to the player's inventory or spills them on the ground if inventory is full.
  - Displays a warning message when a build is blocked.