C

Create a Minecraft Paper 1.21.x plugin called "SolarInfuse" with these features:

๐ŸŒŒ CORE On first join, assign each player one planet randomly.

Multiple players can have the same planet. ๐Ÿช PLANETS & ABILITIES Mercury (Speed): Speed II, dash forward, yellow streak particles Venus (Fire): Fire resistance, ignite nearby enemies, flame particles Earth (Life): Regeneration I, heal self + allies, green particles Mars (Strength): Strength I, temporary Strength II, red dust particles Saturn (Gas): Slow falling, knockback gas burst, cloud rings Jupiter (Magnetism): Pull items/players, electric orbit particles Uranus (Ice): Frost walker, freeze nearby, snowflake particles Neptune (Wind): Jump boost, launch/glide, cloud + wind spiral particles โœจ PARTICLES Use advanced animations (rings, spirals, trails) per planet Smooth loops via schedulers ๐ŸŽฎ PLAYER SYSTEM Assign planet on first join Save in YAML or PersistentDataContainer Show title, chat, and sound on assignment ๐Ÿ›  COMMANDS OP only: /setplanet <player> <planet>, /resetplanet <player>, /giveplanet <player> <planet>, /reloadplugin Player: /plugininfo (shows planet and abilities) โš”๏ธ ABILITY SYSTEM Activate abilities by right-click Cooldowns with feedback (action bar or chat) ๐Ÿช„ CUSTOM ITEM Reroller: Craftable item Right-click rerolls the playerโ€™s planet randomly Add recipe in plugin andd add a player command: /rerollrecipe

Kodari AI
KodariApr 2 at 2:45 am 53,210 (v2)
SolarInfuse
A cosmic planet-assignment plugin where each player is randomly given a planet (Mercuryโ€“Neptune) with unique passive effects, active abilities, and animated particle auras. Features right-click ability activation with cooldowns, first-join planet ceremony with title/sound, persistent YAML storage, a craftable Planet Reroller item, and a visual recipe GUI. Admins can set, reset, and assign planets via commands. Every planet has its own particle signature โ€” rings, spirals, trails โ€” running on smooth async-safe schedulers.
  • 8 planets, each with potion passives, active abilities, particle animations, and a cooldown system

  • Full GUI framework for the recipe viewer, YAML persistence, and Admin + Player commands

  • Reroller item with custom recipe, PDC tag, and /rerollrecipe GUI command

All 22 files created โ€” SolarInfuse is fully assembled with 8 planets (Mercuryโ€“Neptune), each having potion passives, animated particle auras (rings/spirals/trails per planet via a 3-tick scheduler), right-click active abilities with cooldowns and action-bar feedback, first-join planet ceremony with MiniMessage title + sound + chat, YAML persistence, Uranus frost-walker via PlayerMoveEvent, Jupiter passive item pull, a craftable Nether Star reroller (EPE/PNP/EPE), a visual recipe GUI (/rerollrecipe), and full admin/player commands with tab completion.

C

okay now rename the plugin UnionSMP

Kodari AI
KodariApr 2 at 2:46 am 5,524 (v2)
  • Rename package com.solarinfuse โ†’ com.unionsmp via move tag (auto-updates all imports/references)

  • Rename main class SolarInfuse.java โ†’ UnionSMP.java via move tag

  • Update plugin.yml and build.gradle manually

All files have been renamed โ€” package moved to com.unionsmp, main class renamed to UnionSMP, plugin.yml updated with the new name and main class path, and build.gradle group updated accordingly.

C

Update UnionSMP plugin for Paper 1.21.x with these changes:

๐ŸŒŒ PLANET STATUSES -3 โ†’ Shattered -2 โ†’ -1 โ†’ Big cracks + small chunks off 0 โ†’ 1 โ†’ Small cracks 2 โ†’ 4 โ†’ Intact, no cracks 5 โ†’ Energized ๐ŸŒˆ PLANET COLORS Mercury โ†’ Dark gray Venus โ†’ Orange Earth โ†’ Green Mars โ†’ Red Saturn โ†’ White Jupiter โ†’ Purple Uranus โ†’ Blue Neptune โ†’ Grey ๐Ÿ›  COMMANDS /unionsmp start โ†’ Starts plugin for player /unionsmp <planet> give <player> โ†’ Give a planet /unionsmp reset confirm โ†’ OP-only, resets everything Enable tab-completion for all commands Show suggestions when typing commands โšก NOTES Keep previous features: planet abilities, particles, reroller item Make commands easy to type and tab-completable Make /unionsmp reset confirm OP-only and full reset

