Open Shazuli opened 6 years ago
Hello! Thanks for the suggestion. I will put it in my list of ideas, but I can't promise when I'll get to it. Converting html into the book's format is probably going to take a lot more effort than it might sound like.
As for the questions:
config/books/demobook.xml
, and I can give myself the book using /give @p gbook:guidebook 1 0 {Book:"gbook:demobook.xml"}
Hmm, I am still having problems with getting a custom cover to show up. It is just giving me a missing texture, texture:
Here is my file location:
And I'm still having problems getting my books through commands:
It has to be in resources/textures/x
Ok, now I got that working. But I'm still having problems with getting the book from commands.
I figured it out by installing a mod to look at the NBT data inside my book:
/give @p gbook:guidebook 1 0 {Book:"gbook:resources/demobook.xml"}
Something else I noticed was that templates
didn't work for me. The pre-installed templates (big_recipe and small_recipe) worked fine for me, but when I added new templates it didn't show up in the book. I tried to just copy one of the crafting recipes templates with a different ID, but even then it didn't work.
Two notes about this: if you choose to use a separate template library, you'd have to reference it using an absolute path, like for the book xml. (so like gbook:resources/standard.xml
)
But more importantly: you can put templates inside the same book, you don't need a separate library xml.
<book>
<template id="blah blah">
<!-- contents... -->
</template>
<!-- book chapters... -->
</book>
Hi!
I only discovered your mod a few hours ago after listing mods as "Last Updated" on Curse. I find it really interesting because of all the configuration it has! So here I come with a suggestion of my own: A way to load a new chapter or page from an existing web page basically reads a URL's HTML code and adds it as a chapter or section. I made a menu with Custom Main Menu mod to show server status of our server through our website, so a similar thing or a way to get elements of a page. My other suggestion is almost identical; a way to load images from URL.
Here is some question I have about the mod in general:
/give @p gbook:guidebook 1 0 {Book:"gbook:xml/guidebook.xml"}
doesn't seem to work.