Posted March 12, 20214 yr 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!
March 12, 20214 yr 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).
March 12, 20214 yr 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 March 12, 20214 yr by Bottled_Water
March 12, 20214 yr 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
March 12, 20214 yr 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.