Posted May 20, 20232 yr Hi everybody, I just spent my first hours creating my first mod installed only on the client. I need one final thing to solve and it feels like it is impossible. I use mdk 1.19.3. I would like the Mod to Send a message into the chat when being in Multiplayer. But I don´t find how that works: is it ClientChatReceivedEvent as event and then event.setMessage(Component)? I am unable to find a proper argument fulfilling the requirements of the Component Interface for this method. I also Read that there are Literalcontents. But I see no tutorials, no Info on that. Is my plan even possible to fulfill? Greetings, offline. Edited May 20, 20232 yr by offline more clear headline
May 21, 20232 yr See how `ClientPackListener#handleSystemChat` works. Just know that the message will only be sent to your own client.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.