Well here is a quick and easy guide, totally not written by chatGPT:
1. Get the render position and scaling factor;
2. Iterate through the loaded entities in the minecraft world;
3. Project a 3D point onto the 2D screen, for this you can use GLU.gluProject;
4. Check if the position is valid and...