Kodari AI
KodariApr 2 at 2:55 am 25,794 (v2)

Let me read all the relevant files first.

Hereโ€™s my plan:

  • Add PlanetStatus utility (status int โ†’ descriptive label) and store status per-player in PlanetManager

  • Update Planet enum colors (Mercury=dark gray, Venus=orange, Saturn=white, Jupiter=purple, Uranus=blue, Neptune=grey) and display names

  • Create new UnionCommand handling /unionsmp start | <planet> give <player> | reset confirm with full tab-completion

  • Update plugin.yml and UnionSMP to register /unionsmp, keep old /rerollrecipe, /plugininfo etc. alongside

Update SolarCommand to also show planet status in /plugininfo, and update its tab-complete for the old commands (keeping them intact):

Now update UnionSMP.java to register the new /unionsmp command:

Finally update plugin.yml to add the unionsmp command and new permissions:

Hereโ€™s what changed:

  • Planet.java โ€” Updated all 8 planet colors to match the spec (Mercury=dark gray, Venus=orange, Saturn=white, Jupiter=purple, Uranus=blue, Neptune=grey) including both display MiniMessage tags and Bukkit Color values

  • PlanetStatus.java (new) โ€” Maps an integer status value to a styled Component label: โ‰ค-3=Shattered, -2/-1=Big cracks, 0/1=Small cracks, 2-4=Intact, โ‰ฅ5=Energized

  • PlanetManager.java โ€” Now stores and persists a status int per player alongside their planet; added getStatus(), setStatus(), and resetAll() (wipes everything)

  • UnionCommand.java (new) โ€” Handles /unionsmp start | <planet> give <player> | reset confirm with full tab-completion; reset confirm is OP/permission-gated

  • AbilityManager.java โ€” Added clearAllCooldowns() used by the full reset

  • SolarCommand.java โ€” /plugininfo now shows the playerโ€™s planet status line

  • UnionSMP.java โ€” Registers the new /unionsmp command alongside existing ones

  • plugin.yml โ€” Declares unionsmp command and unionsmp.reset permission

C

Update the SolarInfuse plugin so that:

Particles do not loop forever around the player.

Particle duration, distance, and visibility can be configured in config.yml.

Particles are visible but do not block or obscure the playerโ€™s view.

Keep all planets and abilities the same.

Kodari AI
KodariApr 2 at 2:58 am 7,110 (v2)
  • Add particle-duration-ticks, particle-orbit-radius, and particle-view-distance to config.yml

  • Modify ParticleManager to track per-player tick counts, auto-stop each playerโ€™s effect after the configured duration, then restart (burst cycle), and skip spawning if the player is too far from any other player or has their view obscured

  • Reduce default orbit radii and spawn counts slightly so particles orbit around the player without filling their FOV

What changed: Particles now run in configurable burst/cooldown cycles (default 60 ticks on, 40 ticks off) per player instead of looping forever; all orbit radii were tightened and particle counts reduced to stay out of the playerโ€™s FOV; a sendParticle helper sends particles to the owner always but limits other viewers to within particle-view-distance blocks; particle-duration-ticks, particle-cooldown-ticks, particle-radius-multiplier, and particle-view-distance are all exposed in config.yml.

C

make it work on mobs

Kodari AI
KodariApr 2 at 3:04 am 8,533 (v2)

Let me read the relevant files to understand the current ability/passive system.

The only ability thatโ€™s players-only when it shouldnโ€™t be is Uranus โ€” it checks instanceof Player instead of instanceof LivingEntity, so it never freezes mobs. All other offensive abilities (Venus, Saturn, Jupiter) already target LivingEntity/Entity.

Uranus now applies Slowness + Mining Fatigue to all nearby LivingEntity (mobs and players alike), and only sends the action bar message when the target is a player.

C

