DragNDropedET

Quick rating

Community listing page, reviews here may not be monitored by the author.

DragNDropedET

No reviews yet

Allows you to easily add and remove enchants to your tools, weapons and items. It supports mods also so do not worry!

Mod Loaders
Minecraft

About

Description

DragNDropedET

GitHub Repository

DragNDropedET lets you apply, extract, and combine enchantments directly from your inventory.

Drop an enchanted book onto your gear to apply it, or use a normal book to pull an enchantment back off. No anvil or extra workstation required.

Enchanting costs XP by default, and extraction refunds some of it. Server owners can adjust XP costs, enchantment limits, compatibility, and other settings through in-game commands.

⚠️ Known issue: enchantments may be lost

Enchantment loss can occur when combining enchanted books.

When applying a book containing multiple enchantments to an item, enchantments that cannot be applied may also disappear instead of remaining on the book.

Until this is fixed, avoid combining valuable enchanted books or applying multi-enchantment books unless every enchantment can be applied to the target item. Back up your world before experimenting.

A fix is planned for a future update.

Inventory controls

Drag operation Result
Enchanted book → item Applies every valid enchantment from the book.
Plain book → enchanted item Extracts the alphabetically first enchantment onto the book.
Plain book → enchanted book Extracts the alphabetically first enchantment from that book.
Ctrl + plain book → enchanted item/book Extracts all enchantments when Ctrl Remove is enabled.
Enchanted book → enchanted book Combines the books and increases equal matching levels by one.

Examples

Sharpness X book → Diamond Sword
Result: Diamond Sword with Sharpness X

Sharpness X + Looting III + Unbreaking III book → Diamond Sword
Result: every allowed enchantment is applied in one operation

Plain book → Sword with Mending, Sharpness and Unbreaking
Result: Mending is extracted first because removal is alphabetical

Sharpness V book → Sharpness V book
Result: Sharpness VI book

Commands

Both /DragNDropedET and /dragndropedet work.

Replace <state> with enabled or disabled. You can also use on, off, true, or false. Replace <amount> and <level> with a number. Do not type the angle brackets.

Configuration-changing commands require operator/game-master permission. Settings are saved in config/dragndropedet.json and survive restarts.

Help and status

Command What it does Permission
/DragNDropedET Shows current settings and command help. Everyone
/DragNDropedET help Shows current settings and command help. Everyone

XP settings

Command What it does Permission
/DragNDropedET xp take Shows the adding and combining XP multiplier. Operator
/DragNDropedET xp take <amount> Changes the adding and combining XP multiplier. Operator
/DragNDropedET xp give Shows the extraction refund multiplier. Operator
/DragNDropedET xp give <amount> Changes the extraction refund multiplier. Operator

The default take multiplier is 1.0. Applying enchantment levels 5 + 3 + 3 therefore costs 11 XP levels.

The default give multiplier is 0.5. Extracting a level 10 enchantment therefore refunds 5 XP levels.

Enchantment rules

Command What it does Permission
/DragNDropedET enchant limit Shows the configured enchantment limit. Operator
/DragNDropedET enchant limit <level> Sets the limit from 1 to 255. Default: 30. Operator
/DragNDropedET allow higher_lvls <state> Allows levels above normal enchantment maximums, subject to the active limit. Operator
/DragNDropedET allow more_compatibility <state> Allows normally exclusive enchantments together. Item-type restrictions still apply. Operator
/DragNDropedET allow op_compatibility <state> Allows enchantments on normally unsupported item types. Operator
/DragNDropedET allow no_cap <state> Ignores the configured limit. The current build still has a technical ceiling of 255. Operator

Removal, XP bypass and global controls

Command What it does Permission
/DragNDropedET allow ctrl_remove <state> Enables or disables extracting all enchantments with Ctrl. Operator
/DragNDropedET allow no_xp <state> Disables or restores the mod’s XP costs and refunds. Operator
/DragNDropedET god_mode <state> Toggles No XP, OP Compatibility, and No Cap together. Operator
/DragNDropedET toggle <state> Enables or disables drag-and-drop mechanics. Commands remain available. Operator

God Mode does not change Ctrl Remove, Higher Levels, More Compatibility, modded-enchantment support, automatic checking, or the main mod toggle.

Modded enchantment support

Command What it does Permission
/DragNDropedET allow mods <state> Enables or disables modded-enchantment support and scanning. Enabling it starts a scan. Operator
/DragNDropedET check <state> Enables or disables automatic mod-environment checking. Operator
/DragNDropedET check mods Runs a fresh scan of installed mods and enchantments. Operator
/DragNDropedET check mods_list Shows the most recent successful scan results without scanning again. Everyone

Default configuration

Setting Default
Main mod Enabled
Adding/combining XP multiplier 1.0
Extraction refund multiplier 0.5
Higher levels Enabled
Enchantment limit 30
More compatibility Enabled
Ctrl Remove Enabled
No XP Disabled
OP Compatibility Disabled
No Cap Disabled
Modded enchantments Enabled
Automatic mod checking Enabled

How XP works

DragNDropedET uses Minecraft XP levels, not individual XP points, for its main costs and refunds.

Applying enchantments

By default, the cost is the sum of the enchantment levels being applied.

For example, applying a book containing:

  • Sharpness V = 5
  • Looting III = 3
  • Unbreaking III = 3
  • Mending I = 1

Costs 5 + 3 + 3 + 1 = 12 XP levels.

Higher-level enchantments use their actual level. Sharpness X costs 10 levels, while Sharpness XXX costs 30.

Only enchantments actually being added are charged. If you cannot afford the operation, nothing changes: you keep the book, item, and XP.

Extracting enchantments

Extraction refunds half the combined levels being removed.

  • Extracting Sharpness X refunds 5 XP levels.
  • Extracting Sharpness X and Unbreaking V together refunds 7.5 levels’ worth of XP.

Whole levels are refunded directly. Any fractional remainder is converted into XP-bar progress, subject to whole-point rounding.

The same calculation applies when extracting from enchanted books or using Ctrl to extract everything at once.

Combining enchanted books

Combining books costs XP based on the resulting levels of enchantments that change.

For example:

Sharpness V + Sharpness V → Sharpness VI

This costs 6 XP levels by default. If several enchantments change, their resulting levels are added together.

Adjusting the XP system

Server operators can change the cost and refund multipliers:

Command Effect
/DragNDropedET xp take 1 Default cost: one XP level per enchantment level being added.
/DragNDropedET xp take 2 Doubles adding and combining costs.
/DragNDropedET xp give 0.5 Default refund: half the removed enchantment levels.
/DragNDropedET xp give 0 Disables extraction refunds.
/DragNDropedET allow no_xp enabled Makes applying and combining free, and disables extraction refunds.
/DragNDropedET allow no_xp disabled Restores costs and refunds using the configured multipliers.

Adding and combining costs are rounded up to whole XP levels when needed. Settings are saved and survive restarts.

Requirements

  • Minecraft Java Edition 1.21.11
  • Fabric Loader 0.19.3 or newer
  • Fabric API
  • Java 21
  • The mod must be installed on both the client and server for multiplayer use

Source code and license

The source code is available on GitHub.

DragNDropedET is open-source software licensed under the Apache License 2.0.

If you redistribute or modify the code or assets, you must preserve the license, copyright, and attribution notices. Modified files must clearly state that they were changed. See the project’s NOTICE for attribution.

The official, unmodified DragNDropedET JAR may be included in modpacks.