mojira.dev
MC-302317

block break delay function affect entities

leftClickCounter function that is used to detect if the player left click "air" then goes instantly to break a block it add 10 tick delay before allowing you to break a block but *if the player doesnt left-click on the next tick it reset to 0 making you able to mine the block* the function does exception entity and blocks only "air"

ingame bug: after "leftclicking air/missing an attack" player is unable to attack an entity for the next tick due to the function needing a tick to reset

solution: use "mousereleased function" or remove this function after evaluating what it actually achieves or if it didnt achieve anything

problem: in the function used and how it needs to reset every second tick after left click

steps to reproduce: hop on any world use left click on air then mine block needs to be precise and fast tick rate command might help

the function referred too explanation

leftClickCounter :

'check every single tick leftClickCounter is decreased by 1 in the main game loop. In the red sections that are highlighted as MISS leftClickCounter is set to 10 (ticks). looking at the clickMouse() function which is called whenever the player left-clicks their mouse. At the top of the function a check is preformed to see if leftClickCounter is less than or equal to 0. If this condition is false'

Attachments

Comments 2

in the reproduce steps i meant attacking a mob not mine block*

We do not have enough information to reproduce this issue.

Please format your post like the example below to help us understand your problem:

Steps to Reproduce:

  1. (Explain what needs to be done for the issue to happen)

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

Please also attach any needed commands, add-ons/behavior packs, data packs, resource packs, screenshots, videos, or worlds needed to help reproduce this issue.

Refer to the Bug Tracker Guidelines for more information about how to write helpful bug reports. Bug reports with insufficient information may be closed as Incomplete.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines -- 💬 Community Support -- 📧 Mojang Support (Technical Issues) -- 📧 Microsoft Support (Account Issues) -- 📓 Project Summary -- ✍️ Feedback and Suggestions -- 📖 Game Wiki

balsbals

(Unassigned)

Unconfirmed

(Unassigned)

1.21.9 Release Candidate 1, 1.21.9

Retrieved