HomeJavaDatapacksEnchantment Splitting
Enchantment Splitting

Enchantment Splitting

Hit your enchanted items with a mace to move/split their enchantments!

How to use (in-game)

  1. Drop an enchanted item and an unenchanted item onto an enchanting table
  2. Hit the items with a mace
  3. That's it! The enchantments will be evenly distributed across both items.

How it works

An interaction entity is spawned whenever an enchanted and unenchanted item are on top of an enchanting table at the same time. The instant it is hit, the game checks to see if a nearby player is holding a mace, and if so, it begins the enchantment splitting process.

Enchantment Splitting Process

  1. Identify each item as item 0 and item 1, and tag them accordingly. This is to simplify identifying them in future commands.
  2. Summon an armor stand and clone item 0 to its mainhand. This armor stand is used as an enchantment list, and will be destroyed as soon as the splitting process is over.
  3. Remove all enchantments from item 0.
  4. Initiate a scoreboard toggle that decides which item receives the next enchantment. This always begins with item 1.
  5. Begin distributing.
  6. After distribution is complete, kill the armor stand and interaction entity, and remove tags from the items involved.

Distribution

All of this happens within a single game tick.

Quick Answers

What happens if I "split" an item with only one enchantment?
The enchantment is moved from item 0 to item 1.

Can I split enchantments across different items (e.g. splitting multiple sword enchantments across a Diamond Sword and Netherite Sword)?
Yes.

Can I split enchantments onto items that can't have certain enchantments (e.g. splitting Infinity onto a Crossbow)?
Yes.

Can I split enchantments onto items that can't normally be enchanted (e.g. splitting Knockback onto a Stick)? Yes.

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more