https://drive.google.com/file/d/1QAJujxPuXA_azANLJwKWlFnrOsdYZUN4/view?usp=sharing
How to reproduce
Last checked in 1.18.2
Step 1: Game menu > Options > Video Settings > Attack Indicator: Set to "Crosshair"
Step 2: At this time, no tools or swords are held in the main hand, and the crosshair is used to face any attackable entity within 3 blocks.
[media]Linked issues
Attachments
Comments


Does MC-196714 describe your issue?

No, this issue is regardless of gamemode, even is survival mode.

Confirmed in 1.20.3 pre 2 (sorry about the necropost btw)
Related to MC-259969
Please provide a description of the bug along with reproduction steps, observed and expected result.