sujalofficial07

Recreate hypixel Skyblock menu with stats system with mechanics working functional.

Kodari AI
KodariApr 2 at 11:24 am 50,224 (v2)
SkyblockMenuSystem
A Hypixel SkyBlock-inspired menu and stats plugin featuring a fully interactive main SkyBlock menu, complete stats system (Health, Defense, Strength, Speed, Crit Chance/Damage, Intelligence, Magic Find, Ferocity, and more), skill progression system (Farming, Mining, Combat, Foraging, Fishing, Enchanting, Alchemy, Taming, Carpentry, Dungeoneering) with XP tracking and level-up bonuses, profile overview GUI, and admin commands for stat/XP management.

Planning all classes before writing:

  • Data layer: StatType enum, SkillType enum, PlayerData (all fields), StatsManager (YAML persistence, stat computation)

  • GUI framework: InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener

  • GUI impls: SkyblockMenuGUI, PlayerStatsGUI, SkillsGUI, ProfileGUI

  • Commands: SkyblockCommand, SkyblockAdminCommand

  • Util: ItemBuilder (XMaterial-based), NumberUtil, ProgressBar

  • Listeners: PlayerListener (join/quit data load/save)

  • Main: SkyblockMenuPlugin with all managers + getters

All clear — new project. Writing everything now.

The plugin is complete. Here’s a summary of what was built:

  • 20 files including full GUI framework, data layer, commands, and listeners

  • SkyBlock main menu (54-slot) with 14 clickable feature buttons (Profile, Stats, Skills, Collections, Crafting, AH, Bazaar, Bestiary, Wardrobe, Storage, Dungeons, Travel, Mining, Hub) with dark/gray glass pane borders

  • Player Stats GUI showing all 17 stats (Health, Defense, Strength, Speed, Crit Chance/Damage, Intelligence, Magic Find, Ferocity, Sea Creature Chance, Mining/Farming/Foraging Fortune, Fishing Speed, Pet Luck, True Defense) with base vs. skill bonus breakdown

  • Skills GUI showing all 10 skills (Farming, Mining, Combat, Foraging, Fishing, Enchanting, Alchemy, Taming, Carpentry, Dungeoneering) with exact Hypixel XP tables, Unicode progress bars, and Roman numeral levels up to 60

  • Profile GUI with player head, coins/bank, fairy souls, stats overview, and skills summary

  • Persistent YAML data saved per player UUID under playerdata/

  • Skill stat bonuses automatically computed from skill levels (configurable in config.yml)

  • Commands: /skyblock [stats|skills|profile|givexp] and /sbadmin [givexp|setstat|addstat|addcoins|setfairysouls|resetplayer|info] with full tab completion

sujalofficial07

Add workings of stats and skills and need same as hypixel Skyblock remove extra from sbmenu add only hypixel Skyblock menu and mechanics

Kodari AI
KodariApr 2 at 11:57 am 58,994 (v2)

Let me read all existing files first.

Now I have a complete picture. Here’s my plan:

  • NEW: SkillXpListener — real in-game XP from mining/farming/combat/fishing/foraging/enchanting/taming/carpentry

  • NEW: StatListener — defense-based damage reduction, attribute application on stat change

  • NEW: ActionBarManager — Hypixel-style ❤ HP/maxHP | ❈ Defense | ✎ Mana actionbar

  • UPDATE: StatsManager — add applyStatsToPlayer (health + speed attributes), notify ActionBarManager on level-up

  • UPDATE: SkyblockMenuPlugin, PlayerData, PlayerListener, all 3 GUI impls, config.yml

Here’s a summary of everything added/changed:

New mechanics:

  • SkillXpListener — grants real in-game XP: Mining (ores/stone), Farming (mature crops only), Foraging (logs), Combat (mob kills with individual XP per mob type), Fishing (caught fish), Enchanting (enchant table use × cost), Carpentry (crafting), Taming (taming animals)

  • StatListener — reduces incoming damage using damage × 100/(100+defense) then subtracts True Defense flat

  • ActionBarManager — runs every 2 ticks, shows ❤ HP/maxHP | ❈ Defense | ✎ Mana/maxMana; temporarily switches to a skill XP progress bar for 4 seconds after gaining XP

  • StatsManager.applyStatsToPlayer — sets Minecraft max health attribute (skyblockHealth/5) and movement speed (speed/1000) using XAttribute

Level-up system: Fires a full Hypixel-style bordered chat message listing all stat rewards gained at that level, plays level-up sounds

