The Cave Auto-Dig


Removes the repetitive clicking of manual digging in The Cave, without speeding anything up: mining speed, reach, and every dig's consequences are exactly the same as clicking it yourself.

Utilities
15 days ago
2.0
55

g Thank you :)

a month ago

Hi hanshino,

I was genuinely very happy and pleasantly surprised to see that you created an add-on specifically for The Cave. Thank you for taking the time to build this.

Auto-Dig is a really good idea. It removes some of the repetitive clicking without removing the mining speed, reach limitations, or the consequences of digging, so it still respects the intended gameplay of The Cave.

I looked through version 0.2.0, and the code seems carefully and thoughtfully written. I especially appreciate that you use Factorio’s normal "player.mine_entity" method instead of directly deleting rocks or changing tiles. This should allow The Cave’s normal mining events, caverns, resources, enemies, and other consequences to continue working correctly.

The three different modes, the 1/3-tile tunnel-width option, the enemy protection, and the collapse-stress protection are also very nice additions.

I want you to know that I fully support your add-on, and I have absolutely no problem with you developing and publishing a mod made for The Cave. I’m happy to support it, and if you ever need information about The Cave’s systems or compatibility, you are welcome to contact me.

I only noticed a few small technical points that may be worth improving:

  1. In Auto-clear mode, when no reachable rock is found, the mod appears to search the entire reachable area every tick. On a public multiplayer server, especially with several players and upgraded mining reach, this might create unnecessary UPS usage. A small idle delay—perhaps checking every 10–30 ticks when no target is found—could make it safer for large servers.

  2. The collapse protection currently relies on "diggy-v1.debug_max_stress", which is an internal testing interface rather than a permanent public API. It could change in a future The Cave update. If the interface becomes unavailable while Cave Collapse is enabled, it may be safer to pause Auto-Dig instead of continuing without protection. I can also look into providing a stable public remote interface for this purpose.

  3. The first rock is mined immediately when Auto-Dig starts, and the mining cooldown is applied afterward. The long-term mining rate is similar to manual mining, but the first mining action is faster than normal. If the goal is exact parity with manual mining, you could apply the first mining delay before removing the first rock.

  4. The mod currently includes English and Traditional Chinese localization. Adding Russian localization in the future would also be useful because The Cave has Russian-speaking players.

These are only improvement suggestions, not a rejection of the mod. Overall, I think this is a clever and useful add-on, and I’m really glad that The Cave inspired you to create it.

Thank you again for your work and for contributing something useful to The Cave community. I’m looking forward to seeing how the mod develops.

15 days ago

Hi behroozzx,

Thank you so much for your kind words! To be completely honest, this was just a vibe coding project I made because my fingers got tired of digging while playing, so I really didn't expect it to catch your attention like this—I’m super flattered and grateful for your support!

Thanks a lot for all the technical feedback and suggestions. I’ll definitely look into adjusting these points in upcoming updates. As for Russian localization, since I don’t speak the language, I’ll likely have to rely on AI to help me translate it to support those players.

By the way, The Cave is an absolute blast to play! Thanks again for creating such an awesome mod!

New response