Enchantments

Its vanilla enchantments, idk if it works with custom enchantment plugins tbh, never used them.

/goop nbt enchantment <player> <slot> <enchantment> [±]<value>[%] [objective]

This edits the NBT data of the item(s) in the specified inventory slots.

Also stores the final total value of the edited enchantment as the score of <player> in the [objective] objective.

Args Breakdown (What everything does)

<Player>

  • Player whose inventory items' NBT will be edited.

  • Supports a few vanilla selectors.

  • [1.6.5] May be an Entity (dropped item) UUID

<Slot>

  • The slot in the player's inventory in which items will be enchanted. To read on slots see Inventory Slots.

  • Examples: mainhand, offhand, chest, feet, any, 0-8, ec*

<Enchantment>

  • Enchantment to perform operations on.

  • May be the all keyword to target all the enchantments.

[±]<value>[%]

  • The operation to apply to the enchantment level of the item. See Plus Minus Percent page for full explanation.

[Objective]

  • The name of the scoreboard objective that will store (ten times) the final enchantment level.

Tips

  • You can use +0 as the value to read the enchantment level of an item


  • Enchantments have extreme values of -32768 and 32767

    • I've memorized this number for some reason lol, didnt have to look it up


  • Setting enchantment level to 0 will remove that enchantment from the item.

    • You can still enchant to negative values though.


  • You can use the all keyword to target all the enchantments.

    • Usually you'd use this to disenchant an item, by setting the value to 0.

Simple Examples:

/goop nbt enchantment Workof mainhand sharpness +100%

Doubles the level of Workof's mainhand sharpness enchantment.


/goop nbt enchantment SalemOrpheus feet frost_walker 0

Removes the frost walker enchantment from SalemOrpheus' boots.


/goop nbt cModelData Edle_Blue * all 0

Completely disenchants all items in Edle_Blue's inventory