Give Diamond Sword with Kb II Command
Copy the /give command for a Diamond Sword enchanted with Kb II in Minecraft Java 26.2 and Bedrock 26.32.
Kb II — Java command
Java
/give @p minecraft:diamond_sword[enchantments={knockback:2}] 1Bedrock
On Bedrock Edition, give the item first, then hold it and run:
Bedrock
/enchant @p knockback 2Note: /enchant requires holding a compatible item and cannot exceed the enchantment's normal max level.
All levels
Kb I
Java
/give @p minecraft:diamond_sword[enchantments={knockback:1}] 1Kb II
Java
/give @p minecraft:diamond_sword[enchantments={knockback:2}] 1Customize in the builder
JavaSwitch edition using the selector in the header.
diamond swordknockback 2
Frequently asked questions
- How do I get a Diamond Sword with Kb in Minecraft?
- Enable cheats or use OP, open chat with T or /, and paste the command above. The Diamond Sword with Kb II appears in your inventory immediately. On Bedrock, give the item first then use /enchant while holding it.
- Can I combine Kb with other enchantments using /give?
- Yes — on Java Edition you can stack multiple enchantments in a single /give command using the flat syntax: /give @p minecraft:diamond_sword[enchantments={knockback:2,unbreaking:3,mending:1}] 1
- What is the maximum level of Kb?
- The maximum level is Kb II (level 2). In /give commands you can set any integer, but levels above 2 don't increase the effect beyond vanilla maximums in most cases.