Hello!
I want to open a GUI on the client when right-clicking an entity to change some of its properties. What would be the correct way to do this?
I feel like there's a few options: Using a ScreenHandler, but the entity doesn't have an inventory, so it feels like the wrong tool for the job (but maybe it isnt?). I could send a packet from the server to the client to open that specific GUI, which is how I've done it in the past, but I feel like there could be better ways? I could also detect the interaction and open the GUI completely client-side, but importing the client screen from the common entity would not work I think.
I'm kind of lost here on what to do