October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Get Level 255 Enchants in Minecraft

Get a Sharpness 255 Diamond Sword in Java Edition with the version-correct /give command. Bedrock uses a different documented syntax.
WorldMinecraft Length2 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Minecraft: Java Edition 1.21.5 or later, use this command to give yourself a Diamond Sword with Sharpness 255:

/give @s minecraft:diamond_sword[enchantments={sharpness:255}]

Commands must be enabled in your world, or you must have permission to use them on the server. The syntax is for Java Edition; Bedrock uses a different /give format.

Give yourself a level 255 enchantment

  1. Open chat in a Java Edition world where you can use commands.
  2. Enter /give @s minecraft:diamond_sword[enchantments={sharpness:255}] and run it. The command targets you with @s; replace it with another valid target selector or player name to give the sword to someone else.

Mojang’s Java 1.20.5 release notes document the enchantments component level as an integer from 0 through 255: Minecraft Java Edition 1.20.5. That is the component’s documented storage range, not a guarantee that every enchantment’s effects scale linearly or remain balanced at level 255.

Use the command format for your Java version

Java item command syntax changed in 1.20.5, and the enchantment component changed again in 1.21.5. Match the command to your game version:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Minecraft | Java & Bedrock Deluxe Collection | Windows Digital Code
  • DELUXE COLLECTION — Includes Minecraft: Java & Bedrock Edition, three Bedrock add-ons, three exclusive Character Creator items, and 700 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).
Java version Enchantment component form Example
Before 1.20.5 Older item NBT syntax; not the component syntax shown here See the version-specific command guidance in Mojang’s 1.20.5 release notes.
1.20.5 through 1.21.4 enchantments={levels:{sharpness:2}} /give @s minecraft:diamond_sword[enchantments={levels:{sharpness:255}}]
1.21.5 or later enchantments={sharpness:2} /give @s minecraft:diamond_sword[enchantments={sharpness:255}]

Mojang introduced the component format in Java 1.20.5; the simplified enchantment form is documented in the Java 1.21.5 release notes. The older 1.20.5–1.21.4 form is also shown in Mojang’s 24w09a snapshot notes. Replace the level in the example with the level you want, up to the documented component limit.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Can you use this command in Bedrock Edition?

No. Do not paste the Java command into Bedrock and expect it to work. Microsoft documents Bedrock’s `/give` syntax as /give <player> <itemName> [amount] [data] [components], with examples such as JSON components for block-breaking behavior; its official reference does not document a Java-style arbitrary enchantment-level map. See Microsoft’s Bedrock /give command reference. This limitation is about the documented command reference, not a claim about add-ons, external editors, or server modifications.

Quick Recap

Bestseller No. 4
Minecraft
Minecraft
Skins! We have biome settlers, city folk, town folk, and more!; The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
$6.99
Bestseller No. 5
Minecraft - Bedrock Edition PS4
Minecraft - Bedrock Edition PS4
Play and share with friends on console, mobile and Windows 10; discover community creations in the new in-game store
$42.98
Best Value
Minecraft - Bedrock Edition PS4
  • Play and share with friends on console, mobile and Windows 10
  • discover community creations in the new in-game store
  • access new mini games and game modes through servers
Rank #4
Minecraft
  • Skins! We have biome settlers, city folk, town folk, and more!
  • The Nether and all its inhabitants. Fight Ghasts and make friends with Pigmen
  • Cross platform play for up to five players between Pocket Edition and Windows 10
  • Revamped touch controls, controller support, and a controller mapping screen
  • Enhanced Weather effects! Accumulating snow and more
Rank #3
Minecraft | Standard Edition | XBOX Digital Code
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that is unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world full of surprises.
  • SURVIVAL ADVENTURES — Face mysterious foes, travel across varied landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play solo or join friends in local split-screen and cross-platform play across console, mobile, and PC. Online multiplayer supports up to 8 players.
  • COMMUNITY PLAY — Connect with players on community servers, or subscribe to Realms Plus (sold separately) to play with up to 10 friends on a private server.
Rank #2
Minecraft | Java & Bedrock Ultimate Collection | Windows Digital Code
  • ULTIMATE COLLECTION — Includes Minecraft: Java & Bedrock Edition, five Bedrock add-ons, five exclusive Character Creator items, and 1000 Minecoins.
  • CREATE YOUR WORLD — Build whatever you imagine in an infinite world that’s unique in every playthrough.
  • EXPLORE AND CRAFT — Discover biomes, resources, and mobs, then craft your way through a sandbox world filled with surprises.
  • SURVIVE THE ADVENTURE — Face mysterious foes, travel across exciting landscapes, and venture into perilous dimensions.
  • PLAY TOGETHER — Play cross-platform with friends in Bedrock Edition on console, mobile, and PC, or join community servers in Java Edition on PC, Mac, and Linux. Online console multiplayer requires a platform-specific subscription (sold separately).

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Turn On Vibrant Visuals in MinecraftMinecraftBlog3min
  2. Best Multiplayer Games for Low-End PCsBlog4min
  3. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.