Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] Adding TextComponents to written book GUI


Recommended Posts

Yes. There should be helper methods in the book class (or another class) for writing this data. You can also look at json generators like this Minecraft Book Editor and Minecraft Json (Click on the Book button).

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to post
Share on other sites
9 hours ago, Cadiboo said:

Yes. There should be helper methods in the book class (or another class) for writing this data. You can also look at json generators like this Minecraft Book Editor and Minecraft Json (Click on the Book button).

Which methods exactly? I'm not seeing any :/

TextFormatting works for the NBT, I just don't know how to add action and hover events for certain words

Edited by Differentiation
Link to post
Share on other sites

I would say look at EditBookScreen and ReadBookScreen for how the data gets displayed and then reverse engineer it from there. The json generators should help you get the syntax and stuff right. You can use this knowledge to make your own helper methods if none exist.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to post
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.

Guest
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 Privacy Policy.