Kb Enchantment Command
Copy the /enchant command for Kb in Minecraft Java 26.2 and Bedrock 26.32. All levels and a pre-enchanted /give variant are shown below.
/enchant commands — all levels
Hold a compatible item before running. /enchant cannot exceed the enchantment's normal max level.
Kb I
Java
/enchant @p minecraft:knockback 1Bedrock
/enchant @p knockback 1Kb II
Java
/enchant @p minecraft:knockback 2Bedrock
/enchant @p knockback 2/give equivalent — Diamond Sword with Kb II
Java
/give @p minecraft:diamond_sword[enchantments={knockback:2}] 1Uses the 1.21.5+ flat component syntax. For Bedrock, give the item first then use /enchant @p knockback 2 while holding it.
Works on
Items listed here are covered by the site's give pages. Some additional items (hoes, turtle helmet, etc.) also accept this enchantment but are not listed.
What Kb does
Pushes enemies back on melee hit. Level I gives moderate pushback; Level II is significant — useful for keeping enemies at range.
Frequently asked questions
- How do I get Kb in Minecraft?
- Hold a compatible item and run /enchant @p minecraft:knockback 2 (Java) or /enchant @p knockback 2 (Bedrock). Alternatively, use the /give command above to spawn a pre-enchanted item directly into your inventory.
- What is the max level of Kb?
- The maximum level is Kb II (level 2). Using /give you can technically set any integer, but levels above 2 don't add further benefit in most cases.
- Does the Kb command work in Bedrock Edition?
- Yes. On Bedrock use /enchant @p knockback 2 while holding a compatible item. Bedrock omits the "minecraft:" namespace prefix.