Jump to content

Building Client Mod to Send in Chat on behalf of Player


offline

Recommended Posts

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 by offline
more clear headline
Link to comment
Share on other sites

  • offline changed the title to Building Client Mod to Send in Chat on behalf of Player

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.