GUI overhaul: SkyblockMenuGUI now matches the Hypixel SkyBlock menu layout (Profile head, Skills, Stats, Collections, Crafting, Wardrobe, Storage, Pets, Dungeons, Travel, AH, Bazaar, Bestiary, Accessories, Community, Quests, Close button). Stats and Skills GUIs are redesigned with stat breakdowns (base/skill bonus/equipment bonus) and XP source hints per skill.

sujalofficial07

Create a production-ready Minecraft Paper 1.21.1 plugin in Java.

Package name must be: sujal.net

This plugin is the CORE stats system for a Hypixel SkyBlock-inspired server. It must be modular, expandable, clean, and designed so future plugins like menus, items, pets, skills, combat, mobs, and dungeons can connect to it through a stable API.

Do not make a simple demo. Build a real system with proper mechanics, save/load, events, API, and INVENTORY GUI-safe behavior.

================================================== 1) MAIN GOAL ================================================== Build a complete SkyBlock-style stats core with:

  • player base stats
  • item bonuses
  • armor bonuses
  • pet bonuses
  • skill bonuses
  • temporary buffs
  • final stat calculation
  • persistent player data saving
  • API for other plugins
  • no broken INVENTORY GUI behavior
  • clean plugin data folder storage only

The plugin must save all player data inside the plugin's own data folder.

No external database is required unless I later ask for it.

Use YAML files inside: plugins/<plugin-name>/players/<uuid>.yml or a similar clean structure inside the plugin data folder.

================================================== 2) PACKAGE STRUCTURE ================================================== Use this package path and structure:

sujal.net ├── SkyblockCore.java ├── api/ │ └── StatsAPI.java ├── data/ │ ├── PlayerData.java │ ├── DataStorage.java │ └── ProfileData.java ├── stats/ │ ├── StatType.java │ ├── StatManager.java │ ├── StatModifier.java │ ├── StatSource.java │ ├── StatCalculator.java │ └── DamageCalculator.java ├── listeners/ │ ├── PlayerListener.java │ ├── CombatListener.java │ └── GuiListener.java ├── events/ │ ├── PlayerStatLoadEvent.java │ ├── PlayerStatSaveEvent.java │ ├── PlayerStatChangeEvent.java │ └── PlayerProfileChangeEvent.java ├── INVENTORY GUI/ │ ├── MenuBuilder.java │ └── GuiItems.java └── config/ └── ConfigManager.java

================================================== 3) STATS TO IMPLEMENT ================================================== Implement these stats at minimum:

Core combat and survival stats:

  • HEALTH
  • MAX_HEALTH
  • DEFENSE
  • STRENGTH
  • CRIT_CHANCE
  • CRIT_DAMAGE
  • ATTACK_SPEED
  • FEROCITY
  • INTELLIGENCE
  • SPEED
  • TRUE_DEFENSE
  • VITALITY
  • SWING_RANGE

Progression and utility stats:

  • MAGIC_FIND
  • PET_LUCK
  • SEA_CREATURE_CHANCE
  • MINING_SPEED
  • MINING_FORTUNE
  • FARMING_FORTUNE
  • FORAGING_FORTUNE
  • COMBAT_WISDOM
  • MINING_WISDOM
  • FARMING_WISDOM
  • FORAGING_WISDOM
  • ALCHEMY_WISDOM
  • ENCHANTING_WISDOM
  • CARPENTRY_WISDOM
  • TAMING_WISDOM

Optional but supported:

  • ABILITY_DAMAGE
  • HEALTH_REGEN
  • MANA_REGEN
  • TRUE_DAMAGE
  • KNOCKBACK_RESISTANCE

Use an enum named StatType.

================================================== 4) HOW THE STATS MUST WORK ================================================== The plugin must work like a SkyBlock-style stat engine.

Each player must have:

  • base stats
  • bonus stats from items
  • bonus stats from armor
  • bonus stats from pets
  • bonus stats from skills
  • bonus stats from profile perks
  • temporary bonus stats from potions/buffs
  • final calculated stats

The calculation order must be:

Final Stat = Base Stat + Flat Bonuses + Percent Bonuses + Temporary Bonuses + Profile Bonuses

Create a clean stat system where every stat can be queried, modified, and recalculated.

Important mechanics:

HEALTH / MAX_HEALTH

  • Max health must be computed from base and bonuses.
  • Current health cannot exceed max health.
  • If max health changes, current health must be clamped.
  • Health regeneration support should exist.

DEFENSE

  • Defense reduces incoming damage.
  • Use a configurable damage reduction formula.
  • Defense should not make player invincible.
  • Include a helper for incoming damage calculation.

STRENGTH

  • Increases melee damage.
  • Used in damage calculation with weapon base damage.

CRIT_CHANCE

  • Chance for a hit to crit.
  • Must be capped at 100%.
  • Random crit roll must be supported.

