K

You must generate a COMPLETE Minecraft Paper 1.20 plugin + FULL resource pack.

You must ALSO explain everything step-by-step after the code.

Return in this order: 1) FULL Maven project source code 2) FULL resource pack structure 3) FULL explanation section

Plugin Name: CurseSMP Main Class: me.cursesmp.CurseSMP Java 17 + Maven + Paper 1.20

================================================== PROJECT STRUCTURE TO GENERATE ================================================== pom.xml src/main/java/me/cursesmp/... src/main/resources/plugin.yml src/main/resources/config.yml resourcepack/ (separate folder)

================================================== PLUGIN.YML ================================================== Commands: /start curse <weapon> /close /forceclose /giveweapon <player> <weapon> /giveallweapons <player> /weapongui

Permissions: cursesmp.admin cursesmp.start cursesmp.close cursesmp.give cursesmp.INVENTORY GUI

================================================== CONFIG OPTIONS ================================================== Ritual duration, cooldowns, bossbar, particles, sounds, damage values.

================================================== RITUAL SYSTEM — FULL CINEMATIC ==================================================

Start command: /start curse <weapon>

CINEMATIC PHASES:

  1. Players slowly float up (velocity + slow falling)
  2. Circular particles around players
  3. Title: Curse of SMP / Choosing Player
  4. Countdown 3-2-1 with bell sounds
  5. Random player selected (title shown once)
  6. Players slowly descend
  7. BossBar timer starts

HUNT SYSTEM: • Target gets permanent glowing • ActionBar shows LIVE coordinates every second • If target killed → killer becomes new target • If target leaves → random new target • Timer does NOT reset

Ritual works with even 1 player online.

================================================== WEAPON BASE ITEMS ================================================== Blood Bow → BOW Demon Blade → NETHERITE_SWORD Reaper Scythe → NETHERITE_HOE Storm Spear → TRIDENT Meteor Hammer → MACE Chaos Relic → NETHER_STAR

Use CustomModelData for detection.

================================================== WEAPON INVENTORY GUI ================================================== 27 slot INVENTORY GUI titled "Curse Weapons".

================================================== CURSE WEAPONS — FULL ABILITIES ==================================================

BLOOD HUNTER BOW Passive: Arrows apply BLEEDING (damage per second).

Shift+Right: Piercing Blood Arrow (hits 5 enemies).

Shift+Left: Wither Skull projectile.

Particles: REDSTONE + SMOKE + SOUL_FIRE Sound: Arrow + Wither Cooldown: 40s

DEMON BLADE Passive: Strength I + Fire Resistance + melee ignite.

Shift+Left: Huge Ghast Fireball explosion.

Particles: FLAME + LAVA + SMOKE Cooldown: 25s

REAPER SCYTHE Shift+Left: 10s invincible + Wither aura.

Particles: SOUL + SMOKE Cooldown: 8 minutes

STORM SPEAR Shift+Right: Lightning dash.

Shift+Left: Triple lightning strike.

Particles: ELECTRIC_SPARK + CLOUD Cooldown: 35s

METEOR HAMMER Shift+Left: Shockwave slam.

Shift+Right: Meteor from sky (50 hearts true damage).

Particles: EXPLOSION + LAVA Cooldown: 60s

CHAOS RELIC Passive: Speed II + Resistance I + Regeneration I.

Shift+Right: Teleport nearby players randomly + Blindness/Nausea.

Particles: PORTAL + DRAGON_BREATH Cooldown: 90s

ALL WEAPONS MUST INCLUDE FULL LORE.

================================================== ACTIONBAR ================================================== Show: • Ability cooldown countdown • Live target coordinates

================================================== BOSSBAR ================================================== Shows ritual timer countdown.

================================================== RESOURCE PACK ================================================== Generate models + textures using CustomModelData.

Explain how to host and apply resource pack.

================================================== EXPLANATION SECTION REQUIRED ================================================== Explain: • Project structure • Ritual logic • Cooldown system • Event listeners • Resource pack setup • How to compile and install plugin

Kodari AI
KodariFeb 27 at 3:57 pm 44,265 (v2)

