Mindustry

Mindustry

Not enough ratings
Per-unit miner
   
Award
Favorite
Favorited
Unfavorite
Tags: schematic
File Size
Posted
937.000 B
5 Aug, 2022 @ 3:47am
1 Change Note ( view )

Subscribe to download
Per-unit miner

Description
This program uses a unit to mine the specified ore an unload it into a specified building.

How to use:
  • Set a worker type in processor logic (instruction #3, defaults to Pulsar).
  • Link a sorter or an unloader. This will determine what ore to mine.
    Note that different units have different mining tiers! You can figure out which unit can mine what by controlling it.
  • Link a building to drop items to.
    This can be any building, commonly a storage or a factory.
The program will then find the nearest unit of kind that isn't being controlled and will switch between mining ore and placing it in the target building.

The program gracefully handles disappearances of both unit and linked buildings; target resource changes are handled after dropping off a batch of resources.

The program doesn't multi-bind for sake of distributing units with more granularity.

Schematic code:
bXNjaAF4nGNgZGBkYWDJS8xNZeALSC3SLc3LLFHIzcxLLWJgLy5JTczNTGHgMrIwMbE0Njc2MGDgTkktTi7KLCjJzM9juOuRX16Sb8WlqxCcWqJQkpGqUJ5flJ1apAA2paSyIFUhMw8sDtGjB1Tpk5mXrZCoUJxfVAJUmF+kkJgHVJ6Tn5iSWqSn4FminpOjkJIKlAM5QqE8IxFoUD7YRUi6k0ozc1Iy89JBUilF+QUKmSWpucUgnkZiXmVJBkgqPT+1WEchIzM9Qzc5sSAxObOkUqGgKDUttagoNUVTj8s1MTkDKJCfnFoMdIxCcn5eSVF+TrFCPtBakPv1GNhyEpNSc4oZmKJjGRn4czOTi/J14RoYGBgYGUCAj4GBqaJiztHQ2323DASW5ofuOzR/AkPi6ehVez1q73udDk5NYn5pVWa2beuTpffj7uszbsmN5wpiSj/Xk37ujMp8se7z+y3EGHpzKl7saNhydIGeyZVyEfUL/jf5E0IZPe49POLIecrpnXWXg7HHoYcZnOUNRh9/qCkytuc9eWT9lmXBJAFhI6fekPDXQVMzfZh1tRt8eZy781ilGVw8GEVqRZm+Nz/4Of8U642Gxx0LDzz+zHnp+HbJzJ+uS50tpQ/2Tws0NHIyKGo3FSw0PT4pqEzSacHm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