ModTorch
VeinMiner Enchantment

VeinMiner Enchantment

Datapack · by Miraculixx · 18.5M downloads · Minecraft 26.3

Download ↓

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 the veinminer.settings permission, or edit config/Veinminer/enchantmentSettings.json. Plugin servers keep the file under plugins/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

SettingDefaultWhat it controls
maxLevel1Highest level the enchantment can reach
weight1Rarity – larger numbers make it show up more often
minCost15Lowest enchanting-table level at which it can appear
minCostPerLevel0Extra minimum cost for each level beyond I
maxCost65Table level above which it no longer appears
maxCostPerLevel0Extra maximum cost for each level beyond I
anvilCost7Levels charged when combining in an anvil, added to other costs
supportedItems#minecraft:enchantable/miningThe item or item tag allowed to receive it
inEnchantingTabletrueWhether the table can offer it
tradeabletrueWhether villagers can sell it
lootabletrueWhether it shows up in random loot
treasurefalseTreasure 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

MinecraftMod versionFile
26.3 1.3.60.0 MB Download
26.2 1.3.40.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.60.0 MB Download
1.21.3 1.2.60.0 MB Download
1.21.2 1.2.60.0 MB Download
1.21.1 1.2.60.0 MB Download
1.21 1.2.60.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

Supports
1.21 – 26.3
License
LGPL-3.0-only
Updated