Anvil Splitting
MythicEnchantsAnvilSplit
A physical anvil that falls and lands on a dropped item strips that item's MythicEnchants enchants off and drops them nearby as an enchanted book. The anvil itself lands and behaves exactly like vanilla — placement, damage, downgrade chance all proceed as normal. Splitting is a side effect of the impact, not a replacement for it.
Features
- No GUI, no command. Drop an enchanted item, drop an anvil on it (sand/gravel-supported and knocked loose, dispenser-fired, or any other way to get a
FallingBlockanvil moving), and the split happens on landing. - Vanilla physics untouched. The anvil places, takes fall damage, and rolls its usual damage/downgrade chance exactly as it would with this addon absent.
- Real enchanted books. The resulting book carries genuine
EnchantmentStorageMetastored enchants — usable on any anvil, stackable with other books of the same enchants, and rendered correctly by MythicEnchantsPacketLore if installed. - Configurable scope. Choose whether curses are eligible to be split off, whether plain vanilla enchants split too (MythicEnchants-registered enchants always do), a radius around the impact to search for items, and whether one impact/cast peels off a single enchant at a time (in tooltip order) or every eligible enchant at once (optionally capped).
- Also reachable without an anvil. The same split logic is exposed as a MythicMobs mechanic, so it can run from a skill, NPC interaction, or quest reward.
Install
MythicEnchantsAnvilSplit.jar -> plugins/MythicEnchants/addons/
Restart. Any anvil that lands on a dropped enchanted item now splits it automatically.
Configuration (config.yml)
| Key | Default | What it does |
|---|---|---|
enabled |
true |
Master switch. |
radius |
1.0 |
Search radius (blocks) around the anvil's landing block for dropped items. |
include-vanilla-enchants |
false |
false splits only MythicEnchants-registered enchants; true also pulls plain vanilla enchants into the book. |
split-curses |
true |
Whether cursed MythicEnchants enchants are eligible to be split off. false leaves curses on the original item. |
skip-books |
true |
Never split an item that is itself an enchanted book. |
split-mode |
all-at-once |
one-at-a-time pulls exactly one enchant per split — whichever currently sits first in tooltip order (ascending TooltipOrder, unordered enchants last) — so repeated impacts/casts peel enchants off one by one. all-at-once pulls every eligible enchant in a single pass, subject to max-enchants-per-split. |
max-enchants-per-split |
0 |
Cap on enchants pulled into one resulting book. Only consulted when split-mode: all-at-once. 0 = no limit. |
Mechanic
Skills:
- splititem{slot=hand} @self ~onInteract
splititem (alias anvilsplit) performs the same split on the target's held item, without needing a physical anvil. slot/s accepts hand (default) or offhand.