nemuisl

================================================== PLUGIN NAME ================================================== Ashhollow Magic

================================================== PLUGIN TYPE ================================================== Paper 1.21.11 plugin.

Create API support to connect with Ashhollow Kingdoms.

================================================== MAGIC SYSTEM CORE ================================================== Command: /magic

Subcommands:

  • /magic kingdom → Kingdom info, relics, members.
  • /magic origin → Origin selection and info.
  • /magic kingdom ruler → Ruler management (set, remove, heir, rename).
  • /magic toggle → Enable/disable magic abilities.
  • /magic savior set <player> → Grant Savior (admin only).
  • /magic savior remove <player> → Remove Savior.

================================================== ORIGIN SYSTEM ================================================== When a new player joins:

  • They must choose an origin immediately.
  • Once chosen, they are automatically assigned to the corresponding kingdom.
  • No need for /kingdom join.

Each origin displays:

  • Name
  • Description (species lore)
  • Advantages
  • Disadvantages (allergies/weaknesses)
  • Passive traits
  • 4 Active abilities (PvP-capable, themed particles)

After selection:

  • Save origin permanently.
  • Apply traits and abilities.
  • Send kingdom info to Ashhollow Kingdoms API.

================================================== ORIGIN LIST ================================================== SHADOW KINGDOM

  • Vampire: Night creature with blood magic. Advantages: stronger at night, fast movement. Disadvantages: weakened by sunlight, allergic to garlic. Passive: nocturnal. Abilities: Blood Strike (dark projectile), Night Dash (shadow dash hit), Vampiric Drain (life steal), Shadow Bite (melee bleed).
  • Shadeborn: Shadow beings. Advantages: stealth bonus. Disadvantages: weak in bright light. Abilities: Shadow Meld (invisibility), Cloak of Darkness (damage reduction aura), Silent Step (dash strike), Shadow Grasp (root enemy).
  • Nightfang: Beast-like hunters. Advantages: enhanced senses. Disadvantages: weaker in daylight. Abilities: Predator Strike (claw slash), Beast Roar (fear AoE), Night Slash (shadow strike), Fang Leap (pounce hit).
  • Ravenfolk: Winged shadow species. Advantages: flight in darkness. Disadvantages: fragile wings in daylight. Abilities: Dark Flight (short flight strike), Wing Slash (melee hit), Raven’s Cry (debuff scream), Shadow Dive (smoke burst attack).
  • Warlock: Forbidden magic users. Advantages: strong curses. Disadvantages: weak to holy magic. Abilities: Dark Curse (DoT), Hex Bolt (projectile), Soul Drain (life steal), Forbidden Flame (dark fire AoE).

NATURE KINGDOM

  • Dryad: Forest spirit. Advantages: healing allies. Disadvantages: weak to fire. Abilities: Nature Blessing (heal allies), Vine Whip (root strike), Leaf Storm (AoE damage), Spirit Heal (cleanse).
  • Sylvan Elf: Forest-dwelling elf. Advantages: accurate ranged attacks. Disadvantages: fragile defense. Abilities: Forest Arrow (ranged hit), Quickstep (dash strike), Elven Focus (buff), Spirit Shot (magic projectile).
  • Dwarf: Underground race. Advantages: strong resistance, mining ability. Disadvantages: slower movement. Passive: small size (scaled smaller). Abilities: Ancient Stone (defense buff), Hammer Smash (melee hit), Stone Skin (damage reduction), Mining Surge (knockback strike).
  • Treantkin: Tree guardians. Advantages: strong defense. Disadvantages: slow movement. Abilities: Ancient Roots (root AoE), Bark Shield (defense aura), Branch Slam (melee hit), Forest Guard (ally buff).
  • Nature Catkin: Feline nature spirits. Advantages: agile movement. Disadvantages: weaker defense. Abilities: Spirit Pounce (leap strike), Cat Reflex (dodge buff), Nature Dash (speed strike), Spirit Claw (melee slash).

ICE KINGDOM

  • Frostborn: Born of frost. Advantages: cold resistance. Disadvantages: weak to fire. Abilities: Frost Armor (defense buff), Ice Shard (projectile), Frozen Breath (cone slow), Chill Aura (AoE debuff).
  • Snow Elf: Elves of snow. Advantages: accurate ice attacks. Disadvantages: fragile in heat. Abilities: Ice Lance (ranged hit), Snow Step (dash strike), Frost Arrow (projectile), Blizzard Call (AoE).
  • Crystalborn: Crystal-bodied. Advantages: strong defense. Disadvantages: slow movement. Abilities: Crystal Barrier (wall), Shard Burst (AoE shards), Reflective Skin (damage reduction), Crystal Slam (melee hit).
  • Winter Wolfkin: Wolf-like hunters. Advantages: fast movement, strong bite. Disadvantages: weak in warm climates. Abilities: Frozen Fang (bite strike), Wolf Howl (fear AoE), Ice Dash (dash hit), Frost Bite (melee slash).
  • Glacier Giantkin: Massive ice giants. Advantages: huge strength, cold resistance. Disadvantages: slow movement. Passive: giant size (scaled larger). Abilities: Frozen Ground (AoE slow), Ice Slam (melee hit), Avalanche (AoE damage), Giant’s Roar (fear).

