
Adds the Vein Miner enchantment. Put it on a pickaxe and every ore you mine takes the whole vein with it.


How it works
- Mine one block of ore and the rest of the connected vein breaks too (up to 64 extra blocks, diagonals included).
- Every block breaks exactly like when you mine it by hand: Fortune, Silk Touch, durability, XP and protections all apply. Nothing is skipped or bypassed.
- It is always on: no need to sneak or press a key. It is ignored in Creative mode.
- Tool protection: the vein stops before your pickaxe breaks (two uses left), so you never lose it by accident.
- Veins are detected by block or by ore tag, so normal and deepslate ores join into a single vein.
- Works with the
#c:orestag, so modded ores are supported automatically.

How to get it
- Enchanting table and villager trades (librarians), as a regular non-treasure enchantment. Creative tab: VeinMinerZ.
- Max level 1. Pickaxes only.

Compatibility
- Works with other mods' ores and pairs perfectly with MiningEnchantsZ (Telekinesis and Smelting also work on every block of the vein).
Configuration (veinminerz-common.toml)
maxBlocks– max extra blocks per vein (default 64).includeDiagonals– count diagonal neighbours (default true).protectTool– stop before the tool breaks (default true).extraBlocks– extra blocks/tags that count as ore.blacklist– blocks/tags that never vein-mine.
Installation: drop the .jar into mods/ (server and client). Requires NeoForge 26.2 and Java 25.