Jump to content

Recommended Posts

Posted

I have a 1.7.10 mod in the works that is getting kind of complicated so I wanted to add an instruction book. I was looking at Tinkers Construct and saw that they used mantle. Am I allowed to use mantle and if so do I need permission? Also how do I produce my mod with it and do I just put the jar in my development environment and rebuild the environment? Any Help is appreciated! :)

Posted

Are you talking about the Mantle mod stuff here: https://github.com/SlimeKnights/Mantle

 

In that code they do it in a way that might be a bit complex for novice programmer.

 

They created their own custom event called ManualOpen.  Then they post that event to the event bus when certain items are right clicked, and they create the document from XML resource files using document builder tools that they post into custom GUI.

 

Sounds really cool, but again it depends on your coding level.

 

The simplest way is to actually create the document in some other tool (like Word or Google Docs) and then print the pages to images (need PNG format).  Then you can make a custom GUI where it shows the pages (you can even show two pages like a real book) and then all you have to do is write code to flip the pages when the user clicks or presses arrow keys.  I think that is simplest way to make a complicated document appear in your program.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.