WATER KINGDOM

  • Merfolk: Aquatic species. Advantages: breathe underwater AND land, swim faster. Disadvantages: weaker away from water. Passive: amphibious breathing. Abilities: Ocean Current (knockback wave), Water Slash (melee strike), Tidal Wave (AoE push), Sea’s Embrace (heal allies).
  • Siren: Mystical singers. Advantages: charm enemies, heal allies. Disadvantages: weaker on land. Abilities: Ocean Song (charm), Siren’s Call (debuff), Healing Melody (heal), Wave Charm (AoE push).
  • Tideborn: Born of tides. Advantages: wave control. Disadvantages: weaker in dry areas. Abilities: Wave Control (AoE push), Tide Push (knockback strike), Water Dash (dash hit), Flow Surge (buff).
  • Coralfolk: Coral-bodied. Advantages: strong defense. Disadvantages: slow on land. Abilities: Coral Shield (defense buff), Reef Slam (melee hit), Hardened Skin (damage reduction), Coral Blast (projectile).
  • Abyssal Fisherkin: Deep sea hunters. Advantages: deep sea vision. Disadvantages: weaker in sunlight. Abilities: Deep Sea Vision (buff), Abyssal Strike (melee hit), Net Trap (root), Dark Water Surge (AoE damage).

FIRE KINGDOM

  • Emberkin: Flame-born. Advantages: strong fire attacks. Disadvantages: weak to water. Abilities: Flame Burst (projectile), Fire Dash (dash strike), Ember Slash (melee hit), Heat Wave (AoE).
  • Phoenixborn: Reborn in fire. Advantages: revive once upon death. Disadvantages: weak to shadow magic. Abilities: Phoenix Rebirth (revive), Flame Wing (dash strike), Burning Aura (damage aura), Firestorm (AoE).
  • Ifrit: Fiery spirits. Advantages: strong melee fire attacks. Disadvantages: weak to ice. Abilities: Inferno Hand (melee hit), Flame Punch (strike), Fire Spin (AoE), Lava Surge (buff).
  • Ashwalker: Ash wanderers. Advantages: area fire damage. Disadvantages: weak to water. Abilities: Ash Storm (AoE), Smoke Veil (stealth buff), Fire Step (dash strike), Burning Ground (AoE).
  • Magmaborn: Magma-born. Advantages: strong defense. Disadvantages: slow movement. Abilities: Magma Armor (defense buff), Lava Slam (melee hit), Molten Skin (damage reduction), Heat Shield (buff).

================================================== RULER SYSTEM ==================================================

  • Rulers choose an origin like normal members.
  • They gain their 4 origin abilities PLUS 1 ultimate ruler ability.
  • Rulers can:

- Rename kingdom - Assign roles - Assign heir (/magic kingdom ruler heir <player>) - Manage relics - Toggle PvP

  • Example ultimates:

- Fire Ruler → Royal Inferno (massive flame AoE). - Water Ruler → Ocean’s Protection (healing shield). - Ice Ruler → Frozen Dominion (freeze enemies). - Shadow Ruler → Shadow Decree (weakens enemies). - Nature Ruler → Ancient Forest Blessing (heal allies).

================================================== RELIC SYSTEM ==================================================

  • Each kingdom has a relic (Fire, Water, Ice, Shadow, Nature).
  • Placing relic in item frame/glow frame → activates protective radius.
  • Radius is large; all members inside gain relic effects.
  • Relics can be stolen by other kingdoms.
  • If placed near another relic, effects stack.
  • Relic effects:

- Fire Relic: fire resistance, flame damage boost. - Water Relic: water breathing, swim speed boost.

📎 1 file 2,154 chars
📄
pasted-code-1784726612157.txt
txt 65 lines
▶
 - Ice Relic: frost resistance, defense boost.
  - Shadow Relic: night vision, stealth bonus.
  - Nature Relic: regeneration, plant growth boost.

==================================================
SAVIOR SYSTEM
==================================================
- Only one Savior exists.
- Admins grant Savior via LuckPerms permission: ashhollow.magic.savior.
- Savior replaces origin abilities with her own.
- Savior has 4 themed light abilities + 1 ultimate.
- Savior abilities:
  - Light Beam: ranged holy light attack (golden ray particles).
  - Radiant Shield: glowing barrier protecting allies.
  - Healing Light: restore allies and remove debuffs.
  - Purge Darkness: dispel shadow effects.
  - Ultimate: Divine Ascension → massive light explosion healing allies and damaging enemies.

