VeinMiner Enchantment
Datapack · by Miraculixx · 18.5M downloads · Minecraft 26.3
Earn your vein mining
Plain VeinMiner lets every player clear a whole ore vein at once. That is great for relaxed worlds but can feel too generous on a survival server. This addon by Miraculixx changes the rule: while it is installed, vein mining only works with a tool that carries the new Veinmine enchantment. All of VeinMiner's usual block rules and settings still apply on top, so the enchantment unlocks the ability but does not bypass your configuration.
Requirements
- VeinMiner itself must be installed – without it this addon has nothing to hook into. Use the edition that matches your setup: the datapack, the mod for Fabric, Quilt or NeoForge, or the server plugin for Paper or Folia.
- Minecraft 1.21 or newer, because it relies on the data-driven enchantment system added in 1.21.
- It runs on the server side or in the world; players do not need to install anything.
- Licence – LGPL-3.0.
Changing the settings
How you edit the enchantment depends on the edition:
- Mod or plugin (Fabric, Quilt, NeoForge, Paper, Folia) – run
/veinminer enchant <setting> [<new-value>], which needs theveinminer.settingspermission, or editconfig/Veinminer/enchantmentSettings.json. Plugin servers keep the file underplugins/Veinminer/instead. Changes take effect once the server restarts or you rejoin the world. - Datapack – open the zip and edit
data/veinminer-enchantment/enchantment/veinminer.json.
Available settings and defaults
| Setting | Default | What it controls |
|---|---|---|
maxLevel | 1 | Highest level the enchantment can reach |
weight | 1 | Rarity – larger numbers make it show up more often |
minCost | 15 | Lowest enchanting-table level at which it can appear |
minCostPerLevel | 0 | Extra minimum cost for each level beyond I |
maxCost | 65 | Table level above which it no longer appears |
maxCostPerLevel | 0 | Extra maximum cost for each level beyond I |
anvilCost | 7 | Levels charged when combining in an anvil, added to other costs |
supportedItems | #minecraft:enchantable/mining | The item or item tag allowed to receive it |
inEnchantingTable | true | Whether the table can offer it |
tradeable | true | Whether villagers can sell it |
lootable | true | Whether it shows up in random loot |
treasure | false | Treasure status, which doubles its trade price |
So out of the box it is a single-level enchantment for mining tools, available from the table between cost 15 and 65, from villagers and from loot, and not treated as treasure.
Combining it with VeinMiner's level rules
VeinMiner has its own minEnchantLevel option, and it can also be set per group or as a client override. It decides the minimum enchantment level needed to vein mine. Raise maxLevel here and set minEnchantLevel there, and you can, for example, demand Veinmine II or higher before ores can be vein-mined.
Renaming the enchantment
The display name comes from the translation key enchantment.veinminer-enchantment.veinminer, which defaults to "Veinmine". A resource pack can override that key to give it a different name or translate it for your server's language.
Good with
The client-side VeinMiner Hotkey addon still works alongside this one, so players can choose exactly when an enchanted pickaxe vein-mines.
FAQ
Does VeinMiner Enchantment work on its own?
No. It is an addon and needs VeinMiner installed as well. On its own it does nothing.
How do I get the Veinmine enchantment?
By default it can appear in the enchanting table, in villager trades and in random loot, on any tool in the mining enchantable tag.
Can I change how rare the enchantment is?
Yes. On the mod or plugin use /veinminer enchant or edit enchantmentSettings.json. For the datapack, edit the enchantment JSON file inside the zip.
Do players need to install anything?
No. The addon belongs on the server or in the world. Modrinth lists it as optional on the client.
Gallery



Downloads by version
| Minecraft | Mod version | File | |
|---|---|---|---|
| 26.3 | 1.3.6 | 0.0 MB | Download |
| 26.2 | 1.3.4 | 0.0 MB | Download |
| 26.1.2 | 1.3.4 | 0.0 MB | Download |
| 26.1.1 | 1.3.4 | 0.0 MB | Download |
| 26.1 | 1.3.4 | 0.0 MB | Download |
| 1.21.11 | 1.3.4 | 0.0 MB | Download |
| 1.21.10 | 1.3.4 | 0.0 MB | Download |
| 1.21.9 | 1.3.4 | 0.0 MB | Download |
| 1.21.8 | 1.3.4 | 0.0 MB | Download |
| 1.21.7 | 1.3.4 | 0.0 MB | Download |
| 1.21.6 | 1.3.4 | 0.0 MB | Download |
| 1.21.5 | 1.3.4 | 0.0 MB | Download |
| 1.21.4 | 1.2.6 | 0.0 MB | Download |
| 1.21.3 | 1.2.6 | 0.0 MB | Download |
| 1.21.2 | 1.2.6 | 0.0 MB | Download |
| 1.21.1 | 1.2.6 | 0.0 MB | Download |
| 1.21 | 1.2.6 | 0.0 MB | Download |
How to install this mod
- Click “Download” to get the .zip.
- Copy it into
.minecraft/saves/./datapacks - Or when creating a new world: Data Packs → drag and drop the file.
- In a running world type
/reload.
💬 Comments
🔗 Works well with
✨ You might also like
VeinMiner
by Miraculixx
Mine the whole vein on mining a single ore/block. Make the tedious mining experience to something satisfying and fun! FTB Ultimine alternative
Dynamic Lights
by Tschipcraft
Supported entities and items such as torches, lanterns, or enchanted gear emit light! Server-side!
Armor Stand Arms
by Jodek
Armor stands get arms automatically when placed
Dungeons and Taverns
by NovaWostra
A Structure Datapack adding dungeons, taverns and other structures to find while you explore the world.
MysticMons
by iMystxc-dev
This pack includes models and animations for Pokemon currently not available in the base mod. Also enables Legendaries to spawn in the wild
PokéCenter PCs (Cobblemon Addon)
by Instrafe
Adds a PC to every village PokeCenter