and add on more command for /unionsmp TEST it tests everything to make sure it works and u can choose what to test like the ability the particles, dying everything

C

make all the abilitys a echo shard

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
23 2,115
src/main/java/com/unionsmp/UnionSMP.java
package com.unionsmp;

import com.cryptomorin.xseries.XMaterial;
import com.unionsmp.command.SolarCommand;
import com.unionsmp.command.UnionCommand;
import com.unionsmp.inventory.gui.GUIListener;
import com.unionsmp.inventory.gui.GUIManager;
import com.unionsmp.listener.AbilityListener;
import com.unionsmp.listener.JoinListener;
import com.unionsmp.listener.UranusListener;
import com.unionsmp.manager.AbilityManager;
import com.unionsmp.manager.ParticleManager;
import com.unionsmp.manager.PassiveManager;
import com.unionsmp.manager.PlanetManager;
import com.unionsmp.util.ItemUtil;
import lombok.Getter;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

@Getter
public class UnionSMP extends JavaPlugin {

    private PlanetManager planetManager;
    private AbilityManager abilityManager;
    private ParticleManager particleManager;
    private PassiveManager passiveManager;
    private GUIManager guiManager;
    private NamespacedKey rerollerKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        rerollerKey = new NamespacedKey(this, "reroller");

        planetManager = new PlanetManager(this);
        abilityManager = new AbilityManager(this);
        particleManager = new ParticleManager(this);
        passiveManager = new PassiveManager(this);
        guiManager = new GUIManager();

        planetManager.load();
        particleManager.start();
        passiveManager.start();

        getServer().getPluginManager().registerEvents(new JoinListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new UranusListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        registerCommands();
        registerRerollerRecipe();

        getLogger().info("UnionSMP has ignited! โ˜€");
    }

    @Override
    public void onDisable() {
        if (planetManager != null) planetManager.save();
        if (particleManager != null) particleManager.stop();
        if (passiveManager != null) passiveManager.stop();
        getLogger().info("UnionSMP has gone dark.");
    }

    private void registerCommands() {
        SolarCommand cmd = new SolarCommand(this);
        Objects.requireNonNull(getCommand("setplanet")).setExecutor(cmd);
        Objects.requireNonNull(getCommand("setplanet")).setTabCompleter(cmd);
        Objects.requireNonNull(getCommand("resetplanet")).setExecutor(cmd);
        Objects.requireNonNull(getCommand("resetplanet")).setTabCompleter(cmd);
        Objects.requireNonNull(getCommand("giveplanet")).setExecutor(cmd);
        Objects.requireNonNull(getCommand("giveplanet")).setTabCompleter(cmd);
        Objects.requireNonNull(getCommand("reloadplugin")).setExecutor(cmd);
        Objects.requireNonNull(getCommand("plugininfo")).setExecutor(cmd);
        Objects.requireNonNull(getCommand("rerollrecipe")).setExecutor(cmd);

        UnionCommand ucmd = new UnionCommand(this);
        Objects.requireNonNull(getCommand("unionsmp")).setExecutor(ucmd);
        Objects.requireNonNull(getCommand("unionsmp")).setTabCompleter(ucmd);
    }

    private void registerRerollerRecipe() {
        ItemStack reroller = ItemUtil.createReroller(this);
        if (reroller == null) return;

        NamespacedKey recipeKey = new NamespacedKey(this, "reroller_recipe");

        Material enderPearl = XMaterial.matchXMaterial("ENDER_PEARL")
                .map(XMaterial::parseMaterial).orElse(null);
        Material blazePowder = XMaterial.matchXMaterial("BLAZE_POWDER")
                .map(XMaterial::parseMaterial).orElse(null);
        Material netherStar = XMaterial.matchXMaterial("NETHER_STAR")
                .map(XMaterial::parseMaterial).orElse(null);

        if (enderPearl == null || blazePowder == null || netherStar == null) return;

        ShapedRecipe recipe = new ShapedRecipe(recipeKey, reroller);
        recipe.shape("EPE", "PNP", "EPE");
        recipe.setIngredient('E', enderPearl);
        recipe.setIngredient('P', blazePowder);
        recipe.setIngredient('N', netherStar);
        getServer().addRecipe(recipe);
    }
}