CRIT_DAMAGE

  • Crits multiply damage by a configurable multiplier.
  • Use a standard SkyBlock-style crit system.

INTELLIGENCE

  • Supports mana pool / energy.
  • Ability usage should consume mana.
  • Mana max should be derived from intelligence.
  • Include mana regeneration support.

SPEED

  • Controls movement speed.
  • Must have safe cap handling.
  • Configurable max speed if needed.

FEROCITY

  • Chance to trigger extra hits.
  • Multiple ferocity hits should be supported in damage calculation.

TRUE_DEFENSE

  • Reduces damage after defense.
  • Ignores normal defense formula.

MAGIC_FIND

  • Influences drop chances.
  • Used for future mob drop integration.

PET_LUCK

  • Used for pet-related calculations.

FORTUNE STATS

  • Used for block drops, farming, mining, and other future mechanics.

WISDOM STATS

  • Used for XP bonus and progression systems.

VITALITY

  • Improves healing and survivability.

ABILITY_DAMAGE

  • Multiplier for ability-based attacks.

HEALTH_REGEN / MANA_REGEN

  • Support passive regeneration over time.

================================================== 5) PROFILE SYSTEM ================================================== Add profile support because this is SkyBlock-inspired.

Requirements:

  • One player can have multiple profiles.
  • Each profile has separate stats.
  • Profile selection and switching must be supported.
  • Profile data must be saved in plugin data folder.
  • Current profile must be loaded on join.
  • Profile change event must exist.

If you keep it simple, implement one default profile first but design the code so multiple profiles can be added later without rewrite.

================================================== 6) DATA SAVING REQUIREMENTS ================================================== All player data must save inside the plugin data folder only.

Use files like: plugins/<plugin>/players/<uuid>.yml plugins/<plugin>/profiles/<uuid>_<profile>.yml

Data must include:

  • player UUID
  • player name
  • stats
  • profile name
  • current health
  • current mana
  • unlocked perks if needed later
  • timestamp / last save if useful

Must support:

  • auto-load on join
  • auto-save on quit
  • save on shutdown
  • safe file handling
  • no data loss on plugin reload
  • caching in memory for active players

================================================== 7) API REQUIREMENTS ================================================== Create a public API interface so other plugins can read and modify stats safely.

Example methods required:

  • getStat(UUID uuid, StatType stat)
  • setStat(UUID uuid, StatType stat, double value)
  • addStat(UUID uuid, StatType stat, double value)
  • removeStat(UUID uuid, StatType stat, double value)
  • getBaseStat(UUID uuid, StatType stat)
  • getFinalStat(UUID uuid, StatType stat)
  • recalculateStats(UUID uuid)
  • getPlayerData(UUID uuid)
  • getCurrentProfile(UUID uuid)

The API must be usable from other plugins through sujal.net.api.StatsAPI.

Design it so menus/items/pets/skills plugins can call it directly.

================================================== 8) EVENTS ================================================== Create custom Bukkit events for integration:

PlayerStatLoadEvent

  • fired when player data is loaded

PlayerStatSaveEvent

  • fired before player data is saved

PlayerStatChangeEvent

  • fired when any stat changes

PlayerProfileChangeEvent

  • fired when player changes profile

These events must be cancellable where appropriate and support other plugins listening to them.

================================================== 9) INVENTORY GUI SAFETY / NO BROKEN INVENTORY GUI ================================================== Create menu-safe code because later menus will depend on this core.

Important:

  • INVENTORY GUI must not allow item stealing
  • cancel all inventory interactions in plugin menus
  • cancel shift-click into menus
  • cancel number-key swapping
  • cancel dragging into menu
  • cancel double-click item vacuum behavior
  • cancel dropping items inside INVENTORY GUI
  • fill empty slots with glass panes or placeholder items
  • use custom inventory titles and clean click handling
  • use metadata or PDC tags to identify INVENTORY GUI items safely

If a INVENTORY GUI is created now, it must be locked and non-breakable.

================================================== 10) DAMAGE / COMBAT CALCULATION ================================================== Create a damage calculator that supports:

  • base weapon damage
  • strength scaling
  • crit chance roll
  • crit damage multiplier
  • defense reduction
  • true defense reduction
  • ferocity extra hits
  • ability damage
  • final damage output

The system must be written in a way that can be expanded later for bows, magic, melee, mobs, armor sets, and abilities.

================================================== 11) DEFAULT VALUES ================================================== When a player joins for the first time, assign sensible defaults.

