cloakout_
📎 1 file 2,857 chars
📄
pasted-code-1776539645635.txt
txt 25 lines
▶
I need a firework star that can use different abilities depending on what color it is.


Feedbacker (Regular Colour/Grey) gives a single use parry, the parry effect would be a burst backwards for both players with the windburst effect, the requirement to get it again is you have to kill a mob, also can kill players (SINGLE CHARGE | only activates if there is a charge and you are holding it in your main hand or off hand.)

Shift (White) would be swapping positions with the closest player upon a right click (3 sec cooldown but doesn't work over 30 blocks) (must be in main hand to use)

Boon (Pink) would be giving them permanent fire resistance, strength 2 and speed 2 as long as its swapped to that version in their inventory (have to have item in main/offhand slot for it to be active)

Embed (Blue) would freeze them in place until they get hit again by another player (would be better if it was player and not mob/starvation damage), to activate the owner of the star has to hit the player (has to be in main hand ONLY and hit a player with it for it to freeze them. the player should be able to fall down before freezing (so they aren't kicked for flying.). Freeze means they cannot move, jump, interact, or look around until another player hits them freeing them.)

Renew (Lime) would mend your armour fully at the cost of 50 exp levels (has to be in main hand ONLY and right clicked. if player does have levels it will let them do this and subtract 50 levels. if not nothing happens.)

Bleed (Red) is a siphon ability, when you right click it for the next 10 hits you get siphon from hits and an instant heal, 100 levels per use. (has to be in main hand ONLY and right clicked. if player does have levels it will let them do this and subtract 100 levels. if not nothing happens.)


Volatile Force (Black) can only be used through having 750 experience levels, it takes all the level away when its used by right clicking it and it instantly breaks all the armor of the people around and deals enough damage to kill them besides the player using it, replacing 25% percent of the ground with black concrete, black concrete powder and black wool in a noise pattern in a 25 block radius. (has to be in main hand ONLY and right clicked. if player does have levels it will let them do this and subtract 750 levels. if not nothing happens. 3 minute cooldown. player who activates is safe and stays alive with all armor. everyone else's breaks and they are killed.)


these are all firework stars but textures are based on colors.
DO NOT HAVE ANYTHING THAT INTERACTS WITH CHAT WHAT SO EVER. (no confirmations, no explaing nothing.)

have a /claim [star] command that lets you get the star in your inventory. must have op to use.

/help command that explains what each does. (THIS IS THE ONLY THING THAT CAN SAY SOMETHING IN CHAT.)
Kodari AI
KodariApr 18 at 7:19 pm 11,697 (v2)

I’ll create a firework star abilities plugin with seven different colored stars, each with unique powers.

FireworkStarAbilities
A unique combat and utility system using colored firework stars as ability items. Each color grants different powers: Feedbacker (gray) for parrying attacks, Shift (white) for position swapping, Boon (pink) for permanent buffs, Embed (blue) for freezing enemies, Renew (lime) for armor repair, Bleed (red) for life steal, and Volatile Force (black) for devastating area destruction. Features charge systems, cooldowns, and experience-based activation costs.

Plugin created successfully with all seven firework star abilities. Each colored star has unique powers with proper charge systems, cooldowns, and experience costs. The /claim <star> command requires OP permission, and /starhelp displays all abilities without any other chat interactions.

cloakout_

this is for 1.21.11 paper

Kodari AI
KodariApr 18 at 8:24 pm 1,725 (v2)

I’ll read the existing files to ensure they’re properly configured for Paper 1.21.1.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 784
src/main/java/com/fireworkstar/FireworkStarAbilities.java
package com.fireworkstar;

import com.fireworkstar.ability.AbilityManager;
import com.fireworkstar.command.ClaimCommand;
import com.fireworkstar.command.HelpCommand;
import com.fireworkstar.data.DataManager;
import com.fireworkstar.listener.StarListener;
import com.fireworkstar.star.StarManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FireworkStarAbilities extends JavaPlugin {
    private StarManager starManager;
    private AbilityManager abilityManager;
    private DataManager dataManager;
    
    @Override
    public void onEnable() {
        this.starManager = new StarManager(this);
        this.dataManager = new DataManager();
        this.abilityManager = new AbilityManager(this);
        
        Bukkit.getPluginManager().registerEvents(new StarListener(this), this);
        
        getCommand("claim").setExecutor(new ClaimCommand(this));
        getCommand("starhelp").setExecutor(new HelpCommand(this));
        
        Bukkit.getScheduler().runTaskTimer(this, abilityManager::tickBoonEffect, 0L, 20L);
    }
    
    @Override
    public void onDisable() {
        this.dataManager.clearAllData();
    }
}