Started by
FanelLore
on
Topic category: Help with MCreator software
I've been wondering, how do you make a custom book in Mcreator that is actually readable, and has custom text in it that is automatically there in the first place?
Topic category: Help with MCreator software
I've been wondering, how do you make a custom book in Mcreator that is actually readable, and has custom text in it that is automatically there in the first place?
Create a GUI, and there is an option for text. I think it’s the first one. Then, if you want more pages, put a button in the GUI that is triggered to open the next page, which is another GUI.
if you have some knowledge of JSON files and such, you could try patchouli:
https://www.curseforge.com/minecraft/mc-mods/patchouli
but without JSON knowledge it would make debugging your books really hard... it is still a lot more powerful, beautiful, and a lot less time consuming to make.
always run you JSON code with https://jsonlint.com/ before using it.
another good thing is that you don't need to lock any elements in MCreator.
Alright, that makes sense. Thanks for your help!
another quick question: how do you change the font size of the text in the GUI?
This is not possible yet, but improvements to GUIs are planned.
Alright thanks!
@Override
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
this.font.drawString("Hero's Sword", 3, 7, -13434829);
this.font.drawString("Hero's Pickaxe", 3, 34, -13434829);
this.font.drawString("Hero's Wand", 3, 61, -13434880);
this.font.drawString("Other Knowledge", 3, 88, -3407668);
this.font.drawString("Vulta-Diamond Pickaxe", 3, 106, -16750951);
this.font.drawString("Strange Scrolls", 3, 124, -3368704);
this.font.drawString("Crystal Wrath", 3, 142, -10092442);
This might be the code that includes the font?
https://mcreator.net/forum/61588/tutorial-1144-how-add-patchouli-support-series-videos
You can do it with just a command in a function file,
use this generator to make the book and paste the created command into a function file,
https://minecraft.tools/en/book.php
I will try that. Thanks!