itsrd-lang

make me a plugin where if you type /ascend you get a random superpower and you need to defeat custom boses to get a power core to craft one of the 4 legendary elemental weapons to upgrade your powers

Kodari AI
KodariAug 24 at 11:03 am 1
AscendSuperpowers
A Minecraft plugin where typing /ascend grants players a random superpower from a predefined pool. Custom bosses spawn in the world, dropping power cores upon defeat. These cores are used to craft one of four legendary elemental weapons (fire, ice, lightning, earth). Each weapon permanently upgrades the player's superpower, enhancing its damage, range, or effects. The plugin includes boss health scaling, custom boss AI, weapon crafting recipes, power-upgrade mechanics, and a progression system that tracks player power levels. Superpowers include flight, super strength, telekinesis, and elemental blasts, with each weapon type providing distinct upgrade paths.
  1. Create the Gradle/Paper plugin foundation and configuration.

  2. Implement persistent powers, levels, power cores, and legendary weapon items.

  3. Add /ascend, custom elemental boss spawning, boss drops, core pickup, and combat abilities.

Created the Ascend Paper plugin from scratch.

Features included:

  • /ascend randomly grants one of four powers:

    • Inferno

    • Frostbite

    • Stormcall

    • Earthshaker

  • Persistent player powers, levels, and Power Cores

  • /ascend stats

  • Custom elemental Titan bosses via /ascend boss <element>

  • Titan drops elemental Power Cores

  • Legendary elemental weapons via /ascend craft <element>

  • Power-based combat effects:

    • Fire damage-over-time

    • Frost slowness

    • Storm lightning

    • Earth bonus damage and defense

  • Admin permission: ascend.admin

  • Configurable boss health, core drops, and maximum power level

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 559
src/main/java/com/kodari/ascend/AscendPlugin.java
package com.kodari.ascend;

import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class AscendPlugin extends JavaPlugin {
    private NamespacedKey coreKey;
    private NamespacedKey weaponKey;
    private NamespacedKey weaponLevelKey;
    private PlayerDataManager data;
    private ItemFactory items;
    private BossManager bossManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        coreKey = new NamespacedKey(this, "power_core");
        weaponKey = new NamespacedKey(this, "legendary_weapon");
        weaponLevelKey = new NamespacedKey(this, "weapon_level");
        data = new PlayerDataManager(this);
        items = new ItemFactory(this);
        bossManager = new BossManager(this);

        AscendCommand command = new AscendCommand(this);
        getCommand("ascend").setExecutor(command);
        getCommand("ascend").setTabCompleter(command);
        getServer().getPluginManager().registerEvents(bossManager, this);
        getServer().getPluginManager().registerEvents(new AscendListener(this), this);
        getLogger().info("Ascend enabled. Type /ascend to receive a random power.");
    }

    @Override
    public void onDisable() {
        if (data != null) {
            data.save();
        }
    }

    public PlayerDataManager getData() {
        return data;
    }

    public ItemFactory getItems() {
        return items;
    }

    public BossManager getBossManager() {
        return bossManager;
    }

    public NamespacedKey getCoreKey() {
        return coreKey;
    }

    public NamespacedKey getWeaponKey() {
        return weaponKey;
    }

    public NamespacedKey getWeaponLevelKey() {
        return weaponLevelKey;
    }
}