always_koii
📎 1 file 7,548 chars
📄
pasted-code-1776913371365.txt
txt 1 lines
▶
i need a plugin on minecraft where when you spawn in, you are given one of 10 charms, these charms being "Anemo", "Flux", "Hydro", "Pyro", "Geo", "Astro", "Plasmic", "Melodic", "Time", "Gravitoro". Upon being given, these charms cannot be dropped, they mine like a fist ,and to the same damage as a fist, Anemo looks like the wind, or air, Flux is blue and looks like jelly, hydro looks like water, pyro looks like fire, geo looks like the earth, Astro is the stars, Plasmic is a rainbow plasma, Melodic is like sounds or music sheets, Time is a cool clock thing, Gravitoro looks like how gravity would look if it were visuallied. Use your imagination. All of these gems can be upgraded with a crafting recipe, 2 netherite ingots on the top and bottom middle, 4 diamond blocks in the corners, 2 end crystals on the right and left slots, and a glowstone in the middle. There are also reroll tokens, when right clicked randomizes the charm they get, crafted with 4 emerald blocks in the corners, 4 diamond blocks in the middle right, left, top, and bottom, and a netherite ingot in the very middle slot. All of the gems have one ability unless upgraded, and upon death slowly break, though kills heal them if damaged, if you die 5 times without healing your gem, it will break fully, and cannot be healed unless a player is killed, there are ZERO moves if broke, ungraded or not. Each gem gives you 3 moves when upgraded, the first one being what you have when un-upgraded. Anemo lets you dash forward 5 blocks, and passively removes fall damage, the second and third move boost you into the air 20 blocks, and gives any axe in your inventoy temporary wind burst, and acts as a slightly nerfed mace. The third move lets you pull any player toward you, if hitbox is within the crosshair and the player is in a 10 block range, stunning them for 3 seconds with slowness 4 and weakness 5, though if it is missed, the player who does the pull ,gets the same stun instead. Flux, has three moves and the passive is that after 3 hits, no matter what type, a automatic critical is landed (2x damage for that one hit after) the un-upgraded move is 1. Phase Slip Turn semi-liquid for a moment, letting you pass through enemies or attacks while leaving a glowing blue trail. The second and third move, unlocked when upgraded are 1. Phase Slip Turn semi-liquid for a moment, letting you pass through enemies or attacks while leaving a glowing blue trail. 2. Kinetic Absorb The jelly form absorbs incoming damage and stores it, then releases it as a burst of force or speed. 3. Flow Bind Launch a strand of sticky flux that slows and traps enemies, gradually hardening like gel to lock them in place. Hydro, now that i think you get the gist of one move when not upgraded, and when upgraded the 2nd, and 3rd moves are given, here are the moves for hydro. Passive – Tidal Rhythm Abilities build “flow” stacks; at max stacks, your next move is enhanced (stronger, faster, or bigger). Move 1 – Aqua Surge Send a fast wave forward that knocks enemies back and deals damage. Move 2 – Mist Veil Turn into a light mist briefly, reducing incoming damage and making you harder to hit. Move 3 – Crushing Current Create a swirling vortex that pulls enemies inward and damages them over time. The moves for pyro are: Passive – Ember Drive Landing hits builds “heat”; at max heat your next ability ignites targets, dealing burn damage over time and slightly boosting your speed. Move 1 – Flame Burst Unleash a short-range explosion of fire that hits hard and pushes enemies back. Move 2 – Blaze Step Dash forward in a streak of flames, damaging anything you pass through and leaving a burning trail behind. Move 3 – Inferno Grip Summon rising fire around a target area, trapping enemies briefly and dealing heavy damage over time. The moves for geo are as followed: Passive – Stoneheart Taking or dealing damage builds “fortify” stacks; at max stacks you gain a brief damage reduction and your next move is empowered with extra impact. Move 1 – Earth Shatter Slam the ground to send a shockwave forward, damaging and slightly stunning enemies. Move 2 – Stoneguard Raise a wall or armor of rock that blocks damage and briefly increases your defense. Move 3 – Seismic Grasp Spikes erupt from the ground in a targeted area, trapping and damaging enemies before collapsing. The moves for astro are as followed: Passive – Cosmic Charge Abilities generate “stardust”; at max stacks your next move is empowered with bonus range and a brief slow or pull effect. Move 1 – Starfall Pulse Call down a burst of falling stars in a small area, dealing quick hits of damage. Move 2 – Orbit Shift Phase slightly out of space, dashing a short distance while leaving orbiting stars that damage nearby enemies. Move 3 – Gravity Well Create a dense sphere that pulls enemies inward, slowing them and dealing steady damage before collapsing. The moves for Plasmic are as followed: Passive – Ion Overflow Dealing damage builds “charge.” At max charge, your next ability becomes overloaded, gaining extra damage and a chain effect to nearby enemies. Move 1 – Plasma Bolt Fire a fast-moving bolt of unstable plasma that pierces enemies and slightly explodes on impact. Move 2 – Arc Surge Release a burst of electric-plasma energy around you, chaining damage between nearby enemies. Move 3 – Reactor Bloom Deploy a pulsing plasma core that expands over time, damaging and knocking back enemies before detonating. The moves for Melodic are as followed: Passive – Harmonic Echo Using abilities builds “resonance.” At max resonance, your next ability echoes twice, repeating at reduced power or affecting a wider area. Move 1 – Sonic Wave Release a sharp soundwave forward that damages and briefly disorients enemies (minor slow or aim disruption). Move 2 – Rhythm Step Dash in sync with a beat, becoming briefly untouchable during the movement and leaving behind a pulse that damages nearby enemies. Move 3 – Crescendo Burst Build up sound energy in an area, then detonate it in a powerful blast that scales with how long it was charged. The moves for Time are as followed: Passive – Temporal Drift Moving or attacking builds “chronos energy.” At full charge, you briefly gain slowed incoming damage (everything feels faster around you) and your next ability gains an extra effect (recast, freeze, or rewind). Move 1 – Time Slice Strike forward with a blade of distorted time, hitting enemies and briefly slowing their actions. Move 2 – Rewind Step Teleport a short distance back to your previous position from a few seconds ago, restoring a small amount of health or stamina. Move 3 – Stasis Field Create a zone where time slows drastically for enemies inside it, reducing their movement and attack speed while lightly damaging them over time. The moves for Gravitoro as as followed: Passive – Gravitic Core Dealing damage builds “mass.” At max mass, you gain increased resistance and your next ability gains enhanced pull or knockback strength depending on the move used. Move 1 – Crush Pull Emit a gravity wave that pulls enemies toward you and briefly slows them as they collide or cluster. Move 2 – Heavy Step Stomp the ground, creating a localized gravity spike that roots nearby enemies and deals impact damage. Move 3 – Orbital Slam Lift enemies slightly into the air using gravitational force, then slam them down for heavy damage and a short stun. Remember, one move and the passive is unlocked when un-upgraded, and when upgraded , the second and third moves are gained, USE YOUR IMAGINATION!!
Kodari AI
KodariApr 23 at 3:09 am 34,546 (v2)

