Jump to content

Request for Help: Displaying Title for Player in Minecraft Forge 1.19.x


Guest

Recommended Posts

Hello,

I'm currently developing a mod using Minecraft Forge 1.19 and I've encountered some difficulties. I'm trying to display a title (or a subtitle) to a player but can't seem to find the correct way to do so.

In previous versions, such as Forge 1.16, I could use a snippet like the following:

player.connection.sendPacket(new STitlePacket(STitlePacket.Type.TITLE, new TranslationTextComponent("your.translation.key")));

However, it seems like this method no longer works in Minecraft Forge 1.19, or I might be doing something wrong.

Can someone please provide a working example or point me towards relevant documentation or resources that explain how to display a title to a player in Minecraft Forge 1.19?

Any help would be greatly appreciated.

Thank you,
BaKY

Edited by BaKY
(misprint)
Link to comment
Share on other sites

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.