
A universal vein miner datapack for Minecraft 1.14–1.21+ that lets you mine entire ore veins and trees by sneaking and breaking. Supports custom blocks, Silk Touch, durability handling, and visual previews in modern versions.
Vein miner for Minecraft 1.14–1.21+. Mine entire ore veins, trees, and supported custom blocks (1.20.2+) by sneaking and breaking a block. Works without mods or client-side installation.
Overview
Versions
| Pack | Minecraft Versions | Custom Blocks | Preview |
|---|---|---|---|
| VeinMiner | 1.20.5 – 1.21+ | Yes | Yes |
| VeinMiner-Legacy-1.20.2+ | 1.20.2 – 1.20.4 | Yes | Yes |
| VeinMiner-Legacy-1.20.0+ | 1.20.0 – 1.20.1 | No | No |
| VeinMiner-Legacy-1.15.x+ | 1.15 – 1.19.4 | No | No |
| VeinMiner-Legacy-1.14.x | 1.14.x | No | No |

Usage
Use the correct tool and sneak while breaking a block to activate vein mining.
Custom Blocks (1.20.2+)
/function uvm:add_ore {b:"block_id"}
/function uvm:add_log {b:"block_id"}
/function uvm:add_dig {b:"block_id"}
/function uvm:remove_ore {b:"block_id"}
other custom blocks requires namespace
/function uvm:add_ore {n:"modid" , b:"block_id"}
Settings
/scoreboard players set sneak_mode uvm.config 0
/scoreboard players set system_disabled uvm.config 1
/function uvm:reset_config
Legacy Info (1.14.x)
Uses the minecraft.custom:minecraft.sneak_time statistic to detect sneaking.