I’ll create a comprehensive elemental charm system with 10 unique charms, each with upgradeable abilities and passive effects.

ElementalCharms
A charm-based ability system featuring 10 unique elemental charms with upgradeable moves, passive abilities, and durability mechanics. Players spawn with a random charm that grants special powers, from Anemo's wind dashing to Time's temporal manipulation. Charms can be upgraded through crafting to unlock additional moves, and reroll tokens allow changing your charm type. Features include durability loss on death, healing through kills, and extensive particle effects for each ability.

Now I’ll continue creating the remaining files for the plugin:

Continuing with remaining move implementations and listeners…

Now creating the listener classes:

All files have been created for the ElementalCharms plugin. The plugin features:

  • 10 unique charms with distinct visual themes and abilities

  • Passive abilities that build stacks through combat

  • 3 moves per charm (1 base, 2 unlocked via upgrade)

  • Durability system - charms break after 5 deaths, heal on kills

  • Upgrade crafting - 2 netherite, 4 diamond blocks, 2 end crystals, 1 glowstone

  • Reroll tokens - 4 emerald blocks, 4 diamond blocks, 1 netherite ingot

  • Cooldown system for all abilities

  • Particle effects and sounds for each charm type

  • Fall damage immunity for Anemo charm

  • Cannot be dropped mechanic for charms

