How to add custom lore books to my modpack?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

joshie

New Member
Jul 29, 2019
253
0
0
For developing you'd put the xml in your config folder in config/books/debug
Make sure you have Enchiridion in debug mode in it's config. It's config is config/books/enchiridion.cfg

The tutorial doesn't use Mariculture it's just on the Mariculture wiki because the custom books used to be part of Mariculture. I guess it does tell you to go to the mariculture.cfg though, but as I explained above, you put enchiridion in debug mode now instead, since I split the custom books out.
The tutorial is out to date on the crafting recipes. Though from what you're describing you wouldn't need to use them anyways. But I'll explain the difference. The tutorial tells you to do something like:
Code:
<crafting x="100" y="113">
<craft1>leather,blank,leather</craft1>
<craft2>ingotIron,blank,ingotIron</craft2>
<craft3>blank,blank,blank</craft3>
<craftResult>diving.boots</craftResult>
</crafting>

Now it's more like:
Code:
<crafting x="100" y="113">
<craft1>leather||leather</craft1>
<craft2>ingotIron||ingotIron</craft2>
<craft3>||</craft3>
<craftResult>diving.boots</craftResult>
</crafting>


Also the in the info, item is changed to onCrafting.
 

AntiVi

New Member
Jul 29, 2019
24
0
0
Ok so what i've done is this:
I've put the xml file in the debug folder this one is called "TAPLore1.xml"
I have this code inside the xml file
<?xml version="1.0"?>
<book>
<info gen="true">
<name>Lore 1</name>
<author>myself</author>
<color>FF8000</color>
</info>


<page>
<text wrap="150">TestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTestingTesting</text>
</page>
</book>

This should work right?
It doesn't seem to be spawning a book nor do any appear in NEI or creative mode so idk what is going on.
 

AntiVi

New Member
Jul 29, 2019
24
0
0
you're putting it in config/books/debug right? NOT config/debug
Yep I am doing that.
I can give you a link to the modpack if you want to see for yourself :)

EDIT: Hmmm it spawned in now I didn't change anything but it works now. I did notice the book drop on the floor maybe that is why I didn't see it.
Anyway thanks for the help :)
 
Last edited:

Eunomiac

New Member
Jul 29, 2019
188
0
0
EDIT: Nevermind, I really should have waited a few---my custom book appeared in NEI after a restart. I'll leave my original post below since it kind of summarizes what you need to do to get a custom book into your game via Enchiridion:

I'm having similar difficulties getting a custom book to show up in-game, and I've followed the instructions in this thread:
  • "config/books/enchiridion.cfg" --- "Debug Mode > Display NBT"=true, and "Debug Mode Enabled"=true
  • "config/books/debug/eunomiac_HexVol1.xml" contains the exact same code as AntiVi's (just to test a known-working copy)
... and yet I can't find the book in NEI or my inventory. What's the expected behavior when adding a new xml file into the debug folder? Should the book just pop into the world, or does it need to be crafted with a recipe?

Appreciate any guidance; in the meantime I'll keep truckin', hopefully my book just spawns in like it did for AntiVi :)
 
Last edited: