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'
in the reproduce steps i meant attacking a mob not mine block*