[#12813] Add Item Config Option for Drills Hovering Multiple Ores
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
If your pull request is not translation-related, read the list of requirements below and check each box:
I have read the contribution guidelines.
I have ensured that any new features or fixes in this PR function correctly in-game, if applicable.
I affirm that this code follows Mindustry's AI policy.
<img width="886" height="719" alt="Screenshot 2026-11-01 at 18 47 06" src="https://github.com/user-attachments/assets/b02d1c4c-2bff-4181-8b74-7f8467958df0" />
If there is an ore patch with multiple ores and you want to mine the one in lower density there is currently no way to do that. It's also not possible to mine floor sand if it has any ore on top of it.
This PR fixes it by adding drillingItem as a config option like this:
<img width="620" height="581" alt="Screenshot 2026-11-01 at 18 48 05" src="https://github.com/user-attachments/assets/49677fee-9736-4ef7-b8d0-c0a9d36cb75f" />
<img width="691" height="574" alt="Screenshot 2026-11-01 at 18 47 52" src="https://github.com/user-attachments/assets/3aa1eaec-9794-486c-9e5b-aafe49bddcb7" />
It supports:
Item to mine can be controlled with logic
Picking up drills as paylaod and dropping them again keeps the drill item if possible
Backward compatibility with the old drill save version, breaks no bases
Drill item is kept in schemes and between saves/multiplayer syncs
Sorry if the formatting is wrong somewhere btw, I'm so used to writing spaces around the parentheses of if statements and functions
I was a bit unsure about what to do with drills that can't mine the ore but the sand under, maybe we should just block it with the "better drill required" error? Currently it's allowed and may case confusion for new players.
由 MDT GitHub 同步机器人自动同步。