I’ll create a complete CurseSMP plugin with full ritual system, curse weapons, and resource pack.

CurseSMP
A cinematic curse ritual plugin featuring dramatic floating ceremonies, target hunting mechanics with live coordinate tracking, and six unique curse weapons with powerful abilities. Includes blood arrows, demon fireballs, reaper invincibility, lightning strikes, meteor shockwaves, and chaos teleportation. Complete with custom model data integration, cooldown systems, boss bar timers, and actionbar updates for an immersive SMP experience.

Now I’ll create all the remaining plugin files:

Now I’ll create the resource pack structure:

Now I’ll create the comprehensive explanation document:


📚 COMPLETE EXPLANATION

Project Structure

The plugin follows a modular architecture with clear separation of concerns:

  • Main class (CurseSMP.java) initializes all managers and registers commands/listeners

  • Managers handle specific systems (weapons, abilities, rituals, hunts)

  • Listeners respond to events (player actions, damage, join/quit)

  • Commands provide admin/player interfaces

  • GUI offers visual weapon selection

Ritual Logic

The ritual uses a 3-phase BukkitRunnable that runs every tick:

  1. Phase 0 (Ascension): Players float up with slow falling + velocity, particles spawn in circles

  2. Phase 1 (Countdown): 3-2-1 countdown with bell sounds, random player selected

  3. Phase 2 (Descent): Players descend naturally, hunt starts when complete

The ritual is cancellable at any time and works with even 1 player online.

Cooldown System

Uses a nested HashMap structure:

Plain Text
Map<UUID, Map<String, Long>>
     │        │       └─ Cooldown end time (milliseconds)
     │        └─ Ability key (e.g., "blood_piercing")
     └─ Player UUID

Cooldowns are checked before ability execution and displayed via ActionBar.

Event Listeners

  • WeaponListener: Detects shift+click interactions, triggers abilities

  • PlayerListener: Handles join/quit for hunt target management

  • DamageListener: Detects target death, transfers target to killer

Resource Pack Setup

  1. Create 16x16 PNG textures for each weapon

  2. Place in resourcepack/assets/minecraft/textures/item/custom/

  3. ZIP the resourcepack folder

  4. Host on Dropbox/GitHub/web server

  5. Add direct download link to server.properties

  6. Generate SHA1 hash and add to server.properties

Compilation

Shell
mvn clean package

Produces target/CurseSMP.jar ready for deployment.

All files generated successfully! 🎉

Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
INSTALLATION_GUIDE.md
pom.xml
Code
40 3,030
src/main/java/me/cursesmp/CurseSMP.java
package me.cursesmp;

import lombok.Getter;
import me.cursesmp.abilities.AbilityManager;
import me.cursesmp.commands.*;
import me.cursesmp.hunt.HuntManager;
import me.cursesmp.listeners.DamageListener;
import me.cursesmp.listeners.PlayerListener;
import me.cursesmp.listeners.WeaponListener;
import me.cursesmp.ritual.RitualManager;
import me.cursesmp.weapons.WeaponManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CurseSMP extends JavaPlugin {
    
    private WeaponManager weaponManager;
    private RitualManager ritualManager;
    private HuntManager huntManager;
    private AbilityManager abilityManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.weaponManager = new WeaponManager(this);
        this.abilityManager = new AbilityManager(this);
        this.ritualManager = new RitualManager(this);
        this.huntManager = new HuntManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("CurseSMP has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (huntManager != null) {
            huntManager.endHunt();
        }
        if (ritualManager != null) {
            ritualManager.cancelRitual();
        }
        getLogger().info("CurseSMP has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("startcurse").setExecutor(new StartCurseCommand(this));
        getCommand("close").setExecutor(new CloseCommand(this));
        getCommand("forceclose").setExecutor(new ForceCloseCommand(this));
        getCommand("giveweapon").setExecutor(new GiveWeaponCommand(this));
        getCommand("giveallweapons").setExecutor(new GiveAllWeaponsCommand(this));
        getCommand("weapongui").setExecutor(new WeaponGUICommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new WeaponListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DamageListener(this), this);
    }
}