When using the default sprint key, CTRL, on a OSX device, you are not able to attack.
This is caused because CTRL+click on mac simulates a right click, again disabling the use of left click while ctrl is held down.
Different keys could be used for sprint, but I find ctrl is the most convenient and easiest to use.
I suggest adding some way to toggle the "ctrl-click = right click" on the in-game or launcher settings to resolve this issue.
- duplicates
-
MC-59810 Cannot break blocks while sprinting (Ctrl+Click = right click on macOS)
- Reopened