mojira.dev
MC-102611

Can't use sweep attack while in air

Introduction:
I was trying to kill a zombie while flying in creative, when I realized that no "sweep" particle was being played. I thought that this was the bug, but after further review, it appeared that I could not use sweep attack while in the air. Then, I tested it while jumping. The sweep attack did not work then either.

What I expected to happen...:
1st) Sweep Particle Played
2nd) Sword Sweep Work While Flying
3rd) Sword Sweep Work While Jumping

What Actually Happened...:
1st) No Sword Sweep Particle
2nd) Sword Sweep Did Not Work While Flying
3rd) Sword Sweep Did Not Work While Jumping

Gamemode does not affect this, neither does the type of sword, nor whether you are moving up or down, nor what type of mob you hit.

Steps to Reproduce..:

  1. Spawn/Find a Mob

  2. Jump or Fly In Creative

  3. Attack the Mob with a Sword

Linked issues

Comments 5

Most likely intended.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w43a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

Sorry, I have neglected Mojang bug report for too long. I am testing my bugs for the most current versions as I am typing this,

Confirmed for 1.10.2 and 16w43a.

Resolving as works as intended. The code specifically checks that the player is on the ground.

Andrew H

(Unassigned)

Confirmed

Minecraft 16w21b, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2

Retrieved