trebris

create a minecraft plugin called shard smp that gives you special powers depended on your shard: strength,speed,fire,water,wind,earth,ender,sculk,shadow,light,thunder,alchemist,hunter,ice,time. each shard has 5 levels and on levels 1 3 and 5 you gain new abilities and on levels 1 2 3 45 you gain buffs to your current abilities for example you have a power from ender that lets you teleport a few blocks upfront once 15 seconds and with the buffs its gonna be 12.5 seconds. once a month for free or by buying with in game money you can reroll your shard for an other one.

Kodari AI
KodariMay 31 at 11:34 am 86
ShardSMP
A Minecraft plugin where each player is assigned one of 15 elemental shards (Strength, Speed, Fire, Water, Wind, Earth, Ender, Sculk, Shadow, Light, Thunder, Alchemist, Hunter, Ice, Time). Each shard has 5 levels — new abilities unlock at levels 1, 3, and 5, while levels 2–4 buff cooldowns and power. Players activate powers via their shard item or commands. Free monthly reroll or paid reroll with in-game money lets players switch shards.

Here’s the full ShardSMP plugin — 31 files covering all 15 shards, ability management, cooldowns, passive refresh, persistence, and reroll system.

Here’s a complete summary of everything built:


ShardSMP — Full Feature Overview

15 Shards with 5 Levels Each

Shard
Passive(s)
Ability 1 (Lv.1)
Ability 2 (Lv.3)
Ability 3 (Lv.5)
Strength
Strength I→II + Resistance
Power Strike
Ground Slam
Titan’s Wrath
Speed
Speed I→II + Jump Boost
Sprint Burst
Phase Dash
Swift Escape
Fire
Fire Resistance
Flame Burst
Inferno Ring
Meteor Strike
Water
Water Breathing + Dolphin’s Grace
Water Shield
Tidal Wave
Healing Spring
Wind
Slow Falling + Jump Boost II
Wind Gust
Air Lift
Tornado
Earth
Haste I→II + Resistance
Stone Skin
Earthquake
Petrify
Ender
—
Ender Dash
Blink
Void Pull
Sculk
Passive player detection alert
Sculk Grip
Vibration Sense
Sculk Shriek
Shadow
Speed I→II
Shadow Step
Umbral Dash
Dark Veil
Light
Night Vision + Absorption
Flash Burst
Holy Mend
Radiance
Thunder
—
Lightning Strike
Static Field
Thunderstorm
Alchemist
Haste + Luck
Brew Mastery
Potion Splash
Grand Elixir
Hunter
—
Mark Prey
Ensnare
Kill Shot
Ice
Resistance I→II + Speed
Ice Shards
Blizzard
Deep Freeze
Time
Haste I→II + Speed
Time Warp
Rewind
Time Stop

Cooldown Scaling (Example — Ender Dash)

Exactly as specified: 15s → 12.5s → 10s → 7.5s → 5s

Activation

  • Right-click shard item → Ability 1

  • Sneak + Right-click → Ability 2

  • /shard ability 3 → Ability 3

Reroll System

  • Free once per 30 days — tracked per player

  • Paid reroll anytime via Vault economy (reroll-cost in config)

  • Always rolls a different shard than current

Commands

Command
Description
/shard info
View your shard, level, and abilities
/shard ability <1-3>
Activate ability by index
/shard levelup
Level up (costs money via Vault)
/shard reroll
Free or paid reroll
/shardsadmin setshard <player> <type>
Assign any shard
/shardsadmin setlevel <player> <1-5>
Set level directly
/shardsadmin removeshard <player>
Strip shard
/shardsadmin reroll <player>
Force reroll (bypasses cooldown/cost)
/shardsadmin info <player>
View a player’s shard
trebris

change it to java 21

trebris

change the command to keybinds

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 2,557
src/main/java/com/shardsmpc/ShardSMPPlugin.java
package com.shardsmpc;

import com.shardsmpc.commands.AdminShardCommand;
import com.shardsmpc.commands.ShardCommand;
import com.shardsmpc.data.DataManager;
import com.shardsmpc.listeners.AbilityListener;
import com.shardsmpc.listeners.PlayerListener;
import com.shardsmpc.managers.AbilityManager;
import com.shardsmpc.managers.RerollManager;
import com.shardsmpc.managers.ShardManager;
import com.shardsmpc.utils.MessageUtil;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

public class ShardSMPPlugin extends JavaPlugin {

    private DataManager dataManager;
    private AbilityManager abilityManager;
    private ShardManager shardManager;
    private RerollManager rerollManager;
    private Economy economy;

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

        this.dataManager = new DataManager(this);
        this.abilityManager = new AbilityManager(this);
        this.shardManager = new ShardManager(this);
        this.rerollManager = new RerollManager(this);

        setupEconomy();

        getCommand("shard").setExecutor(new ShardCommand(this));
        getCommand("shardsadmin").setExecutor(new AdminShardCommand(this));

        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);

        shardManager.startPassiveRefreshTask();
        abilityManager.startPositionTrackingTask();

        getLogger().info("ShardSMP enabled! 15 shards, 5 levels each.");
    }

    @Override
    public void onDisable() {
        dataManager.saveAll();
        getLogger().info("ShardSMP disabled — all player data saved.");
    }

    private void setupEconomy() {
        if (getServer().getPluginManager().getPlugin("Vault") == null) return;
        RegisteredServiceProvider<Economy> rsp =
                getServer().getServicesManager().getRegistration(Economy.class);
        if (rsp != null) {
            economy = rsp.getProvider();
            getLogger().info("Vault economy hooked successfully.");
        }
    }

    public String getPrefix() {
        return MessageUtil.color(getConfig().getString("messages.prefix", "&8[&bShardSMP&8] &r"));
    }

    public DataManager getDataManager() { return dataManager; }
    public AbilityManager getAbilityManager() { return abilityManager; }
    public ShardManager getShardManager() { return shardManager; }
    public RerollManager getRerollManager() { return rerollManager; }

    public Economy getEconomy() { return economy; }
    public boolean hasEconomy() { return economy != null; }
}