DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

What Is the Command for a Knockback 255 Sword in Minecraft?

Get a Knockback 255 diamond sword in Minecraft Java Edition 1.21.5 or later, and learn what to change for earlier versions or other players.
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 and later, use this command to give yourself a diamond sword with Knockback 255:

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

How to get a Knockback 255 sword

  1. Open chat or the command input for your Java Edition world.
  2. Enter /give @s minecraft:diamond_sword[minecraft:enchantments={"minecraft:knockback":255}] and run it.
  3. To give the sword to a different player, replace @s with that player’s name or an appropriate selector.

To use another sword material, replace diamond_sword with that sword’s item ID.

Which Minecraft versions support this syntax?

This exact command is for Java Edition 1.21.5 and later. Java 1.20.5 replaced the older item NBT command format with structured item components in commands such as /give. Java 1.21.5 then simplified enchantment component notation. The official Java 1.20.5 release notes document the component change; the Java 1.21.5 release notes show the simplified form.

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.
#1 Best Overall
Sale
Mattel Minecraft Diamond Sword Battle Toy
  • ​Bring the world of Minecraft to life with role-play battle toy accessories, like this Diamond Sword!
  • ​The life size battle piece fits a child's hand when fighting skeletons or fending off zombies!
  • ​The design stays true to the unique, pixelated world of Minecraft!
  • ​Fans can capture the thrill of playing out Minecraft scenarios in real life with the iconic sword!
  • ​Makes a great gift for video-game players and fans ages 6 years old and up!

Java 1.20.5 through 1.21.4

Those versions use the earlier component form, with enchantment levels inside a levels map:

/give @s minecraft:diamond_sword[minecraft:enchantments={levels:{"minecraft:knockback":255}}]

Rank #2
4 Pack Kids Game Role-Play Toy Weapon Set-Sword Axe Pickaxe and Shovel,Perfect Toy Weapons Gift for Halloween Christmas and Parties
  • The product is a 4-piece set made of EVA material, safe for gamers of all ages.
  • Perfect for imaginative play, enhance your role-play experience with our toy weapon set including sword, axe, pickaxe and shovel.
  • Realistic toy weapons are suitable for a variety of role play accessories to complete your costume,also great for room decoration and theme parties.
  • These toys are perfect gifts for kids on Halloween,Christmas, birthdays or any occasion,providing endless fun and entertainment.It will make their costumes stand out from the crowd.
  • If you are a game fan like me,you will love receiving these toys as gifts. If you have any questions,please contact us.Customer service will handle it for you within 24 hours.We are very happy to help you!

Java before 1.20.5

The command above will not work with pre-1.20.5 item syntax. The command format changed with the component update, so use instructions written for your exact older Java version rather than pasting the current component command.

Does this command work in Bedrock Edition?

No. The command shown here uses Java Edition item components. Bedrock has a separate /give argument format; consult Microsoft’s Bedrock /give command reference for its syntax. Do not paste the Java command into Bedrock and expect it to work.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Minecraft Sword Costume Accessory, Official Diamond Sword from Minecraft, One Size
  • OFFICIALLY LICENSED MINECRAFT COSTUME PROP – Gear up for adventure with this Minecraft Diamond sword, the perfect accessory for any young warrior or fan of the game
  • GAMEPLAY MINECRAFT SWORD DESIGN – This Minecraft sword toy features the iconic pixelated look straight from the game, making it a must have for costumes and imaginative play
  • ONE TOY SWORD MEASURES: 20.25" L X 10" W – This Minecraft costume sword is lightweight, easy to wield, and great for completing any Minecraft outfit
  • DURABLE & SAFE FOR KIDS – Made from sturdy material, this Minecraft toy sword is designed for safe roleplaying, Halloween dress-up
  • PERFECT FOR HALLOWEEN & GAMING EVENTS – Whether for cosplay, trick-or-treating, or collecting Minecraft swords for kids, this enchanted sword is the ultimate costume accessory - spot cleaning recommended.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why is Knockback set to 255?

Java Edition’s 1.20.5 release notes specify enchantment component levels as integers from 0 to 255. That makes 255 a documented component value, even though it is far above the levels normally obtained through ordinary gameplay. The official Java 1.21 notes describe the enchantment system and Knockback’s effect.

Quick Recap

SaleBestseller No. 1
Mattel Minecraft Diamond Sword Battle Toy
Mattel Minecraft Diamond Sword Battle Toy
​The design stays true to the unique, pixelated world of Minecraft!; ​Makes a great gift for video-game players and fans ages 6 years old and up!
$19.95
Bestseller No. 2
4 Pack Kids Game Role-Play Toy Weapon Set-Sword Axe Pickaxe and Shovel,Perfect Toy Weapons Gift for Halloween Christmas and Parties
4 Pack Kids Game Role-Play Toy Weapon Set-Sword Axe Pickaxe and Shovel,Perfect Toy Weapons Gift for Halloween Christmas and Parties
The product is a 4-piece set made of EVA material, safe for gamers of all ages.
$30.99
Best Value
Pickaxe and Sword Toys,Foam Sword for Game Role-Play,Weapons,Halloween Christmas and Parties,Gift for Video Game Fans
  • 【Size】:About 17.7 Inch(45 cm).A life-size double-sided foam sword,It's an ideal tool for gamers of all ages.Hold it, as if entering the game world, so you and a friend can create your own play scenes.
  • 【Safe And Durable】:Made from non-toxic and environmentally friendly materials,full of durable, heavy EVA foam, Give you better skin touch feeling and no sticks are used inside.
  • 【Suitable for Various Occasions】:This pixel sword is perfect for use as a prop in school plays, or for internet themed parties, birthday parties, Halloween and costume parties.
  • 【Great Sword Toys】:These foam swords are very suitable for children to use and play, and are completely safe for children.Also ideal as rewards, prizes, and giveaways.
Rank #4
​Mattel Minecraft Transforming Diamond Sword & Pick-Axe
  • Bring the world of Minecraft to life with the kid-sized Minecraft Transforming Diamond Sword and Pickaxe!
  • The dynamic 2-in-1 tool transforms from pickaxe to sword with one swift motion -- just push or pull to switch!
  • The large-scale toy feels great in kids' hands when mining blocks or fending off zombies -- the perfect accessory for any video gamer!
  • Fans will love the excitement of playing out Minecraft scenarios in the real world -- mine for ore, fight mobs, then go back to mining!
  • Makes a cool gift or costume accessory for video game players and fans ages 6 years and older who love exploration, creativity and survival -- the Minecraft way!

If the command fails

  • Syntax or parsing error: Confirm that the game is Java Edition 1.21.5 or later. For Java 1.20.5–1.21.4, use the earlier levels form above.
  • Unknown or invalid item: Check the sword item ID and spelling, or use minecraft:diamond_sword exactly.
  • Permission error: Check command access for that specific world or server. The command syntax does not grant permission to run commands.
  • Playing Bedrock: Use Bedrock-specific command guidance; Java item-component syntax is not interchangeable.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

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

More quests from Patch Notes

  1. 3 Best RAGE:MP Server Hosts for GTA V in 2026Blog8min
  2. 6 Best RLCraft Server Hosting Providers in 2026 (Ranked)Blog8min
  3. 6 Best Palworld Dedicated Server Hosts in 2026 (Ranked)Blog8min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.