mojira.dev
MCPE-183392

Attack and charging/using a Bow, Crossbow, or Trident at the same time doesn't stop the attack animation in first person

Attack and Charging/Using a Bow, Crossbow, or Trident at the same time doesn't stop the Attack animation in First Person, this is not the case while Eating or Toothing Goat Horn, as the attack animation will stop immediately while Eating/Toothing Goat Horn animation play

Step to Reproduce:
1. Give yourself a Bow, Crossbow, or Trident
2. Press Left Click (Attack) and then quickly press Right Click (Use) to use/charge the item, the attack animation still play
3. Now give yourself a Bread or Goat Horn
4. Repeat Step 2, the attack animation stop immediately while Eating/Toothing Goat Horn

This can be fixed by replacing "first_person_attack_controller" inside player.animation_controllers.json from this:

"first_person_attack_controller" : "variable.attack_time > 0.0f && query.get_equipped_item_name != 'filled_map'"

to this:

"first_person_attack_controller" : "variable.attack_time > 0.0f && query.get_equipped_item_name != 'filled_map' && !query.is_using_item"

Linked issues

Attachments

Comments 2

migrated
[media][media][media]
JervieA20

Can confirm

KejuGorenk

(Unassigned)

1263717

Confirmed

Multiple

1.21.50.24 Preview, 1.21.40.22 Preview, 1.21.40.20 Preview, 1.21.20.24 Preview, 1.21.10.24 Preview, ..., 1.21.30, 1.21.41 Hotfix, 1.21.50.29 Preview, 1.21.60.24 Preview, 1.21.51 Hotfix

Retrieved