Problem: Knockback enchantment doesn't knock other players +3 / +6 blocks further back, only mobs. (Both passive and hostile.)
What I expected: Hitting a player with an item enchanted with Knockback should move a player further back than hitting them with a normal item.
Steps to reproduce:
In creative mode give yourself two swords, an anvil, and a Knockback book. Enchant one sword with knockback.
Spawn in a hostile mob. Hit with normal sword and with knockback sword. Observe that Knockback works on hostile mobs.
Spawn in a passive mob. Hit with normal sword and with knockback sword. Observe that Knockback works on passive mobs.
Invite a second player into the world. Ensure they are not in Creative mode and that /gamerule PVP is true. Hit with normal sword and with knockback sword. Second player will travel the exact same distance regardless of which sword you use.
Additional testing:
This seems to be a problem with the Knockback enchantment interacting with players regardless of what item the enchantment is on. I used an editor to enchant a stick with Knockback II and it behaves how I expect- the enchanted stick sends mobs 6 blocks further than a regular stick does. Players still travel the same distance when hit by a regular stick and a Knockback II stick. This scales with enchantment level- you can use the editor to give the stick Knockback 999 which immediately sent the villager I hit out of the 80 chunk render distance, but players still travel the ~3 blocks when hit by the Knockback 999 stick.
Related issues
is duplicated by
Comments


I have exactly the same problem with knockback in Minecraft PE for android. Even though, punch in bow works correctly.

Confirmed in 1.14.1 on Windows 10 using the repro steps given.

This bug has been affecting me for so long. If I use the enchant command or anvil enchanting, the knockback enchantment doesn't work on players. I've tested it on the Nintendo Switch* with different swords, worlds, and versions offline and online and it doesn't work. Other enchantments, like Sharpness and Fire Aspect, work on both mobs and players, but not knockback.
*On the Switch Home Menu, it states Minecraft is updated to Ver. 1.14.30.

This bug is also on the Xbox one betas. Present in the 1.16 nether betas

My friends and I have a minigame world and one game requires knockback on players. We have experienced the same thing.

Today marks the day the New Nether Update came out and I decided to test if this bug still exists on my Switch. I enchanted different swords with Knockback II and it actually worked on both mobs and players! The enchanted sword pushes players back more than a normal sword. Although, can someone tell me if the power of Knockback II was reduced cause it feels like it does.

It might be because Netherite armor provides some knockback resistance.

Just found out, Knockback no longer knocks mobs back (3*level) blocks away, but (2+level) blocks away now, which I suspect is another bug.

According to the 1.16 changelog:
Knockback resistance is now a scale instead of a probability
Along the way it looks like they fixed this bug too. Here is what I found testing:
Enchant | Player knockback | Monster knockback |
---|---|---|
none | 2 | 2 |
Knockback I | 3 | 3 |
Knockback II | 4 | 4 |
These values are based on a hitting a mob while standing still. Running toward a mob while hitting it increases knockback.

Sprinting doesn't cause more knockback in this version. Neither players nor mobs
this is exactly my problem. I was used an editor to make slime balls has knock back 2 and tried hitting it on a player and it didnt do anything. after hitting a ravager I thought maybe it only has effect with swords since you can only enchant a sword with knockback. so not only did I try a gold sword with knockback 2 and it did nothing. In addition, I also used an editor to make a knockback 10 stick and it only sends mobs flying back and not players.