I have an entity (big square) and I want to know which part of the entity (the three different partitions) i actually clicked on.
Preferably before the interaction occurs (so I can change the interaction text for mobile), but I'm fine with after as well.
The entity is always fixed to this block, so no rotational stuff needs to be taken into account.
I saw there are RaycastHit and similar classes in the API, I can't seem to find how to use them. Same for the PlayerInteractWithEntityAfterEvent - i can see it's there, but I can't see how I get it. Plus maybe that doesn't even help 😄
I used a java picture for illustration, I'm in bedrock.