Y

make the invisiblity on the planet venus

📎 2 files 5,058 chars
📄
pasted-code-1775157350850.txt
txt 70 lines
▶
Create a Minecraft Paper 1.21.x plugin called UnionSMP with the following complete features:

🌌 Core Features
On first join, assign each player one planet randomly.
Multiple players can have the same planet.
Save assignments in PersistentDataContainer or YAML.
Show title, chat message, and sound on planet assignment.
🪐 Planets & Abilities
Planets: Mercury, Venus, Earth, Mars, Saturn, Jupiter, Uranus, Neptune.
Each planet has 4 abilities:
Neutral Passive: always-active effect (e.g., Fire Resistance, invisibility)
Level 1 Ability: active offensive effect with cooldown
Level 2 Ability: active defensive effect with cooldown
Planet Passive: innate effect (e.g., Strength, Speed, Fire Resistance, no Slowness in lava)
Special Passives Examples:
Invisibility Planet/Gem: player is invisible + items/armor/offhand invisible
Fire Gem (Venus): Fire Resistance, no Slowness in lava
Mars Fire Gem: Neutral Fire Res, Offense Fire Reflect, Defense Fire Reflect, Planet passive Strength
⚡ Death-Based Planet State
Track planet state per player:
-3 = shattered
-2 → -1 = big cracks + chunks off
0 → 1 = small cracks
2 → 4 = intact, no cracks (start here)
5 = energized
💎 Gems System
Each gem has: Neutral passive, Level 1 offensive, Level 2 defensive, Planet inherent passive
Abilities trigger via right-click or special conditions
Cooldowns configurable in config.yml
🪄 Custom Items
Reroller Book: craftable item, right-click rerolls player’s planet
Recipe configurable
🛠 Commands
OP Only:
/setplanet   → assign planet
/setability   → assign ability
/unionsmp Test → test all systems, choose what to test
/unionsmp reset confirm → resets all planets, rerolls players
/unionsmp set all Planets  → test all planets on target player
Player Commands:
/plugininfo → shows planet, gem abilities, neutral passive, cooldowns
/UnionRecipe → shows/gives crafting recipes for custom items
✨ Advanced Custom Particles
Highly advanced, magical, smooth particle effects for planets, gems, and abilities
Shapes: spirals, rings, arcs, dragon trails, magic swirls, elemental streams (fire, ice, wind, lightning, void)
Particles follow the player without blocking view
Can combine multiple particle types for unique effects
Configurable parameters:
Duration, distance, shape, density, speed, rotation
Color, transparency, brightness, blending
Can change dynamically based on player state (energized, shattered, using ability, invisible)
Particles can orbit player or items or form rings, spheres, or helixes
Visibility options: self-only, nearby players, or everyone globally
Fully configurable via config.yml per planet, gem, and ability
⚙️ Configuration
All plugin features configurable:
Ability cooldowns and strengths
Gem levels and neutral passives
Planet state behavior
Particle settings and effects

✅ This plugin includes:

Full planet + gem system with neutral, level 1, level 2, and planet passives
Invisibility passive (player + items/armor/offhand)
Death-based planet states
Reroller book item
OP commands for testing, resetting, planet assignment
Player commands for info and recipes (/plugininfo, /UnionRecipe)
Fully customizable, advanced particle effects for abilities and planets
📄
pasted-code-1775157377275.txt
txt 25 lines
▶
🌟 Particle Features
Custom particle shapes: spirals, rings, arcs, dragon-like trails, magical swirls, elemental streams (fire, ice, wind, lightning, void).
Dynamic follow: particles follow the player smoothly without blocking their view.
Particle combination: allow multiple particle types to merge for unique effects.
Variable behavior:
Speed, rotation, density, spread, angle, and size are all configurable.
Color, transparency, brightness, and blending configurable.
Duration, lifetime, and visibility per particle effect configurable.
Conditional effects: can change based on player state (e.g., energized, damaged, using an ability, invisible).
Planet/Gem integration: assign unique particle effects per planet or gem, or per ability level.
Orbital & looping effects: particles can rotate around the player, orbit items, or form patterns like rings, spheres, or helixes.
Server performance optimization: use efficient schedulers/tick handling for smooth animations.
Visibility options: choose if particles are visible to the player only, all nearby players, or everyone globally.
⚙️ Configuration
Fully configurable via config.yml:
Particle type, color, shape, rotation, density, lifetime
Particle triggers (on ability use, on level up, on passive activation, or periodically)
Toggle effects for performance or for certain players only
🎨 Examples
Fire Gem: spiraling flame with sparks shooting outward, small trailing embers
Ice Gem: floating snowflake swirls with icy sparkles
Wind Gem: cloud rings and spirals moving behind player while jumping
Dragon-themed effect: spiraling particle stream with glowing embers like a dragon flying around

