mojira.dev
MCPE-228331

When the "minecraft:shooter" component is applied to an item and there is no ammunition available, the use animation/movement modifiers will still occur

When the “minecraft:shooter” component is on an item and the player does not have the specified ammunition, it will still play the use animation and modify their movement speed based on the “minecraft:use_modifiers” component. This impacts the designated shooter item regardless of whether it uses the “charge_on_draw” property (used for crossbow-like shooter items) or not.

Steps to reproduce:

  1. give yourself the example crossbow “/give @s runecraft:crossbow

  2. Do not have any arrows in your inventory

  3. Use the item while in survival

Expected result: No animation or movement modifiers are applied

Actual result: plays the animation and applies the movement modifiers to the player

Attachments

Comments 1

Please edit your report to change the Affected Version to the version shown on the Minecraft title screen

Estrongel

(Unassigned)

1492483

Confirmed

Multiple

1.21.120.24 Preview, 1.21.120.23 Preview, 1.21.120.20 Preview, 1.21.101 Hotfix, 1.21.111

Retrieved