Jump to content

Recommended Posts

Posted

Hi all!

I'm just starting to develop my own mod on 1.15.2, and now i'm interested in creating a special book for the mod like the thaumonomicon from thaumcraft or the journal from astral sorcery. The problem is that I don't know how to create guis in 1.15.2. I tried to find examples of code or tutorial, but found almost nothing.

I will be grateful for any help.

 

Posted

Look at vanilla screens, if your gui is a "pure" gui then you only need to make a custom screen (gui) class, register it, and open it using

Minecraft.getInstance().displayGuiScreen(gui); 

 

Posted
2 hours ago, poopoodice said:

Look at vanilla screens, if your gui is a "pure" gui then you only need to make a custom screen (gui) class, register it, and open it using


Minecraft.getInstance().displayGuiScreen(gui); 

 

Thanks for your answer, i will try it 

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.

Announcements



×
×
  • Create New...

Important Information

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