hyrial__08766

Can you make a minecraft plugin for 1.21.11 on Construct SMP – Custom Powers Plugin

Construct SMP is a custom-origin power system plugin where every player is assigned or can choose a permanent ability that changes gameplay forever. Powers are designed for PvP, survival, and content creation.

🧠 Core System Players gain powers through /power select Powers are permanent (persist after death) Can only be changed again via admin or rare reset item (optional feature) Designed for balanced PvP + fun chaos gameplay ⚡ Available Powers 🌊 Tide Breaker (Water Themed)

Master of oceans and rivers.

Water breathing + underwater vision Swim speed boost Water dash (burst forward in water) Bonus damage when fighting in water 🔥 Flameborn (Nether Themed)

Forged in fire and lava.

Fire + lava immunity Fire resistance permanent Flaming melee hits (burn effect) Bonus strength in the Nether 🌀 Enderith (End / Enderman Themed)

Void-powered assassin.

Short-range teleport blink Ender pearl cooldown reduced Take reduced damage from projectiles Bonus damage after teleporting 👻 Phantom (Phantom Themed)

Aerial stealth hunter.

Slow falling + flight burst (short glide ability) Night vision Invisibility for 30 seconds (cooldown ability) Bonus damage while airborne 🛡️ Iron Core (Iron Golem Themed)

Unbreakable guardian.

Permanent Resistance I Increased max health Reduced knockback Chance to “guard block” incoming damage ⚡ Voltage (Lightning Themed)

Storm-charged fighter.

Chance to strike lightning on hit Speed boost during storms Shock enemies (temporary stun effect) Immunity to lightning damage 🌿 Elemental (Hybrid Nature Power)

Master of all elements.

Random elemental buff every few minutes: Fire (strength boost) Water (speed + regen) Earth (resistance) Air (jump boost + speed) Adaptive combat bonuses depending on biome 🔄 Swapper (Tactical Power)

Reality manipulator.

Swap positions with the player you are looking at (cooldown) Can escape combos or start fights instantly Short range limit for balance 🟣 VOID CORE (Purple-Themed Power ⭐ REQUIRED)

Harness the energy of the void.

Purple particle aura Short-range void dash (teleport + damage burst on arrival) Enemies hit get “void fatigue” (slowness + weakness briefly) Slight regeneration when below half HP Reduced damage from end-based attacks 🎮 Command System Primary Command: /power select Opens a INVENTORY GUI menu of all available powers only avalable to operators Selecting a power permanently assigns it to the player and /Construct:start, assigining everyone in the server a randomized power with a scroll through of all the powers. and a /ability command to use an ability, /ability 1 /ability 2 /ability 3💾 Persistence System Powers are saved per-player UUID Remain active after: Death Logout Server restart Stored in plugin data files or database (configurable) 🎯 Construct SMP Features INVENTORY GUI-based selection menu Particle effects per power Cooldown system for abilities Optional rarity tiers (Common / Rare / Mythic) Anti-overpowered balancing hooks for PvP servers

Kodari AI
KodariApr 14 at 6:21 am 23,094 (v2)

I’ll create a comprehensive custom powers plugin for Construct SMP with 9 unique powers, GUI-based selection, and full persistence.

ConstructPowers
Custom origin power system for survival SMP servers. Players select from 9 unique powers including Tide Breaker, Flameborn, Enderith, Phantom, Iron Core, Voltage, Elemental, Swapper, and Void Core. Features include permanent abilities, GUI-based selection, cooldown management, particle effects, and full data persistence across deaths and restarts. Designed for balanced PvP and content creation.

All files created! This comprehensive powers plugin includes:

Core Features:

  • 9 unique powers with passive & active abilities

  • GUI-based power selection system

  • Persistent data storage (survives death/logout/restart)

  • Cooldown management for all abilities

  • Cross-version compatibility via XSeries

Powers Implemented:

  • Tide Breaker: Water breathing, swim speed, water dash ability

  • Flameborn: Fire immunity, burning attacks, nether strength

  • Enderith: Teleport blink ability, reduced projectile damage

  • Phantom: Slow falling, invisibility ability, airborne damage bonus

  • Iron Core: Extra health, resistance, guard block chance

  • Voltage: Lightning strike ability, storm buffs, shock effects

  • Elemental: Adaptive elemental buffs (scheduled in PowerListener)

  • Swapper: Position swap ability with targeted player

  • Void Core: Void dash with AoE damage and debuffs

Commands:

  • /power select - Opens GUI for power selection (op only)

  • /construct start - Assigns random powers to all online players

  • /ability <1-3> - Uses power abilities

The plugin uses a clean architecture with managers for data, powers, cooldowns, and abilities. All data persists to YAML files, and passive abilities auto-reactivate on join.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 1,743
src/main/java/com/constructsmp/powers/ConstructPowers.java
package com.constructsmp.powers;

import com.constructsmp.powers.command.AbilityCommand;
import com.constructsmp.powers.command.ConstructCommand;
import com.constructsmp.powers.command.PowerCommand;
import com.constructsmp.powers.data.DataManager;
import com.constructsmp.powers.inventory.gui.GUIListener;
import com.constructsmp.powers.inventory.gui.GUIManager;
import com.constructsmp.powers.listener.PlayerJoinListener;
import com.constructsmp.powers.listener.PowerListener;
import com.constructsmp.powers.manager.AbilityManager;
import com.constructsmp.powers.manager.CooldownManager;
import com.constructsmp.powers.manager.PowerManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ConstructPowers extends JavaPlugin {
    private DataManager dataManager;
    private PowerManager powerManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.cooldownManager = new CooldownManager(this);
        this.powerManager = new PowerManager(this);
        this.abilityManager = new AbilityManager(this);
        this.guiManager = new GUIManager();
        
        this.dataManager.loadAll();
        
        registerListeners();
        registerCommands();
        
        startAutoSave();
        
        getLogger().info("ConstructPowers has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.dataManager.saveAll();
        getLogger().info("ConstructPowers has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PowerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
    }
    
    private void registerCommands() {
        getCommand("power").setExecutor(new PowerCommand(this));
        getCommand("construct").setExecutor(new ConstructCommand(this));
        getCommand("ability").setExecutor(new AbilityCommand(this));
    }
    
    private void startAutoSave() {
        int interval = getConfig().getInt("settings.save-interval", 300);
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            this.dataManager.saveAll();
            if (getConfig().getBoolean("settings.debug", false)) {
                getLogger().info("Auto-saved player data");
            }
        }, interval * 20L, interval * 20L);
    }
}