splashoffcial

Minecraft Plugin Concept: MythicBooks

A custom Minecraft plugin with 7 magical books, each granting unique powers.

Players can obtain books through /spinbook, while OPs can craft them using special recipes.

---

📚 1. Divine Book

Ability

* Gives:

* Regeneration V * Resistance III * Glowing golden particles * Right-click ability:

* Heal nearby teammates in a 10-block radius * Cooldown: 60s

Command to Obtain

mcfunction
/givebook divine <player>

Spin Chance

* 2% Legendary

OP Recipe

text
Nether Star | Totem | Nether Star
Gold Block  | Book  | Gold Block
Beacon      | Elytra| Beacon

---

💪 2. Strength Book

Ability

* Permanent Strength II * Right-click:

* Berserk Mode for 10 seconds * Strength V + Speed II * Cooldown: 45s

Command

mcfunction
/givebook strength <player>

Spin Chance

* 10%

OP Recipe

```text Diamond Sword | Blaze Rod | Diamond Sword Netherite Ingot| Book | Netheri

Kodari AI
KodariMay 8 at 2:32 pm 11,170 (v2)

I’ll create a magical book plugin system with unique abilities and custom recipes.

MythicBooks
A magical book system featuring 7 unique enchanted books with special abilities. Players obtain books through /spinbook with rarity-based chances, while OPs can craft them using custom recipes. Each book grants permanent effects and has a unique right-click ability with cooldowns. Features include teammate healing, berserk mode, golden particles, radius-based effects, and mystical powers for enhanced gameplay.

Project created with core functionality:

  • ✅ 2 fully implemented books (Divine, Strength) with passive effects and abilities

  • ✅ 5 placeholder books ready for expansion

  • ✅ /givebook <type> <player> command for admins

  • ✅ /spinbook command with weighted random system

  • ✅ Custom crafting recipes for OP players

  • ✅ Cooldown system with individual timers per book

  • ✅ Particle effects (golden particles for Divine, flames for Strength)

  • ✅ 10-block radius healing for Divine Book

  • ✅ Berserk mode for Strength Book

  • ✅ Persistent data storage using NamespacedKey

  • ✅ XSeries for cross-version compatibility

The framework is ready for you to implement the remaining 5 books by adding their abilities to AbilityManager and recipes to RecipeManager.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 750
src/main/java/com/mythicbooks/MythicBooks.java
package com.mythicbooks;

import com.mythicbooks.commands.GiveBookCommand;
import com.mythicbooks.commands.SpinBookCommand;
import com.mythicbooks.listeners.BookListener;
import com.mythicbooks.managers.AbilityManager;
import com.mythicbooks.managers.BookManager;
import com.mythicbooks.managers.RecipeManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MythicBooks extends JavaPlugin {
    
    private BookManager bookManager;
    private AbilityManager abilityManager;
    private RecipeManager recipeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.bookManager = new BookManager(this);
        this.abilityManager = new AbilityManager(this);
        this.recipeManager = new RecipeManager(this);
        
        registerCommands();
        registerListeners();
        registerRecipes();
        
        getLogger().info("MythicBooks has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (recipeManager != null) {
            recipeManager.unregisterRecipes();
        }
        getLogger().info("MythicBooks has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("givebook").setExecutor(new GiveBookCommand(this));
        getCommand("spinbook").setExecutor(new SpinBookCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new BookListener(this), this);
    }
    
    private void registerRecipes() {
        if (getConfig().getBoolean("enable-recipes", true)) {
            recipeManager.registerRecipes();
        }
    }
    
    public String getMessage(String path) {
        String prefix = getConfig().getString("messages.prefix", "&6[&dMythic&5Books&6] ");
        String message = getConfig().getString("messages." + path, path);
        return colorize(prefix + message);
    }
    
    public String colorize(String text) {
        return text.replace('&', '§');
    }
}