mojira.dev
MC-3756

Entities floating in water don't receive vertical knockback upon being hit

The Bug:

Entities floating in water don't receive vertical knockback upon being hit.

Steps to Reproduce:

  1. Summon a creeper in some water.

  2. Hit the creeper and observe the knockback it receives.

Observed Behavior:

Entities don't receive vertical knockback.

Expected Behavior:

Entities would receive vertical knockback.

Related issues

Comments

CubeTheThird

Unable to reproduce.

migrated

The mob actually goes up a little bit. This makes sense as gravity is at play vertically but not horizontally.

migrated

I propably wasn't specific enough.

Example 1
When you are normally on the ground and attack a mob with a sword with knockback enchantment, the mob will fly far away and very little high (just like you expected).

Example 2
On the other hand when the mob is in water, you jump into water and swim underwater right under the mob (you look between it's legs) and then attack, you would expect the mob to fly really high into the air and not far away. Instead, it flies in the exactly same way as in the example 1.

If this doesn't help then I'll try to draw it in MS Paint.

EDIT: Also when you use Knockback II its even more visible and even more akward.

CubeTheThird

That is exactly what I did, attack from underwater, and the mob went both vertically (not by much mind you) and horizontally.

migrated

Well then it seems that you (Mojang) like it the way it is. I always imagined knockback as an extra power which is added to your punch and I imagined a punch to behave close to real-life punch.

I'll try to describe it another way.
Imagine that you have a ball and throw it in front of you (that's example 1), then imagine that you throw a ball above your head (that's example 2). That's how I imagined Knockback to work and how it also make sense to me. If Mojang wanted it to behave like some kind of horizontal teleporter, then I'll accept it (with sad panda face).

CubeTheThird

Out of curiosity, are you refering to knockback 1 or 2?

migrated

I'm refering to Knockback II, which is on my diamond sword together with Smite (IV level I think).

CubeTheThird

I recreated this with knockback II, and I have to agree that the vertical movement (though existant) seems disproportionately small compared to the horizontal movement. Whether or not this is intended, I am not sure. Next time please be as specific as possible when reporting an issue.

migrated

Whether or not this is considered a bug or intended, this is visible in version 13w03a.
I also noticed that with knockback II that zombies will most launch horizontally out of the water rather than the proportional vertical movement like CubeTheThird said. It almost looks like they skip across the water like a rock rather than upwards.

Video Proof: http://youtu.be/p-ImtDnYk8k

Operating System: Windows 7
Java Version: 7u11
Minecraft Version: 13w03a

migrated

Just tested it in latest snapshot in singleplayer creative. It's still there.

migrated

This is not even close to be fixed. The issue is still there in latest snapshot.

migrated

Still appears in latest prerelease.

galaxy_2alex

Reopened, thanks

kumasasa

Is this still an issue in the current Minecraft Snapshot 15w49b or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

Confirmed for 1.13.1.

migrated

Can confirm this for 1.16 Pre-Release 4

Avoma

Can confirm in 20w51a.

migrated

Confirmed for 21w07a

migrated

MC-99640 and MC-102554 should be merged to this report because they're all same issues.

migrated

Can confirm for 1.16.5. This also happens with Knockback I or even without Knockback enchantments.

ampolive

Can confirm in 1.17.1.

Avoma

I can confirm this behavior in 1.19, though this ticket requires some amendments in order to accurately state what the problem is here. If it's okay, could I request ownership since the reporter has been inactive for just under two years? I'll make all the necessary changes and will keep this ticket actively updated. Thank you in advance 🙂

Avoma

(Unassigned)

Confirmed

Platform

Low

Combat

water

Minecraft 1.4.5, Minecraft 1.4.7, Snapshot 13w03a, Minecraft 1.5, Snapshot 13w11a, ..., 1.21.2 Pre-Release 3, 1.21.3, 1.21.4, 25w08a, 1.21.5

Retrieved