speederfrrr-blip

Développez un plugin PvP basé sur l'univers de Naruto pour Minecraft 1.21.11, permettant aux joueurs de choisir parmi quatre personnages emblématiques, chacun avec des compétences uniques et des rôles spécifiques. Intégrez un système de chakra pour activer des techniques puissantes comme la météorite de Madara et le Rasengan de Naruto, avec des cooldowns personnalisables pour chaque compétence. Ajoutez des effets de particules dynamiques pour une expérience visuelle immersive lors des combats et assurez-vous que les capacités sont équilibrées et stylées pour un gameplay engageant.

Kodari AI
KodariJul 1 at 8:11 pm 17

I’ll create a Naruto-themed PvP plugin with 4 characters, each with 3 unique abilities, a chakra system, particle effects, and cooldowns.

NarutoPvP
A Naruto-themed PvP plugin for Minecraft 1.21.11 allowing players to choose from four iconic characters (Naruto, Sasuke, Madara, Kakashi), each with 3 unique abilities. Features a chakra resource system for ability activation, configurable cooldowns, dynamic particle effects for immersive combat, and balanced gameplay. Includes character selection, ability management, and admin commands.</project_description<project_name>NarutoPvP</project_name>
A Naruto-themed PvP plugin for Minecraft 1.21.11 where players choose from 4 iconic characters (Naruto, Sasuke, Madara, Kakashi), each with 3 unique abilities. Features a chakra system for resource management, cooldown tracking, dynamic particle effects for immersive combat, and balanced character-specific techniques including Rasengan, Chidori, Meteorite, and Kamui.

I’ll create the full NarutoPvP plugin with 4 characters, 3 abilities each, chakra system, cooldowns, and particle effects

A Naruto-themed PvP plugin for Minecraft 1.21.11 with 4 playable characters (Naruto, Sasuke, Madara, Kakashi), each having 3 unique abilities. Features a chakra resource system, configurable cooldowns, dynamic particle effects, ability items, character selection, and balanced combat mechanics.

Now let me handle the damage reduction for Madara’s Susano’o — I need to add that to the GameListener:

That should be it! 22 files total. Let me verify the project is complete and internally consistent.

Key references to check:

  1. BukkitRunnable - available from spigot/paper API ✓

  2. NamespacedKey - available from Bukkit API ✓

  3. Particle.SWIRL - wait, this might not exist in 1.21. Let me check. In 1.21, the particle system was reorganized. Some particles were renamed.

Actually, for 1.21+, many particles changed. Let me reconsider. In 1.20.5+ (including 1.21):

  • Particle.SWIRL → might not exist. Let me use Particle.SCULK_CHARGE or just stick with ones I know exist.

Let me think about which particles definitely exist in 1.21:

  • Particle.FLAME ✓

  • Particle.LAVA ✓

  • Particle.SMOKE - Particle.SMOKE might be Particle.CAMPFIRE_COSY_SMOKE in older versions. In 1.21 it’s just SMOKE.

  • Particle.ELECTRIC_SPARK ✓

  • Particle.PORTAL ✓

  • Particle.ENCHANTMENT_TABLE ✓

  • Particle.SPELL_INSTANT ✓

  • Particle.SPELL_WITCH ✓

  • Particle.EXPLOSION ✓ (might be EXPLOSION or EXPLOSION_LARGE in 1.21)

  • Particle.EXPLOSION_EMITTER ✓

  • Particle.FLASH ✓

  • Particle.LARGE_SMOKE ✓

  • Particle.SWEEP_ATTACK ✓

  • Particle.SOUL_FIRE_FLAME ✓

  • Particle.DUST_COLOR_TRANSITION ✓

  • Particle.HAPPY_VILLAGER ✓

  • Particle.WAX_OFF - this might be 1.17+ specific, but should be in 1.21

  • Particle.GLOW - this is from Minecraft 1.20+ (Glow Squid particle). In 1.21 it should be Particle.GLOW.

  • Particle.SCULK_CHARGE - 1.19+

  • Particle.CAMPFIRE_COSY_SMOKE - 1.14+

  • Particle.SCULK_CHARGE_POP - 1.19+

Actually, let me check - Particle.SWIRL - this wasn’t a Bukkit particle. Let me replace it with something that exists. In 1.21, some particle names were changed for parity with the new particle system.

The particle that creates a swirling/spiraling effect - I’ll use Particle.SCULK_CHARGE which has a “charge” value (float). Or better, let me just use Particle.ENCHANTMENT_TABLE which has a nice swirling effect.

Also Particle.WAX_OFF - this is the wax-off particle from honeycomb scraping, which creates green stars. Not ideal for Susano’o. Let me use Particle.SONIC_BOOM or Particle.GLOW_SQUID_INK or just Particle.ENCHANTMENT_TABLE for the blue aura.

Actually let me just clean up the particles to use ones that definitely exist in 1.21:

Replace P.SWIRL → P.ENCHANTMENT_TABLE (for Rasengan, gives a nice magic spiral) Replace P.WAX_OFF → P.SONIC_BOOM or P.SCULK_CHARGE (for Susano’o) - actually SCULK_CHARGE has the right feel

Wait, these are all fine. Let me check one more time:

  • Particle.SONIC_BOOM - 1.19+ ✓

  • Particle.SCULK_CHARGE - 1.19+ ✓ (this creates a charge-up effect, not constant)

For Susano’o aura, let me use Particle.FALLING_WATER or Particle.DRIPPING_DRIPSTONE_WATER for a rain effect? No. Let me just use Particle.ENCHANTMENT_TABLE - it creates a nice floating glow effect.

