Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

So one of the feature's in the mod I'm working on is lore books. Basically books that can be found while exploring or killing mobs that give lore about things in the world and about my mod. The issue I'm having is that I've never modded a gui before, and I have no idea where to start. I found a tutorial online, but it was very outdated (1.7.10). Where would I start with a gui like this?

 

Thanks for any help!

Take a look at the vanilla screens, such as the ReadBookScreen class. All you really need to get started is to create a class that extends the Screen class, and then you can open the gui with Minecraft.displayGuiScreen() (which you can call for example in the onItemRightClick() method in your item).

  • Author
9 hours ago, vemerion said:

Take a look at the vanilla screens, such as the ReadBookScreen class. All you really need to get started is to create a class that extends the Screen class, and then you can open the gui with Minecraft.displayGuiScreen() (which you can call for example in the onItemRightClick() method in your item).

Would it be possible for you to go a little more in depth? I'm new to minecraft modding (I know a bit of java), and I'm not quite sure how to actually go about that

Edited by Bottled_Water

5 hours ago, Bottled_Water said:

Would it be possible for you to go a little more in depth? I'm new to minecraft modding (I know a bit of java), and I'm not quite sure how to actually go about that

Vemerion already suggested you basically everything you need in order to achieve what you are trying to do. Where are your doubts coming from? It would be better if you asked for specific bits of information

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

  • Author
32 minutes ago, Beethoven92 said:

Vemerion already suggested you basically everything you need in order to achieve what you are trying to do. Where are your doubts coming from? It would be better if you asked for specific bits of information

It took me a while, but I figured it out. Again, I'm new to minecraft modding, and have little experience with any kind of gui creation so it was a little confusing.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.