Jump to content

[1.10.2] Any idea how I would go about creating a custom book?


MaxAskew

Recommended Posts

Make a book, make a gui. Make right click open the gui. Finally add content ie pages to the gui.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

Its really Simple, GuiHandler, and make a Gui, and code the stuff into that, then create an item, and make it onItemRightClick open the gui.

I suggest taking a look at:

http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/gui-handler/

for the GuiHandler and then you want to look at GuiScreen without Inventory to see how to do the gui:

http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/gui-screen/

i'd also recommend taking a look at vazkii's gui from PSI as an example of how its done,

https://github.com/Vazkii/Psi/blob/master/src/main/java/vazkii/psi/client/gui/GuiIntroduction.java

Link to comment
Share on other sites

Its really Simple, GuiHandler, and make a Gui, and code the stuff into that, then create an item, and make it onItemRightClick open the gui.

I suggest taking a look at:

http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/gui-handler/

for the GuiHandler and then you want to look at GuiScreen without Inventory to see how to do the gui:

http://bedrockminer.jimdo.com/modding-tutorials/advanced-modding/gui-screen/

i'd also recommend taking a look at vazkii's gui from PSI as an example of how its done,

https://github.com/Vazkii/Psi/blob/master/src/main/java/vazkii/psi/client/gui/GuiIntroduction.java

Side note only use a GuiHandler if you have both a Container and a Gui otherwise just use

Minecraft.getMinecraft().displayGuiScreen(new GuiBook());

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.

Announcements



×
×
  • Create New...

Important Information

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