How to make a custom enchantment in minecraft
Emma Newman
Published Mar 27, 2026

How to Make Custom Enchantments in Minecraft! If playback doesn’t begin shortly, try restarting your device. Videos you watch may be added to …
There are other answers below:
/give @p ITEM {display:{Name:'{text”:” NAME “,”italic”:” TRUE OR FALSE “,”color”:” COLOR “,”bold”:” TRUE OR FALSE “}’},Enchantments:[{id:”minecraft: ENCHANTMENT NAME “,lvl: ENCHANTMENT LEVEL s}]} 1 Replace bolded text.
Step one to the structure of this device: Grab a command block (/give @p minecraft:command_block), and place it down. This is your device that you will be inputting your custom commands in. Step two: Grab a lever, or a button, …
The best way to do this would be to create a class that extends Enchantment. The reason why this is, is due to the fact that your enchantment would actually be registered as an enchantment, and since Enchantment is the super class, you would be capable of simply doing the following: Code (Java): // Adding enchantment.
How to Enchant in Minecraft (Enchanting Guide) (1.17) – YouTube.
There is no way to make items display their custom enchantments by default under the item flag in bit 0. This is mostly used for the HideFlags NBT. Any item’s Enchantments[x].id for any index x is a fully customisable string, completely up to the data pack creator. Example, I could give myself an item with: give @s stone_shovel{Enchantments:[{id:”nuke_everything_aROUnd me”,lvl:1s}]}
To create custom enchantments you will first have to create a class that extends Enchantment. Like this: Code:java . … if you want this then you will have to build against CraftBukkit and use the enchantment class of net.minecraft.server, this includes a method (a) that will display the name; here is it’s code: public String a {return …
Moderator Note: This answer appears to be outdated in newer versions of Minecraft. Please reference one of the newer answers if you’re playing the latest version. /give @p ‘custom_item’ 1 0 {display{Name:”Custom Name”},Lore:[“Custom lore”]},ench:[{id:’enchantmentid’,lvl:’enchantmentlvl}]}
Basically with this you can make op enchantments. These are some of the ones I use. OP Sword. give Examplename netherite_sword{Enchantments:[{id:sharpness,lvl:10000},{id:mending,lvl:1},{id:looting,lvl:10},{id:fire_aspect,lvl:10}]} 1. OP Crossbow:
Related Questions
How to display custom enchantments under the item flag by default?
There is no way to make items display their custom enchantments by default under the item flag in bit 0. This is mostly used for the HideFlags NBT. Any item’s Enchantments [x].id for any index x is a fully customisable string, completely up to the data pack creator.
How do I add custom enchantments to an anvil?
You cannot use custom enchantments on enchanted books in an anvil. There is no way to make items display their custom enchantments by default under the item flag in bit 0. This is mostly used for the HideFlags NBT. Any item’s Enchantments [x].id for any index x is a fully customisable string, completely up to the data pack creator.
How to extend enchantment in Minecraft?
The best way to do this would be to create a class that extends Enchantment. The reason why this is, is due to the fact that your enchantment would actually be registered as an enchantment, and since Enchantment is the super class, you would be capable of simply doing the following: ItemStack item = new ItemStack ( Material.
What is the best way to write custom enchantments?
Most custom enchantment plugins out there takes 2nd approach. I write many custom enchants but I do it through custom enchantment plugin’s API. Plugin like TokenEnchant (which has framework for both 1 and 2 approaches) allows me to focus on implementing the custom enchantments rather than worrying about the framework.