What is the max enchantment level using commands?

What is the max enchantment level using commands? - Crop joiner working with wooden block using sharp tool

What is the highest level of enchantment that is possible to obtain?

Note that I am not talking about the maximum effective enchantment level, I am talking about the maximum number that can be displayed (or attempted to display) on the tooltip, regardless of whether said enchantment would function at that level.

If you are looking for the maximum effective enchantment level, please see this question.



Best Answer

Maximum displayable enchantment level

This answer shows the maximum enchantment level that can be displayed on the item tooltip. See this answer for the maximum effective enchantment levels.

1.17+ Update

From the Minecraft Wiki:

lvl: The level of the enchantment, where 1 is level 1. Values are clamped between 0 and 255 when reading.

This means that the maximum enchantment level is 255. Affix an s to the end of the number to mark it as a Short tag, to take up the least memory.

1.13+ Update

From the Minecraft Wiki:

lvl: The level of the enchantment, where 1 is level 1. Saved as short when created by enchanting tables or loot tables, but read as an int and supports full int range.

In layman's terms, the Survival means like loot tables, anvils, and enchanting tables save the number as a Short, but when they are actually applied to items, they are read as an Integer.

Therefore, you don't need to stick to the Short data type just because that is what the enchantment tables use. You are allowed to use the Integer data type because that is how the enchantment levels are read.

The maximum integer is 2,147,483,647.

/give @s netherite_sword{Enchantments:[{id:"minecraft:sharpness",lvl:2147483647}]}

Side notes...

  • Some users are suggesting that higher enchantment levels are possible, like 2,177,548,418,058. These numbers are from Phoenix SC's video, where the title is "Duplicating OP Enchantments in Minecraft". This shows that the big number was only obtained by stacking enchantments, and is not the maximum level of a single enchantment. You can do what they did and stack your enchantments to obtain higher levels.
  • Do note that attempting to exceed the maximum enchantment level using commands will not return an error, but note that the item you receive will have the enchantment level 0. This is because the invalid numbers become strings when inputted incorrectly, and because Minecraft is looking for an integer in the level, it does not register the number because it is a string!



Pictures about "What is the max enchantment level using commands?"

What is the max enchantment level using commands? - A Woman Using a Spirit Level
What is the max enchantment level using commands? - Crop hacker silhouette typing on computer keyboard while hacking system
What is the max enchantment level using commands? - From above of crop anonymous male hacker typing on netbook with data on screen while sitting at desk



How do you max enchant items with commands?

Steps to Reproduce:
  • Run the command +/give @p diamond_sword{Enchantments:[ ...
  • Hover over the item, you will see that the enchantment level displays as level 255.
  • If you summon a mob with high health such as the command /summon wither , you will not be able to instantly kill it.


  • How do you get a level 255 Enchantment?

    The standard syntax in Minecraft to create a 1000+ Sharpness weapon is "/give @p <item>{Enchantments:[{id:sharpness,lvl:<number>}]}" placed in the game's chat window. This command can also be applied to other items that can receive a Sharpness enchantment, such as an axe.



    How to get multiple *OP* enchants on an item!




    More answers regarding what is the max enchantment level using commands?

    Answer 2

    Well it is basically (not?) infinite! You can make a weapon so powerful that it could kill it instantly (if you have sharpness)! Here is the command for an example /give @a minecraft:diamond_sword 1 0 {ench:[{id:16s,lvl:1000}]}

    Answer 3

    2177548418058

    Try:

    /give @s netherite_sword{Enchantments:[{id:"sharpness",lvl:2177548418058}]}
    

    You can also add multiple enchantments:

    /give @s netherite_sword{Enchantments:[{id:"sharpness",lvl:2177548418058},{id:knockback,lvl:2177548418058}]}
    

    All you need to do is put a comma and put another enchantment, as shown above.

    Answer 4

    The maximum enchantment level is actually 2177548418058. Try the following command:

    /give @p diamond_sword{Enchantments:[{id:"sharpness",lvl:2147483647}]}
    

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Ono Kosuki, Musa Ouizo, Anete Lusina, Sora Shimazaki