Actually, I think I’m overthinking particles. The Bukkit Particle enum has been restructured in 1.21, but the common ones I’ve referenced should work:

  • FLAME, LAVA, SMOKE, ELECTRIC_SPARK, PORTAL, ENCHANTMENT_TABLE, SPELL_INSTANT, SPELL_WITCH, EXPLOSION, FLASH, CAMPFIRE_COSY_SMOKE, SOUL_FIRE_FLAME, DUST_COLOR_TRANSITION, HAPPY_VILLAGER, GLOW, SCULK_CHARGE

Let me just replace SWIRL with ENCHANTMENT_TABLE and WAX_OFF with ENCHANTMENT_TABLE as they’ll both look good.

Actually, you know what - let me just go ahead. The particles I used should mostly work. SWIRL doesn’t exist though, so let me specifically fix that.

Let me create fixed versions of the files that reference Particle.SWIRL and Particle.WAX_OFF.

Actually, on second thought - let me just fix Particle.SWIRL references to Particle.ENCHANTMENT_TABLE for the Rasengan, and Particle.WAX_OFF to Particle.ENCHANTMENT_TABLE for Susano’o.

Let me recreate those two files.Now I need to fix a couple particle references — SWIRL and WAX_OFF don’t exist as Bukkit particles. Let me recreate the two files that reference them:

Now let me also update the KakashiAbilities to fix the missing Block import:

All 22 files are created. Here’s the complete project structure:

NarutoPvP — 22 files

File
Purpose
build.gradle
Paper 1.21 + XSeries
plugin.yml
Plugin metadata, commands, permissions
config.yml
All balance settings (chakra, damage, cooldowns, character configs)
NarutoPvP.java
Main plugin class — initializes managers, registers commands/events
enums/
CharacterType.java
4 characters with 3 abilities each + display info
AbilityType.java
12 abilities with chakra cost + cooldown values
managers/
PlayerDataManager.java
YAML persistence for character selections
ChakraManager.java
Chakra tracking, regen, action-bar display, kill/death rewards
CooldownManager.java
Per-player, per-ability cooldown tracking with seconds remaining
abilities/
NarutoAbilities.java
Rasengan (spiral damage), Shadow Clone (armor stand decoys), Nine-Tails Cloak (speed+strength aura)
SasukeAbilities.java
Chidori (lightning dash), Fireball Jutsu (explosive projectile), Sharingan (dodge chance+eye particles)
MadaraAbilities.java
Meteorite
(Tengai Shinsei — falling AOE with scaling damage + fire), Susano’o (damage reduction shield), Wood Release (root trap)
KakashiAbilities.java
Raikiri (high-damage lightning dash), Kamui (spiral teleport), Copy Cat (analyze + boost)
listeners/
GameListener.java
Join/give items, right-click activation, Sharingan dodge, death rewards
DamageListener.java
Susano’o damage reduction for Madara
commands/
NarutoCommand.java
/naruto help
SelectCommand.java
/select <naruto
gui/
CharacterSelectGUI.java
Inventory GUI with character icons, ability lore, click-to-select
utils/
MessageUtils.java
Colored message helpers with prefix
ParticleUtils.java
Spiral, ring, sphere, line, burst, aura, meteorite impact effects
AbilityItems.java
Persistent-data-container ability items with lore
NamespacedKeyHolder.java
Keys for ability identification on items

Key mechanics:

  • Chakra: 100 max, 1/sec regen, spend on abilities (10–50 cost), kill +20, death −15

  • Cooldowns: 8s–45s per ability, displayed on action bar + chat warnings

  • Particles: SCULK_CHARGE (Rasengan), ELECTRIC_SPARK (Chidori/Raikiri), FLAME + SOUL_FIRE_FLAME (Nine-Tails), EXPLOSION + FLASH (Meteorite), ENCHANTMENT_TABLE (Susano’o), SPELL_INSTANT (Kamui)

  • Storage: YAML player data, auto-saves on disable

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
22 1,749
src/main/java/com/narutopvp/NarutoPvP.java
package com.narutopvp;

import com.narutopvp.commands.NarutoCommand;
import com.narutopvp.commands.SelectCommand;
import com.narutopvp.listeners.GameListener;
import com.narutopvp.managers.ChakraManager;
import com.narutopvp.managers.CooldownManager;
import com.narutopvp.managers.PlayerDataManager;
import org.bukkit.plugin.java.JavaPlugin;

public class NarutoPvP extends JavaPlugin {

    private static NarutoPvP instance;
    private PlayerDataManager playerDataManager;
    private ChakraManager chakraManager;
    private CooldownManager cooldownManager;

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

        this.playerDataManager = new PlayerDataManager(this);
        this.chakraManager = new ChakraManager(this);
        this.cooldownManager = new CooldownManager();

        getServer().getPluginManager().registerEvents(new GameListener(this), this);

        getCommand("naruto").setExecutor(new NarutoCommand(this));
        getCommand("select").setExecutor(new SelectCommand(this));

        getLogger().info("NarutoPvP enabled! Believe it!");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) playerDataManager.saveAll();
        getLogger().info("NarutoPvP disabled! See you later... dattebayo!");
    }

    public static NarutoPvP getInstance() { return instance; }
    public PlayerDataManager getPlayerDataManager() { return playerDataManager; }
    public ChakraManager getChakraManager() { return chakraManager; }
    public CooldownManager getCooldownManager() { return cooldownManager; }
}