โ๏ธ VeinMiner (Forge 1.20.1)
A clean, lightweight, and highly optimized VeinMiner & TreeCapitator mod for Minecraft 1.20.1 (Forge).
Sneak (Shift) while mining to instantly mine entire veins of ores and fell entire trees (logs and leaves) with all drops delivered straight to your feet!
โจ Features
๐ Ore Vein Mining: Mine entire ore veins in a single click while sneaking (Shift).
๐ช Full Tree Felling (TreeCapitator): Chop down whole trees instantly! Automatically cuts the trunk and clears connected leaves, dropping all wood, saplings, sticks, and apples together.
๐ Deepslate & Stone Seamless Transition: Veins that span between stone and deepslate layers (e.g. Osmium, Iron, Copper) are mined together seamlessly across layer boundaries.
๐ก๏ธ Tool Durability Safeguard: Never accidentally destroy your favorite enchanted pickaxe or axe. Vein mining automatically halts before your tool breaks (leaves at least 1 durability).
๐ฆ Aggregated Drops: All mined blocks and XP drop right where you broke the initial block—no need to climb up trees or explore dark caverns to collect your loot.
โ๏ธ Fully Configurable: Easily adjust max blocks, sneak-only mode, hunger exhaustion, and add custom block IDs via config/veinminer-common.toml.
โก Ultra Lightweight & Zero Required Dependencies: Built using efficient 3D flood-fill (BFS) algorithms. Server-friendly and cause zero lag.
๐ Mod Compatibility & Optional Dependencies
VeinMiner natively supports all vanilla blocks plus modded ores and trees out of the box
Works seamlessly with (as optional dependencies):
Mekanism: Osmium, Tin, Lead, Uranium, Fluorite (regular & deepslate).
Thermal Series (Thermal Foundation): Tin, Lead, Silver, Nickel, Ruby, Sapphire, Apatite, Cinnabar, Niter, Sulfur, and Rubberwood trees!
Extreme Reactors 2: Yellorite, Anglesite, and Benitoite ores.
Railcraft Reborn: Lead, Nickel, Silver, Tin, Zinc, Sulfur, Saltpeter, and Firestone ores.
Integrated Dynamics: Full support for Menril Trees (including resin-filled logs and leaves).
Botania: Mystical Livingwood and Dreamwood trees.
Applied Energistics 2: Certus Quartz and crystal clusters.
...and any other mod using standard Forge/Common tags!
๐ฎ How to Use
1. Sneak (Shift) while breaking an ore block with a pickaxe -> The whole vein is mined!
2. Sneak (Shift) while breaking a log with an axe or your bare hand -> The whole tree and crown are felled!
3. To mine just a single block normally, simply mine without sneaking.
โ๏ธ Configuration (config/veinminer-common.toml)
You can customize everything to fit your playstyle:
sneakOnly (default: true) - Only activate vein mining when crouching.
preventToolBreaking (default: true) - Stops mining before the tool breaks.
dropAtOrigin (default: true) - Drops all mined items at the player's mined position.
requireMatchingTool (default: false) - When false, works with any tool or bare hands.
maxOreBlocks (default: 64) - Maximum number of ores mined in one vein.
maxTreeLogs (default: 128) - Maximum number of logs cut per tree.
exhaustionPerBlock (default: 0.005) - Hunger exhaustion per extra block mined.
customOreBlocks, customLogBlocks, customLeafBlocks - Whitelist your own custom block IDs!
๐ License & Modpacks
You are completely free to include VeinMiner in any CurseForge or Modrinth modpack!