==================================================
MAGIC ACTIVATION
==================================================
- Do NOT use ground hitting.
- Use menus, commands, optional keybinds.
- Magic Orb item allows species switching and particle activation.
- All abilities have themed particle effects:
  - Fire = flames
  - Water = bubbles
  - Ice = snowflakes
  - Shadow = smoke
  - Nature = leaves
  - Light = golden rays
- Abilities require cooldowns, mana costs, permission checks.

==================================================
PLACEHOLDER API
==================================================
- %ashhollow_kingdom% → Player’s kingdom.
- %ashhollow_origin% → Player’s origin/species.

==================================================
DATA STORAGE
==================================================
Save:
- Player UUID
- Origin
- Abilities
- Magic enabled/disabled
- Savior status

==================================================
PLUGIN QUALITY
==================================================
Requirements:
- Paper 1.21.11 compatible
- Optimized
- No placeholder code
- No TODO
- Proper command registration
- Complete Java source code
- Particle effects for abilities
- Magic Orb for species switching
- Amphibious water species (land + water breathing)
- Giant species scaled larger
- Dwarf species scaled smaller
- Rulers can assign heirs
Kodari AI
KodariJul 22 at 1:27 pm 1
AshhollowMagic
A magic origins plugin for Ashhollow server. Players choose from 5 kingdoms and 25 species origins, each with 4 themed abilities, particle effects, and passive traits. Features include ruler system with ultimate abilities, placeable relics with protective auras, Savior system, magic orb, mana system, cooldowns, PlaceholderAPI support, and Ashhollow Kingdoms API integration.

I’ll build this complete magic system plugin. Let me start with the foundational files

I’ll build this complete magic system plugin. Let me start with the core files.

nemuisl

whats missing?

Kodari AI
KodariJul 22 at 1:42 pm 12

You’re right — I need to name the project and start building. Let me set that up.

AshhollowMagic
Magic origins plugin for Paper 1.21.11 with 5 kingdoms and 25 species origins. Each origin has 4 active abilities with particle effects, cooldowns, and mana costs. Features include relic system with item frame protection, ruler system with heir assignment, Savior mode with light abilities, origin selection GUI on first join, Magic Orb item, and Ashhollow Kingdoms API integration. PlaceholderAPI support for kingdom and origin placeholders.

Now I’ll build the entire plugin. Starting with the build system and core files.

Now, the massive OriginRegistry with all 25 origins:

Now let me update the main plugin class to initialize the API:

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 3,469
src/main/java/com/ashhollow/magic/AshhollowMagic.java
package com.ashhollow.magic;

import com.ashhollow.magic.api.AshhollowMagicAPI;
import com.ashhollow.magic.command.MagicCommand;
import com.ashhollow.magic.config.ConfigManager;
import com.ashhollow.magic.data.DataManager;
import com.ashhollow.magic.listener.PlayerListener;
import com.ashhollow.magic.listener.RelicListener;
import com.ashhollow.magic.manager.AbilityManager;
import com.ashhollow.magic.manager.CooldownManager;
import com.ashhollow.magic.manager.ManaManager;
import com.ashhollow.magic.manager.PlayerDataManager;
import com.ashhollow.magic.manager.RelicManager;
import com.ashhollow.magic.manager.RulerManager;
import com.ashhollow.magic.origin.OriginRegistry;
import com.ashhollow.magic.placeholder.MagicExpansion;
import com.ashhollow.magic.util.ColorUtil;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public final class AshhollowMagic extends JavaPlugin {

    private static AshhollowMagic instance;
    private ConfigManager configManager;
    private DataManager dataManager;
    private PlayerDataManager playerDataManager;
    private AbilityManager abilityManager;
    private CooldownManager cooldownManager;
    private ManaManager manaManager;
    private RelicManager relicManager;
    private RulerManager rulerManager;
    private OriginRegistry originRegistry;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.originRegistry = new OriginRegistry();
        this.playerDataManager = new PlayerDataManager(this);
        this.cooldownManager = new CooldownManager();
        this.manaManager = new ManaManager(this);
        this.abilityManager = new AbilityManager(this);
        this.relicManager = new RelicManager(this);
        this.rulerManager = new RulerManager(this);

        originRegistry.registerAllOrigins();

        // Initialize API
        AshhollowMagicAPI.init(this);

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

        getCommand("magic").setExecutor(new MagicCommand(this));

        if (getServer().getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new MagicExpansion(this).register();
            getLogger().info("PlaceholderAPI expansion registered.");
        }

        getLogger().info("Ashhollow Magic enabled!");
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveAll();
        }
        getLogger().info("Ashhollow Magic disabled.");
    }

    public static AshhollowMagic getInstance() {
        return instance;
    }
}