ModTorch
VeinMiner

VeinMiner

Datapack · by Miraculixx · 106.9M downloads · Minecraft 26.3

Download ↓

What does VeinMiner do?

Break one block of an ore vein and VeinMiner breaks every connected block of the same type for you. Instead of chipping away at a big iron or coal deposit block by block, one swing clears it – turning the most repetitive part of survival into something quick and satisfying. It is highly configurable and runs entirely on the server side, so every client can use it, even on a server people join with an unmodded game. Addons even work across different loaders and versions.

Two editions

Datapack (1.x)Mod / plugin (2.x)
InstallDrop into the world's datapacks folderFabric, Quilt, NeoForge mod or Paper, Purpur, Folia plugin
Works onAny server or world, vanilla and snapshotsOnly the platforms above
SetupChat menu via a function commandFull /veinminer command set

Both come preconfigured for ores and pickaxes. Mod builds need Fabric API and Fabric Language Kotlin on Fabric, or KotlinLangForge on NeoForge. The plugin build is listed separately as VeinMiner for servers.

Commands in 2.x

CommandPermissionPurpose
/veinminer blocksveinminer.blocksBlocks any tool can vein-mine
/veinminer groupsveinminer.groupsGroups of blocks and tools with their own rules
/veinminer toggleveinminer.toggleTurns VeinMiner on or off for the whole server
/veinminer settingsveinminer.settingsCooldown, chain size and other options
/veinminer presetsveinminer.groupsApplies ready-made groups and settings

Operators have every permission automatically. To hand out individual permissions use LuckPerms – not yet supported on NeoForge.

Settings and defaults (2.x)

Type /veinminer settings <name> <value> to change one, or leave out the value to see what it is now.

SettingDefaultEffect
mustSneakfalseVein-mining only while crouching
cooldown20 ticksWait before a player can vein-mine again
delay1 tickPause between each automatic break
maxChain100Most blocks one break can trigger
needCorrectTooltrueBlocks that need a tool must be mined with it
searchRadius1 (max 5)How far around each block to look for more
permissionRestrictedfalseOnly players with veinminer.use may vein-mine
mergeItemDropsfalseCollect all drops at the first block
autoUpdatetrueChecks for and downloads new versions
durabilityDecreasetrueEach extra block costs durability
miningSpeedModifier0.0Bigger veins take longer to break
hungerPerBlock0.0Saturation drained per block (vanilla breaking uses 0.005)

Block groups

A group bundles several blocks that should be treated as one vein, and can restrict which tools work on them. A block may belong to several groups.

  • Create one with /veinminer groups create <name> [blocks…].
  • Add or remove blocks with /veinminer groups edit <name> add-block <block> and remove-block.
  • Limit tools with add-tool <item> and remove-tool. A group with no tools accepts any tool. If a block sits in several groups, the tools of all of them are combined – but one tool-limited group is enough to restrict it, so a block in an "any tool" group and an "axes only" group can only be vein-mined with axes.

For a tree-felling group called Trees, you would create it, add the block tag #minecraft:logs, then add the item tag #minecraft:axes as its tool. Tags work in every block and item field; find a block's ID and tags on the F3 screen under "Targeted Block", or check the wiki. You can also edit veinminer/default_groups.json directly – inside config/ for the mod or plugins/ for the plugin.

Overrides (advanced)

Overrides replace a normal setting for certain players or blocks:

  • Client overrides apply to anyone using the hotkey addon – for example require sneaking for everyone except hotkey users via /veinminer settings client override mustSneak false.
  • Group overrides apply when mining a block from a given group – for example keep durability loss on globally but turn it off for a shovel group. If a block is in several groups, the oldest group's override wins.

Priority goes normal setting, then client, then group. Remove one with override unset <setting>.

The datapack version (1.x)

With OP or cheats, run /function veinminer:_config to open a clickable chat menu. When it asks for something like {category:"pickaxe", namespace:"", id:""}, fill in the namespace and ID of the block or item – press F3+H to show IDs in tooltips. Sand, for example, is namespace minecraft and id sand.

Useful addons

  • VeinMiner Hotkey – a client mod that only vein-mines while you hold a key and highlights what will break.
  • VeinMiner Enchantment – limits vein mining to tools carrying a special enchantment.

Good to know

  • Your tool must normally be able to mine the block (in 2.x this can be switched off).
  • VeinMiner itself is lightweight, but breaking abnormally large veins spawns a lot of items, which can lag both client and server.
  • Help and ideas go to the project's Discord. The code is AGPL-3.0, and the author forbids reuploads or forks on Modrinth and CurseForge.

FAQ

Do players need to install VeinMiner?

No. VeinMiner runs on the server or in your world, so any client can join and use it. The optional hotkey addon is the only part that goes on the player's game.

What is the difference between VeinMiner 1.x and 2.x?

Version 1.x is a light datapack that works on vanilla and even snapshots. Version 2.x is a fully configurable mod and plugin for Fabric, Quilt, NeoForge, Paper, Purpur and Folia, with in-game commands.

How do I make VeinMiner work on logs?

In version 2.x create a block group, add the logs tag and limit it to axes with the veinminer groups commands. Both versions come preset for ores and pickaxes.

How do I open the VeinMiner datapack settings?

With OP or cheats enabled, run /function veinminer:_config to open an interactive settings menu in chat.

Gallery

Downloads by version

MinecraftMod versionFile
26.3 1.3.60.0 MB Download
26.2 1.3.50.0 MB Download
26.1.2 1.3.40.0 MB Download
26.1.1 1.3.40.0 MB Download
26.1 1.3.40.0 MB Download
1.21.11 1.3.40.0 MB Download
1.21.10 1.3.40.0 MB Download
1.21.9 1.3.40.0 MB Download
1.21.8 1.3.40.0 MB Download
1.21.7 1.3.40.0 MB Download
1.21.6 1.3.40.0 MB Download
1.21.5 1.3.40.0 MB Download
1.21.4 1.2.40.0 MB Download
1.21.3 1.2.40.0 MB Download
1.21.2 1.2.40.0 MB Download
1.21.1 1.2.40.0 MB Download
1.21 1.2.40.0 MB Download
1.20.4 1.2.10.0 MB Download
1.20.3 1.2.10.0 MB Download
1.20.2 1.2.10.0 MB Download
1.20.1 1.1.00.0 MB Download
1.20 1.1.00.0 MB Download
1.19.4 1.1.00.0 MB Download
1.19.3 1.1.00.0 MB Download
1.19.2 1.1.00.0 MB Download
1.19.1 1.1.00.0 MB Download
1.19 1.1.00.0 MB Download
1.18.2 1.1.00.0 MB Download
1.18.1 1.1.00.0 MB Download
1.18 1.1.00.0 MB Download
1.17.1 1.1.00.0 MB Download
1.17 1.1.00.0 MB Download

How to install this mod

  1. Click “Download” to get the .zip.
  2. Copy it into .minecraft/saves//datapacks.
  3. Or when creating a new world: Data Packs → drag and drop the file.
  4. In a running world type /reload.

💬 Comments

🔗 Works well with

✨ You might also like

📰 Latest articles

Supports
1.17 – 26.3
License
AGPL-3.0-only
Updated