This should produce ultra-smooth, visually stunning, magical particle effects suitable for SMP abilities, planets, and gem powers, completely customizable for every player state and ability.
Kodari AI
KodariApr 2 at 7:27 pm 53,464 (v2)
UnionSMP
A planet-based SMP Minecraft plugin where each player is assigned a planet with unique passive effects and active abilities. Features 8 planets (Mercury through Neptune), Venus with invisibility passive making player and gear invisible, death-based planet state system (-3 shattered to +5 energized), gem items for ability activation, Reroller Book crafting, custom particle effects per planet, full command suite for admins and players, and YAML-based data persistence.
  • Planning 29 Java files across managers, listeners, commands, inventory GUI, particles, and items

  • Venus gets invisibility (neutral passive) + fire resistance (planet passive), invisibility naturally hides armor/items in 1.21

  • All abilities triggered via right-click on planet gem items; passive effects run on a scheduler every 20 ticks

All 29 Java files, 3 resource files, and build.gradle are created. Venus now has Invisibility as its neutral passive — the scheduler continuously re-applies the INVISIBILITY potion effect to Venus players (which in vanilla 1.21 automatically hides their armor, held items, and offhand), plus Fire Resistance as its planet passive and fire-based active abilities. The full system includes death-based planet state tracking (-3 shattered → +5 energized), gem items for ability activation (right-click = L1, sneak+right-click = L2), Reroller Book crafting (8 paper + 1 book), particle effects per planet (orbit rings, double helixes, rising spirals), and all requested commands.

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

import com.unionsmp.command.OpCommand;
import com.unionsmp.command.PlayerInfoCommand;
import com.unionsmp.command.UnionRecipeCommand;
import com.unionsmp.inventory.gui.GUIListener;
import com.unionsmp.inventory.gui.GUIManager;
import com.unionsmp.item.RerollerBook;
import com.unionsmp.listener.AbilityListener;
import com.unionsmp.listener.DeathListener;
import com.unionsmp.listener.PassiveListener;
import com.unionsmp.listener.PlayerJoinListener;
import com.unionsmp.manager.CooldownManager;
import com.unionsmp.manager.ParticleManager;
import com.unionsmp.manager.PlanetManager;
import com.unionsmp.manager.PlayerDataManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class UnionSMP extends JavaPlugin {

    private PlayerDataManager playerDataManager;
    private PlanetManager planetManager;
    private CooldownManager cooldownManager;
    private ParticleManager particleManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        playerDataManager = new PlayerDataManager(this);
        planetManager = new PlanetManager(this);
        cooldownManager = new CooldownManager();
        particleManager = new ParticleManager(this);
        guiManager = new GUIManager();
        registerCommands();
        registerListeners();
        registerRecipes();
        getLogger().info("UnionSMP enabled! 8 planets loaded.");
    }

    @Override
    public void onDisable() {
        particleManager.stopAll();
        playerDataManager.save();
        getLogger().info("UnionSMP disabled. Data saved.");
    }

    private void registerCommands() {
        OpCommand opCommand = new OpCommand(this);
        getCommand("setplanet").setExecutor(opCommand);
        getCommand("setability").setExecutor(opCommand);
        getCommand("unionsmp").setExecutor(opCommand);
        getCommand("plugininfo").setExecutor(new PlayerInfoCommand(this));
        getCommand("unionrecipe").setExecutor(new UnionRecipeCommand(this));
    }

    private void registerListeners() {
        PassiveListener passiveListener = new PassiveListener(this);
        passiveListener.startPassiveScheduler();
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new AbilityListener(this), this);
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        getServer().getPluginManager().registerEvents(passiveListener, this);
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
    }

    private void registerRecipes() {
        try {
            getServer().addRecipe(RerollerBook.getRecipe(this));
        } catch (Exception e) {
            getLogger().warning("Failed to register Reroller Book recipe: " + e.getMessage());
        }
    }
}