Fast Bukkit Custom Book Constructor for Minecraft 1.8 to 1.16.5

Overview

BookMaker 📚

BookMaker is a fast Spigot API to create Custom Book for Minecraft 1.8 to 1.16.5.

Features

  • Create a book with your title, author and description
  • Add custom pages with custom texts
  • Customize your texts with hover, click events and colors
  • Give the book to a player or open it SERVER SIDE with a packet implementation

What do you have to care about ?

  • ⚠️ Make sure you have a project on SDK 8 or greater

How to use it ?

Just copy the BookMaker.java file from the source code and past it into your project.

All the parts of the book are created with the Builder Design Pattern. it means that you can create the custom book in many ways (in one bloc or in many for example). First, you have to create a new BookBuilder

BookBuilder book = BookMaker.build();

A BookBuilder is an inner class that represents the construction of the custom book. With this you can set the title, the author, add pages, etc. All you have to remember is to finish the construction with the method .done() to return an ItemStack at the end. Here is an example

ItemStack book = BookMaker.build().withTitle("§aWelcome").withAuthor("flxinxout").done();

Now let's write some text into the book. For this, you have to use the inner class TextBook.java. It provides a builder like the BookBuilder but for the texts specifically. Like for the BookBuilder, you have to add at the end the .done() method to return a BaseComponent.

