VeinMiner Thank you for so many downloads! Have you ever thought that mining ores takes too much time? Fear not, VeinMiner is a mod for you! What does VeinMiner do and how to use it? VeinMiner allows you to mine a whole ore vein by simply mining one ore tile while holding the VeinMine hotkey (default: ~). Preview: But what if I consider Dirt and/or other blocks as an ore too? To add more tiles as ores check if "Add tile to whitelist" and "Remove tile from whitelist" hotkeys are bound, aim at the tile you want to add/remove and press corresponding hotkey. But what if I want to VeinMine EVERYTHING?! Well, there's an option in the config! Config instructions Go to Documents\My Games\Terraria\ModLoader\Mod Configs. There's a config file called VeinMiner (assuming you've launched the mod already). Simply edit the Code: "OresOnly": true, to Code: "OresOnly": false, save the file, reload mods or restart the game and you're good to go! Is it compatible with other mods? It is, as long as the ore tile local (not displayed) name ends with "Ore" or "OreTile", or if it drops an item which local name ends with "Ore" or "Gem" or "Chunk". You can also add other (vanilla or modded) tiles to the ore whitelist. Look at the "But what if I consider Dirt and/or other blocks as an ore too?" section above. What blocks are considered as ores in vanilla? Troubleshooting: - VeinMiner doesn't work, even when I hold the ~ key. Make sure your key is properly bound in the Controls menu in-game: - Other mods are currently bound to the ~ key. Simply rebind the hotkey to another unused key. - I can't add tiles to whitelist on multiplayer. It's disabled by default, but there is a config line to change that. - Some ores don't get Veinmined. It is possible that the ore doesn't match the ore detecting filter. You can add it to the whitelist (look at sections above) and let me know, so I can add it to the online list. Download: - Mod Browser - http://www.mediafire.com/file/2y9y8o8o73heq56/VeinMiner.tmod (latest version) - http://www.mediafire.com/file/pyu4tc1oi9x411n/VeinMiner.tmod (18.104.22.168, tML v0.9.2.3) If you know any mods and ores that are not on that list http://textuploader.com/dhrr7 please let me know! Pattern: "Mod_Name1,Ore_Name1,OreName2,...,OreNameLast," "Mod_Name2,Ore_Name1,OreName2,...,OreNameLast," etc. There is no need to add ores from this list to the whitelist, as it's downloaded automatically each time you reload the mod! Config Options "OreTypes" value: array default: a lot of numbers Defines which Tile IDs are considered as ores. Not useful for modded tiles. This might be helpful: https://github.com/blushiemagic/tModLoader/wiki/Vanilla-Tile-IDs "ModOreNames" (you shouldn't insert names manually) value: array default:  (empty) Defines which modded Tile names are considered as ores. For modded tiles only! "OresOnly" value: true/false default: true Defines if only ores can be mined by VeinMiner. "MaxAmountOfBlocks" value: number between 13 and 100000 default: 1000 Defines max amount of blocks per one Veinmine. "DelayBetweenMiningBlocks" value: number between 0 and 5000 (in miliseconds) default: 5 Defines the max delay between blocks mined by Veinmine. Max one tile break per "VeinMiner task" per game's tick "InvertVeinmineHotkey" value: true/false default: false Defines whether the Veinmine hotkey behavior is inverted or not. "ToggleVeinmineHotkey" value: true/false default: false Defines whether the Veinmine hotkey is used to toggle VeinMiner functionality or not. "PerformDistanceCheck" value: true/false default: true Defines if the the tile broken is in player mining range is checked. "ModifyingWhitelistOnMultiplayer" value: true/false default: false Defines whether players can add tile to a whitelist on a multiplayer server (only host has to change it, added/removed tiles will be saved in his config) Changelog 22.214.171.124 - Fixed getting the online list incorrectly, which caused a lot of ores not to be VeinMine-able automatically. - Recompiled the mod for the newest tModLoader version (v0.10.1.4) 126.96.36.199 - Fixed glitches happening on custom size generated (taller/wider/both) maps. - Recompiled the mod for the newest tModLoader version (v0.10.1.3) 1.3 - Changed the host for a online ore list: http://textuploader.com/dhrr7 - Fixed the crash when the online ore list can't be accessed and it was never saved as a file. 1.3 - Added a new way of support for modded ores, ores are now checked with this list: http://textuploader.com/dhrr7 (downloads automatically), if you know any mod which is not added here please let me know, - Modified a "filter" for which modded ores are detected as ores (tile local name ends with "Ore" or "OreTile") - Added a mod icon - Added a now config line to allow adding tiles to whitelist on multiplayer (disabled by default, only the host has to change that) 1.2.4 - Rewritten the VeinMining implementation, it's not using threads now, VeinMiner should be more compatible with other mods, - Optimized performance - Optimized memory usage - Config option "DelayBetweenMiningBlocks" is working differently now. Currently only one tile can be mined per game's tick. This config line is now only useful to slow down the VeinMiner. 1.2.3 - The "Index was outside the bounds of the array." crash SHOULD now be resolved or at least should show some dubug info. 1.2.2 - Added new config line called "ToggleVeinmineHotkey" (ignores InvertVeinmineHotkey), if set to true pressing the VeinMine hotkey toggles the ability to use VeinMiner. - Added some proper Multiplayer support: * Veinmining is now handled by server, not by players, so players having other configs will not have the possibility to Veinmine tiles they shouldn't have been able to. * "Add/Remove tile from whitelist" hotkeys won't work on servers, the only way to add new tiles to the config is to manually edit the config file OR have the server owner switch to single player, add/remove wanted tiles and reload server. **Activating Veinminer by other players holding the hotkey, but when you are mining, unfortunately still might happen. - Some minor code changes. 1.2.1 - Fixed tile whitelist not loading or saving properly 1.2 - Added new keybind called "Add tile to whitelist", simply aim at the tile you want to add and press it - Added new keybind called "Remove tile from whitelist", simply aim at the tile you want to remove and press it - Added the possibility to add/remove tiles to/from whitelist in-game (with the keybinds above) - Added new config line called "ModOreNames" - Added new config line called "PerformDistanceCheck" 1.1.6 - Added distance check when starting to VeinMine, so players have lesser probability to trigger VeinMine for each other (also can't mine with explosives without taking the risk of exploding yourself) - Added a "Invert Veinmine Hotkey" config line, which allows the player to VeinMine when NOT holding the Veinmine hotkey (disables Veinmining when holding the hotkey) - VeinMiner should be less impactful on performance 1.1.5 - Desert Fossil is now considered as ore - Added a new config option named "OreTypes", it allows you to edit which tile IDs are considered as ores 1.1.4 - MaxAmountOfBlocks config line should now be respected correctly - VeinMiner should be much less impactful on performance 1.1.2 - Added support for Smart Cursor - Fixed VeinMiner randomly stopping working again 1.1.1 - Added all gems (Amethyst, Diamond etc.) as ores - Added slush, silt and fossil as ores - Added a new config option named "DelayBetweenMiningBlocks" (amount of time between each block break in milliseconds) 1.1 - Added a config file - Added a possibility to VeinMine not only ores - Fixed VeinMining going really slow with bigger veins Known bugs: - It is possible to trigger VeinMine with explosions (even by mobs like a Clown) as long as VeinMine hotkey is pressed, the player is close enough and he has a mining tool in hand. Not going to be fixed soon. - Other players may be able to Veinmine tiles you've mined even when you haven't held the Veinmine hotkey (multiplayer only of course) Future plans: - Add support for walls. If you want to donate: (I'll greatly appreciate that!) If you have any ideas for new functionalities, please comment them If you find any bugs, please report it to me so I can fix them Mod is inspired by Minecraft mod called the same name.