Players spawn with a random charm and can use abilities by right-clicking (move 1) or shift+right-clicking (move 3 when upgraded). All moves have unique effects matching their elemental theme.

always_koii

can you make it to where the abilities are used by commands? like /ability1 and /ability2, /ability3? Can you also add the /upgrade command?

Kodari AI
KodariApr 23 at 3:17 am 10,753 (v2)

I’ll read the project files to understand the current structure and then add ability commands and an upgrade command.

I’ll create the ability commands and upgrade command for you. Let me create the command classes and register them.

Done! I’ve added:

New Commands:

  • /ability1 (aliases: /ab1, /a1) - Use your first charm ability (always available)

  • /ability2 (aliases: /ab2, /a2) - Use your second charm ability (requires upgrade)

  • /ability3 (aliases: /ab3, /a3) - Use your third charm ability (requires upgrade)

  • /upgrade - Upgrade your charm from level 1 to level 2, unlocking abilities 2 and 3

Features:

  • All ability commands check if the player has a charm equipped

  • Abilities 2 and 3 require the charm to be upgraded first

  • The upgrade command upgrades both the charm item and player data

  • Added sound effect when upgrading

  • Added new config messages for locked abilities and already-upgraded charms

  • Each command has aliases for convenience

Players can now use /ability1, /ability2, and /ability3 to execute their charm’s abilities, and /upgrade to unlock the advanced abilities!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
33 2,601
src/main/java/com/elementalcharms/ElementalCharms.java
package com.elementalcharms;

import com.elementalcharms.charm.CharmManager;
import com.elementalcharms.data.PlayerDataManager;
import com.elementalcharms.listener.*;
import com.elementalcharms.move.MoveManager;
import com.elementalcharms.move.PassiveManager;
import com.elementalcharms.recipe.RecipeManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ElementalCharms extends JavaPlugin {
    
    private CharmManager charmManager;
    private PlayerDataManager playerDataManager;
    private MoveManager moveManager;
    private PassiveManager passiveManager;
    private RecipeManager recipeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.playerDataManager = new PlayerDataManager(this);
        this.charmManager = new CharmManager(this);
        this.passiveManager = new PassiveManager(this);
        this.moveManager = new MoveManager(this);
        this.recipeManager = new RecipeManager(this);
        
        registerListeners();
        registerCommands();
        recipeManager.registerRecipes();
        
        startAutoSave();
        
        getLogger().info("ElementalCharms has been enabled!");
    }
    
    @Override
    public void onDisable() {
        playerDataManager.saveAll();
        getLogger().info("ElementalCharms has been disabled!");
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DropListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DamageListener(this), this);
        Bukkit.getPluginManager().registerEvents(new InteractListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CraftListener(this), this);
    }
    
    private void registerCommands() {
        getCommand("charms").setExecutor(new com.elementalcharms.command.CharmsCommand(this));
        getCommand("ability1").setExecutor(new com.elementalcharms.command.Ability1Command(this));
        getCommand("ability2").setExecutor(new com.elementalcharms.command.Ability2Command(this));
        getCommand("ability3").setExecutor(new com.elementalcharms.command.Ability3Command(this));
        getCommand("upgrade").setExecutor(new com.elementalcharms.command.UpgradeCommand(this));
    }
    
    private void startAutoSave() {
        long interval = getConfig().getLong("settings.save-interval", 300) * 20L;
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, () -> {
            playerDataManager.saveAll();
        }, interval, interval);
    }
}