VeinMiner — a mod for Minecraft
VeinMiner breaks a connected vein of any ore or other configured blocks of the same type in a single hit. Setup, commands, block groups and…
VeinMiner breaks a connected vein of any ore or other configured blocks of the same type in a single hit. Setup, commands, block groups and settings.
VeinMiner — a mod for Minecraft
Minecraft version the article was written for: 26.1.2
Mod version: 2.7.1
Dependencies: Fabric API, Silk, Fabric Language Kotlin
VeinMiner breaks a connected vein of any ore or other configured blocks of the same type in a single hit — from a diamond deposit to a column of wood. The same author has two more editions of the project (a datapack for vanilla and a plugin for Paper/Purpur).
Setup
Instead of a chat menu, there's a dedicated /veinminer command with subcommands, a file config, a permission system and block groups.
a demonstration of the mod in action on iron and gold ore
Commands
Command | Purpose |
/veinminer blocks | Editing the allowed blocks |
/veinminer toggle | Fully enabling/disabling |
/veinminer settings | Changing the general parameters |
By default everyone is granted permission to use the commands.
How to add a block to the allowed list
By default the mod only vein-mines blocks that are on the allowed list. If a block isn't on it, it breaks one at a time, just like in plain vanilla.
To add one, use the command: /veinminer blocks add
In a single line you can add not just one block but a whole tag — a group of blocks that Mojang has grouped by meaning in advance. For example, #minecraft:logs — all kinds of wood together.
Other vanilla tags work the same way: #minecraft:planks, #minecraft:coal_ores, #minecraft:diamond_ores, #minecraft:leaves. Some mods add their own tags in a separate namespace (for example, #c:storage_blocks from Common Tags) — those can be tied in as well.
adding all types of wood to the list
General parameters for the commands
To change them: /veinminer settings <параметр> <нове значення>.
Parameter | Description | Default |
mustSneak | VeinMine only triggers while holding Shift | false |
cooldown | Delay between triggers, in ticks | 20 |
delay | Interval between breaking adjacent blocks, in ticks | 1 |
maxChain | Maximum number of connected blocks from a single source | 100 |
needCorrectTool | Whether the tool must be suitable for the block | true |
searchRadius | Search radius for adjacent blocks | 1 |
permissionRestricted | Restrict VeinMine by permission | false |
mergeItemDrops | All dropped blocks are merged into a single block | false |
autoUpdate | Automatic downloading of new versions | false |
durabilityDecrease | Reduction of tool durability for each broken block | true |
miningSpeedModifier | Increase in block mining time depending on the vein size | 0.0 |
the output of /veinminer settings with the possible parameters
Block groups
Blocks from the same group break together as a single type — for example, copper_ore + deepslate_copper_ore in one group will let you break a group of connected blocks in one click. By default the config is already set up so that all ore types break together when they're connected. A single block can also belong to several groups. If no tool is set for a group, it triggers with any tool. If one is set, only with that one.
Commands for block groups
/veinminer groups create <name> [<block1>] [<block2>] — create a group
/veinminer groups edit <name> add-block <block> — add a block to the group
/veinminer groups edit <name> remove-block <block> — remove a block from the group
/veinminer groups edit <name> add-tool <item> — restrict the group by tool
/veinminer groups edit <name> remove-tool <item> — remove the restriction
creating a new group
Conclusion
VeinMiner takes the monotonous clicking out of mining. The mod doesn't change loot, doesn't touch the balance, and doesn't require special blocks or infrastructure. That's why it suits most players.
It works with more than just ores. If you add wood, stone or soil to the allowed list, everything connected into a single chunk of the same type breaks together.
On the downside, on very large veins (50+ blocks at once) the client lags from the pile of simultaneous drops. mergeItemDrops helps in part: it collects everything into a single stack, but doesn't fully remove the cause.
Installation
A typical installation takes about 5 minutes. The flow is the same; only the loader and the matching build differ.
Installing Mods in Minecraft: A Guide for Forge, FabricLearn how to install mods in Minecraft with this step-by-step guide for Forge and Fabric. Improve your game with new features, tools, and mechanics!Open the install guide