BaseComponent text_one = TextBook.of("My First Text ! :)");
// or for more details
BaseComponent text_one = new TextBook().withText("Click here to go to my github page").withClick(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://google.com")).done();

Now the last part is the PageBook.java inner class. Like the text builder, this class is the page builder of the custom book. It provides many methods to customize your future pages with BaseComponent. Here too we have to and with a .done() method to return a BaseComponent[] for after. To create a simple page we can do that

BaseComponent[] page_one = PageBook.of("My first page (very simple with only one string)").done();
// or with more details
BaseComponent[] page_one = new PageBook().with(new TextBook().withText("Click here to go to my github page").withColor().done()).done();

Now here is a full custom book created with this API

ItemStack it = BookMaker.build()
    .withTitle("Title")
    .withAuthor("Author")
    .withPage(new BookMaker.PageBook()
          .with(new BookMaker.TextBook()
                  .withText("Welcome !")
                  .withColor(ChatColor.AQUA)
                  .done())
           .with(BookMaker.TextBook.of("\n\n"))
           .with(new BookMaker.TextBook()
                  .withText("The google page below\n")
                  .withColor(ChatColor.BLUE)
                  .done())
           .with(new BookMaker.TextBook()
                  .withText("LINK")
                  .withClick(new ClickEvent(ClickEvent.Action.OPEN_URL, "https://google.com"))
                   .done())
            .done())
     .withPage(BookMaker.PageBook.of("another page...")).done();

If you want to open it server side without giving the itemStack

BookMaker.openBook(player, it);
You might also like...

A essentials bukkit plugin for your server

A essentials bukkit plugin for your server

👾 A essentials, lightweight, multilanguage, customizable, modular and complex plugin for Minecraft Server

Jan 30, 2022

DnD Plugin submission using Atlas. Plugin inspired on the TrollGUI bukkit plugin

💡 PunishGUI DnD Plugin submission using Atlas. Plugin inspired on the TrollGUI bukkit plugin 📜 Dependencies 📃 Paper 1.18 🌎 Atlas 💻 Commands /hell

Jan 19, 2022

Backdoor injector for Bukkit/Spigot plugins.

MinePatcher Backdoor injector for Bukkit/Spigot plugins. MinePatcher was developed to test the security systems of Minecraft servers. Usage: 1. Window

Sep 18, 2022

A fast, customizable and compatible open source server for Minecraft: Java Edition

A fast, customizable and compatible open source server for Minecraft: Java Edition

Glowstone A fast, customizable and compatible open source server for Minecraft: Java Edition. Introduction Glowstone is a lightweight, from scratch, o

Dec 31, 2022

MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft

MissileWars MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft Downloads Get binary jars directly here: https://www.spigotmc.o

Dec 23, 2022

Open-source forge mod which provides custom cosmetics for players.

Open-source forge mod which provides custom cosmetics for players.

OpenCosmetics Open-source forge mod which provides custom cosmetics for players. Building gradlew setupDecompWorkspace gradlew idea Testing gradlew ru

May 16, 2021

With ITEMS CUSTOM in RECIPE!

With ITEMS CUSTOM in RECIPE!

FrameWork Version Support: 1.13.2 Below Frameworks: Bukkit, Lombok Craft with custom items Only specific items to craft Tutorial Add CustomRecipe.jar

Jan 30, 2022

☁️ Simple Extension for SuperiorSkyblock2 plugin. After creating the island, a custom mob will spawn.

☁️ Simple Extension for SuperiorSkyblock2 plugin. After creating the island, a custom mob will spawn.

☁️ Simple Extension for SuperiorSkyblock2 plugin. After creating the island, a custom mob will spawn.

Mar 10, 2022

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge.

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge.

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge. Originally designed as a MCP Client (called Tephra), it is now being ported t

Jan 1, 2023
Owner
Giovanni Ranieri
EPFL Student - Computer Science
Giovanni Ranieri
LoliServer 是 Minecraft 较新版本 1.16.5 中的 Forge + Bukkit 服务端核心, 支持Forge Mod和Bukkit 插件, 兼容性与性能优秀, 于Mohist1.16.5基础加以维护更新

LoliServer 1.16.5 LoliServer-1.16.5,基于Forge并融合Paper/Spigot/Bukkit的高性能高兼容性的服务端核心 上游项目 Mohist Bukkit Paper CraftBukkit Spigot MinecraftForge Atom Thermo

LoliServer 0 Apr 29, 2022
Bukkit/Bungee plugin to send Minecraft data to JMX

Bukkit/Bungee plugin to send Minecraft data to JMX

Fabrizio La Rosa 4 Jan 30, 2022
Bukkit transaction API for predicting when a server packet arrives at a client. Mainly intended for use in Minecraft anticheats.

Pledge A high performance and lightweight Bukkit packet tracking API for predicting when a server packet arrives at a client using transactions. Mainl

Thomazz 32 Dec 1, 2022
Plugin para minecraft 1.16+ (Spiggot/Bukkit)

TIERRA O NADA! Plugin para Minecraft Quieres pasar Minecraft de otra forma? Prueba con este plugin para Spiggot/Bukkit Minecraft Versión: 1.16+ Plugin

JkDev 3 Nov 12, 2022
🏃 A lightweight, multiarena, complex Parkour Spigot/Bukkit plugin for Minecraft Server

?? A lightweight, multiarena, multilanguage, completely configurable and complex Parkour Spigot/Bukkit plugin for Minecraft Server

Victor Rodrigues 6 Oct 17, 2022
Minecraft Forge Hybrid server implementing the Spigot/Bukkit API (Cauldron for 1.18)

❓ About Magma is the next generation of hybrid minecraft server softwares. Magma is based on Forge and Paper, meaning it can run both Craftbukkit/Spig

Magma Foundation 12 Apr 18, 2022
A minecraft server plugin which allows user to custom commands. 一个支持你在 MC 服务器自定义指令的插件。

CustomCommands:自定义指令 CustomCommands 插件也叫 CCS(CustomCommandS)或 Custom-Commands 等,允许自己设置一些指令的格式,以简化输入。 插件 QQ 群:1028582500 作者:椽子。 明城京联合太学,保留所有权利。 请遵循 GNU

CHUANWISE 13 Feb 10, 2022
Bukkit plugin to create smooth camera paths for cinematic purposes.

Spigot Plugin Template You can use this template to develop your own high quality Spigot plugins using Gradle with ease. Features Quickstart setup Rel

Marius Metzger 10 Nov 13, 2021
A flexible minigame framework for bukkit.

Oyster Subproject of Oni, a framework which focused on minigames. QQ Group What It is a flexible framework that attempts to reduce costs for developin

SaltedFish Club 7 Dec 25, 2022
🚀Small java eventing library created to developer familiar with Bukkit,Nukkit and PowerNukkit...

FestivalKit ???? Small event library for developers familiar with Bukkit,PowerNukkit and Nukkit ???? Pequena libraria de eventos para desenvolvedores

Rick M. 2 Jan 2, 2022