promotional bannermobile promotional banner

Vein Miner Enchantment

A rare, modpack-friendly vein-mining enchantment. Break one ore and the whole same-family vein comes out at once. Server-authoritative, chunk-safe, tag-driven — vanilla, deepslate & modded ores. No dupes, true vanilla drops. NeoForge 1.21.1.

Vein Miner

A rare, modpack-friendly vein-mining enchantment for Minecraft 1.21.1 (NeoForge).

Break one ore with a pickaxe enchanted with Vein Miner and the entire connected vein of the same ore family comes out in a single, server-authoritative, chunk-safe operation. Built for big multiplayer servers and made to drop straight into a modpack. No client mod required.


✨ Highlights

  • Tag-driven ore detection — works with vanilla, deepslate, Create Zinc and future modded ores via #minecraft:*_ores and #c:ores/<material> tags. No hardcoded block lists.
  • Same-family only — Iron veins into Iron, never into Copper, Stone, Andesite or Zinc.
  • Chunk-safe & lightweight — iterative breadth-first flood fill, primitive long queue, hard caps with early exits, never loads or scans unloaded chunks.
  • True vanilla harvesting — drops, experience, advancements, statistics, Silk Touch, Fortune and modded/global loot modifiers all go through vanilla logic. No manual drops, no dupes.
  • Server-authoritative — all gameplay runs on the server.

⛏️ How to get it

Enchanting table, enchanted books, master librarian trades, and structure loot — Strongholds, Mineshafts, Ancient Cities, Woodland Mansions and Trial Chambers. Rarity is similar to Mending.

Grab it for testing:

/enchant @p veinminer:vein_miner 1

or an enchanted book:

/give @p enchanted_book[stored_enchantments={"veinminer:vein_miner":1}]

⚙️ Configuration

A documented config is generated at config/veinminer-common.toml:

Key Default Meaning
enableVeinMiner true Master switch
requireSneakToActivate true Only veins while sneaking
maxBlocksPerVein 64 Hard cap per vein
scanRadius 8 Max distance from origin
durabilityMultiplier 1.0 Tool damage per ore
allowAncientDebris false Opt-in Ancient Debris veining
villagerTradeChance 0.05 Per-librarian book chance
blockedBlocks / blockedTags [] Never vein-mined

📦 Modpack & datapack support

Register custom ore families in data/<namespace>/ore_families/ with a simple JSON of blocks and tags — definitions take priority over the tag heuristics, so any modded ore set (e.g. Create Zinc) can be grouped into its own family.

🔧 Compatibility

  • Minecraft: 1.21.1
  • Loader: NeoForge 21.1.233+
  • Designed for: Create, Terralith, Ecologics, Environmental, BF Biomes, Dungeons & Taverns, Naturalist, Farmer's Delight.
  • Dedicated-server and multiplayer safe — all gameplay logic runs on the server.

📜 License

MIT. Free to use in any modpack.


Created by slate.

The Vein Miner Enchantment Team

profile avatar
  • 2
    Projects
  • 18
    Downloads

More from slate023

  • Tree Capitator Enchantment project image

    Tree Capitator Enchantment

    • 12
    • Mods

    An intelligent, modpack-friendly tree-felling enchantment. Break one log and the whole real tree falls — while your builds and Create contraptions stay untouched. Server-side, chunk-safe, tag-based, works with vanilla & modded trees. NeoForge 1.21.1.

    • 12
    • June 25, 2026
    • Mods
    • +1
  • Tree Capitator Enchantment project image

    Tree Capitator Enchantment

    • 12
    • Mods

    An intelligent, modpack-friendly tree-felling enchantment. Break one log and the whole real tree falls — while your builds and Create contraptions stay untouched. Server-side, chunk-safe, tag-based, works with vanilla & modded trees. NeoForge 1.21.1.

    • 12
    • June 25, 2026
    • Mods
    • +1