Example defaults:

  • HEALTH = 100
  • MAX_HEALTH = 100
  • DEFENSE = 0
  • STRENGTH = 0
  • CRIT_CHANCE = 30
  • CRIT_DAMAGE = 50
  • ATTACK_SPEED = 100
  • FEROCITY = 0
  • INTELLIGENCE = 0
  • SPEED = 100
  • TRUE_DEFENSE = 0
  • MAGIC_FIND = 0
  • PET_LUCK = 0
  • SEA_CREATURE_CHANCE = 0
  • MINING_SPEED = 0
  • MINING_FORTUNE = 0
  • FARMING_FORTUNE = 0
  • FORAGING_FORTUNE = 0
  • WISDOM stats = 0
  • VITALITY = 0
  • ABILITY_DAMAGE = 0
  • HEALTH_REGEN = 0
  • MANA_REGEN = 0

Make these configurable in config.yml.

================================================== 12) LISTENERS ================================================== Create listeners for:

  • Player join: load data
  • Player quit: save data
  • player death / respawn if needed
  • combat damage handling if needed
  • INVENTORY GUI interaction blocking
  • plugin shutdown save

================================================== 13) CONFIGURATION ================================================== Create a config.yml with:

  • default stat values
  • health formula settings
  • crit multiplier settings
  • defense formula settings
  • speed cap
  • mana formula settings
  • regen interval
  • save interval
  • INVENTORY GUI title colors if needed

All important values must be configurable.

================================================== 14) CODE QUALITY ================================================== Requirements:

  • Full working code, not pseudo code
  • Proper imports
  • Clean formatting
  • No broken references
  • No placeholder TODOs for core logic
  • Use safe null checks
  • Use thread-safe save logic where needed
  • Use Bukkit/Paper 1.21.1 compatible APIs
  • Use Java 21 if needed for Paper 1.21.1
  • Keep code modular and readable
  • Add comments explaining important mechanics

================================================== 15) OUTPUT EXPECTATION ================================================== Generate the entire plugin code with:

  • main class
  • plugin.yml
  • config.yml
  • all required classes
  • proper package names
  • working stats engine
  • data saving/loading
  • INVENTORY GUI-safe listener
  • API interface

The plugin must be ready to compile in a Paper 1.21.1 Maven or Gradle project.

This plugin will be used as the foundation for SkyBlock menus, items, pets, skills, and future content, so make the architecture expandable and stable.

================================================== 16) VERY IMPORTANT ================================================== Do not make the INVENTORY GUI breakable.

Do not store data outside the plugin data folder.

Do not make a toy example.

Make it feel like a real SkyBlock core system.

Design it to be close to Hypixel SkyBlock behavior in logic and structure, while still being safe and maintainable.

Now generate the full code.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
26 3,163
src/main/java/com/skyblock/menu/SkyblockMenuPlugin.java
package com.skyblock.menu;

import com.skyblock.menu.commands.SkyblockAdminCommand;
import com.skyblock.menu.commands.SkyblockCommand;
import com.skyblock.menu.data.StatsManager;
import com.skyblock.menu.inventory.gui.GUIListener;
import com.skyblock.menu.inventory.gui.GUIManager;
import com.skyblock.menu.listeners.PlayerListener;
import com.skyblock.menu.listeners.SkillXpListener;
import com.skyblock.menu.listeners.StatListener;
import com.skyblock.menu.manager.ActionBarManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SkyblockMenuPlugin extends JavaPlugin {

    private StatsManager statsManager;
    private GUIManager guiManager;
    private ActionBarManager actionBarManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.statsManager = new StatsManager(this);
        this.guiManager = new GUIManager();
        this.actionBarManager = new ActionBarManager(this);

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new SkillXpListener(this), this);
        getServer().getPluginManager().registerEvents(new StatListener(this), this);

        SkyblockCommand skyblockCommand = new SkyblockCommand(this);
        getCommand("skyblock").setExecutor(skyblockCommand);
        getCommand("skyblock").setTabCompleter(skyblockCommand);

        SkyblockAdminCommand adminCommand = new SkyblockAdminCommand(this);
        getCommand("sbadmin").setExecutor(adminCommand);
        getCommand("sbadmin").setTabCompleter(adminCommand);

        for (org.bukkit.entity.Player player : getServer().getOnlinePlayers()) {
            statsManager.loadPlayer(player);
            statsManager.applyStatsToPlayer(player);
            actionBarManager.initPlayer(player);
        }

        actionBarManager.start();

        getLogger().info("SkyblockMenuSystem enabled!");
    }

    @Override
    public void onDisable() {
        if (actionBarManager != null) actionBarManager.stop();
        if (statsManager != null) statsManager.saveAll();
        getLogger().info("SkyblockMenuSystem disabled. All player data saved.");
    }
}