Yes, if you punch someone, the left click action still activates. There's a separate event for punching entities (PlayerDamageEntity) that can provide more information about them when hit. There is no way to make left click not activate.
Yes, you can make codespaces only up to the height limit...