mojira.dev
MC-304341

Using_item advancement trigger still occurs even when spear returns to upright (non-damaging) position

Advancement trigger for using_item occurs for all ticks on holding right click with a spear, even when the spear entirely resets to default position and can no longer deal damage from their charge attack.

The trigger is used for any tick when the item’s functionality/right click is active, such as looking through a spyglass, or drinking a bottle, or consuming a food. Spears and their charge attack effects have a point at which they do not deal damage, knockback, nor dismounting; indicated by the spear visually returning to position. Despite this, the spear is still considered as “being used” even when it’s nonfunctional for it’s right click ability.

Steps to Reproduce:

  • Install the attached datapack into a world created on the snapshot (the “spear_use_trigger”zip folder).

  • Type the following command to set display for a trigger of using item involving a spear: `/scoreboard objectives setdisplay sidebar spear_use`

  • Grab any spear in your hand and start holding down right click to observe the scoreboard changes that follow.

Expected Results:

  • The scoreboard would stop increasing (as in stop being considered “using”) when the spear returns to it’s end position, a.k.a. the point where it can no longer deal damage.

Actual Results:

  • The scoreboard continues to increase upwards, even when the spear’s right click function has no effect.

Attachments

Comments 1

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

miziragamez

(Unassigned)

Confirmed

(Unassigned)

25w46a

Retrieved