Md Siyam

ULTIMATE NETHER STAR WEAPONS — Minecraft Plugin Development Prompt

1. Project Overview

Create a complete, professional, production-ready Minecraft Java Edition plugin called UltimateStarWeapons.

The main concept is a powerful Nether Star-based custom weapon system. Players can use Nether Stars to unlock, craft, and obtain eight different legendary Star Weapons.

Each weapon must have unique abilities, custom names, enchantments, particle effects, sounds, cooldowns, and special combat mechanics.

The plugin must be fully functional, polished, configurable, optimized, and ready for use on a Minecraft survival SMP server.

Technical Requirements:

  • Plugin Name: UltimateStarWeapons
  • Platform: Paper / Spigot
  • Target Version: Minecraft Java 1.21.4
  • Programming Language: Java 21
  • Build System: Maven
  • API: Paper API
  • Dependencies: No mandatory external plugins
  • Configuration: config.yml, messages.yml, weapons.yml
  • All custom weapons must work in survival and multiplayer.

2. Main Nether Star System

The Nether Star is the main currency and crafting material for the entire plugin.

Players can obtain regular Nether Stars by defeating the Wither or through normal Minecraft gameplay.

Star Weapon Forge

Create a special custom block called the Star Forge.

Players can interact with the Star Forge to open a custom weapon selection GUI.

Forge Mechanics:

  1. A player obtains a Nether Star.
  2. The player crafts or receives a Star Forge.
  3. The player places the Star Forge on the ground.
  4. Right-clicking the Star Forge opens the Star Weapons GUI.
  5. The GUI displays eight legendary weapons.
  6. Players select a weapon to see its crafting requirements.
  7. Players spend Nether Stars and additional materials to create their selected weapon.
  8. The player receives the corresponding custom weapon.

The GUI must not give free weapons unless the player has administrator permission.

Use PersistentDataContainer to identify custom Star Forges and weapons securely.

3. Eight Legendary Star Weapons

Create exactly eight unique weapons and tools.

Weapon 1: Star Sword

Item: Netherite Sword

Display Name: &b&l✦ STAR SWORD ✦

Abilities:

  • Star Slash: Right-click to release a powerful energy slash.
  • Deal additional damage to nearby enemies in front of the player.
  • Critical hits create blue star particles.
  • Special attacks play magical sounds.
  • Cooldown: 12 seconds.
  • Bonus attack damage: +4.

Weapon 2: Star Battle Axe

Item: Netherite Axe

Display Name: &c&l✦ STAR BATTLE AXE ✦

Abilities:

  • Star Breaker: Right-click to unleash a powerful area attack.
  • Damage nearby hostile mobs and enemy players.
  • Apply Slowness for 3 seconds.
  • Create red particle effects.
  • Cooldown: 18 seconds.
  • Bonus attack damage: +5.

Weapon 3: Star Bow

Item: Bow

Display Name: &d&l✦ STAR BOW ✦

Abilities:

  • Star Arrow: Fully charged arrows create glowing trails.
  • Direct hits deal additional magical damage.
  • Sneak + right-click toggles Explosive Star Arrow mode.
  • Explosive arrows damage entities without destroying terrain.
  • Cooldown for explosive arrows: 15 seconds.
  • Use normal arrows unless Infinity is applied.

Weapon 4: Star Hammer

Item: Netherite Pickaxe with a custom hammer identity

Display Name: &6&l✦ STAR HAMMER ✦

Abilities:

  • Meteor Smash: Right-click to create a shockwave.
  • Damage enemies within a configurable radius.
  • Knock nearby enemies backward.
  • Create explosion particles without damaging blocks.
  • Cooldown: 20 seconds.
  • Bonus attack damage: +6.

Weapon 5: Star Mace

Item: Mace

Display Name: &5&l✦ STAR MACE ✦

Abilities:

  • Falling Star: Enhance successful falling smash attacks.
  • Generate purple star particles when landing a smash.
  • Deal additional damage based on fall distance, with a configurable cap.
  • Apply brief Weakness to affected enemies.
  • Cooldown: 20 seconds.
  • Prevent unintended fall-damage exploits.

Weapon 6: Star Pickaxe

Item: Netherite Pickaxe

Display Name: &e&l✦ STAR PICKAXE ✦

Abilities:

  • Star Miner: Sneak + right-click toggles 3×3 mining mode.
  • Mine eligible blocks in a 3×3 area.
  • Respect normal mining restrictions and tool durability.
  • Automatically collect drops when enabled in configuration.
  • Create yellow particle effects.
  • Never bypass protected regions or block-break restrictions.

Weapon 7: Star Crossbow

Item: Crossbow

Display Name: &a&l✦ STAR CROSSBOW ✦

Abilities:

  • Star Burst: Fire a special burst of three projectiles.
  • Each projectile creates green star particles.
  • Apply a configurable damage multiplier.
  • Cooldown: 16 seconds.
  • Respect normal ammunition rules.

Weapon 8: Star Trident

Item: Trident

Display Name: &3&l✦ STAR TRIDENT ✦

Abilities:

  • Thunder Star: Summon a visual lightning effect when a thrown trident hits an enemy.
  • Deal additional lightning-themed damage without unwanted fire or block damage.
  • Create cyan particle effects.
  • Cooldown: 25 seconds.
  • Support vanilla Loyalty and Riptide mechanics without duplication bugs.

4. Custom Star Forge GUI

Create a professional 54-slot inventory GUI.

GUI Title: &8✦ &b&lULTIMATE STAR FORGE &8✦

GUI Layout:

  • Slots 10–16: First seven Star Weapons.
  • Slot 22: Eighth Star Weapon.
  • Slot 31: Nether Star currency information.
  • Slot 40: Crafting instructions.
  • Slot 49: Close button.
  • Remaining slots: Decorative glass panes.

Each weapon icon must display:

  • Weapon name
  • Weapon type
  • Special abilities
  • Required materials
  • Nether Star cost
  • Cooldown
  • Crafting availability

GUI Behavior:

  • Left-click a weapon to preview its abilities.
  • Shift + left-click to attempt crafting.
  • Show a confirmation menu before consuming materials.
  • Prevent item stealing, duplication, and shift-click exploits.
  • Update the GUI after successful crafting.
  • Show clear messages when materials are insufficient.

5. Weapon Crafting System

Each weapon requires Nether Stars and a base item.

Default crafting requirements:

| Weapon | Nether Stars | Base Item | |---|---:|---| | Star Sword | 3 | Netherite Sword | | Star Battle Axe | 3 | Netherite Axe | | Star Bow | 2 | Bow | | Star Hammer | 4 | Netherite Pickaxe | | Star Mace | 5 | Mace | | Star Pickaxe | 3 | Netherite Pickaxe | | Star Crossbow | 2 | Crossbow | | Star Trident | 4 | Trident |

Additional configurable materials may be required.

All crafting must use the Star Forge GUI.

The plugin must:

  • Check player inventory.
  • Validate required materials.
  • Consume the correct amount.
  • Create exactly one weapon.
  • Preserve data safely.
  • Prevent duplication through inventory exploits.

6. Custom Weapon Visual Design

Each weapon must have:

  • Unique colored display name.
  • Beautiful custom lore.
  • Legendary rarity description.
  • CustomModelData support for optional resource packs.
  • Enchantment glint where supported.
  • Unique particle effects.
  • Special sound effects.
  • Configurable attack attributes.
  • Clearly displayed ability cooldown.

Example weapon lore:

&8━━━━━━━━━━━━━━━━━━━━

&b✦ Legendary Star Weapon

&7Forged with the power of

&7the ancient Nether Star.

&eAbility: &fStar Slash

&eCooldown: &f12 Seconds

&8━━━━━━━━━━━━━━━━━━━━

&6✦ ULTIMATE STAR WEAPONS ✦

Use modern Adventure components or compatible APIs where appropriate.

7. Commands and Permissions

Implement the following commands:

Player Commands:

  • /starweapons — Open the Star Forge GUI if allowed.
  • /starweapons help — Display available commands.
  • /starweapons info — Show plugin information.
  • /starweapons recipes — Show crafting recipes.

Administrator Commands:

  • /starweapons give <player> <weapon> [amount]
  • /starweapons giveforge <player> [amount]
  • /starweapons reload
  • /starweapons list

Permissions:

  • starweapons.use
  • starweapons.craft
  • starweapons.ability
  • starweapons.admin
  • starweapons.give
  • starweapons.reload

Support tab completion for all commands.

8. Configuration System

Create fully functional YAML configuration files.

config.yml

  • Enable or disable individual weapons.
  • Enable or disable abilities.
  • Adjust ability cooldowns.
  • Configure particle effects.
  • Configure sounds.
  • Configure damage multipliers.
  • Enable or disable PvP abilities.
  • Set Star Forge crafting requirements.
  • Set mining limits.
  • Configure GUI behavior.

weapons.yml

  • Weapon names.
  • Weapon descriptions.
  • Crafting costs.
  • Base materials.
  • Ability values.
  • CustomModelData.
  • Particle colors.
  • Special effects.

messages.yml

  • Customizable prefix.
  • Weapon crafted successfully.
  • Not enough Nether Stars.
  • Not enough materials.
  • Ability cooldown.
  • No permission.
  • Inventory full.
  • Forge opened.
  • Reload successful.

Support Minecraft color codes and MiniMessage where appropriate.

9. Multiplayer and Survival Support

The plugin must work properly on survival SMP servers.

Important requirements:

  • All abilities must work in multiplayer.
  • PvP damage must be configurable.
  • Respect friendly-fire restrictions.
  • Prevent item duplication.
  • Prevent weapon abilities from bypassing protections.
  • Support vanilla enchantments.
  • Support normal item durability.
  • Handle player death and item dropping correctly.
  • Prevent abilities from activating inside protected areas where actions are denied.
  • Avoid unnecessary server lag.

10. Security and Performance

Use reliable Java coding practices.

  • Use PersistentDataContainer for identifying custom items.
  • Never identify custom weapons using display names alone.
  • Store cooldowns using player UUIDs and weapon ability identifiers.
  • Never perform Bukkit world modifications asynchronously.
  • Avoid expensive repeated entity scans.
  • Clean up temporary data appropriately.
  • Validate inventory contents before crafting.
  • Handle full inventories safely.
  • Prevent crafting transaction duplication.
  • Validate all player and administrator inputs.
  • Handle reloads without breaking existing items.
  • Do not use unsupported or removed API methods.

11. Star Forge Crafting Recipe

Create a configurable shaped crafting recipe for the Star Forge.

Default recipe:

N D N

O S O

N D N

Where:

  • N = Netherite Ingot
  • D = Diamond Block
  • O = Obsidian
  • S = Nether Star

The output should be one custom Star Forge item.

Use a suitable vanilla block material as the placed forge block, such as a Smithing Table.

Track placed custom forge locations persistently so normal Smithing Tables do not become Star Forges.

When a Star Forge is broken, properly remove its stored location and return the custom item according to configuration.

12. Complete Project Deliverables

Generate a complete Maven Java plugin project with:

  1. Main plugin Java class.
  2. Separate weapon manager.
  3. Star Forge manager.
  4. GUI manager and inventory event listeners.
  5. Weapon ability handlers.
  6. Cooldown manager.
  7. Crafting manager.
  8. Command handler and tab completer.
  9. Configuration manager.
  10. All required event listeners.
  11. plugin.yml.
  12. config.yml.
  13. weapons.yml.
  14. messages.yml.
  15. pom.xml.
  16. README.md with setup instructions.

Provide the full Java source code for every required class.

Do not provide pseudocode, placeholders, unfinished methods, or incomplete implementations.

Ensure that the Maven project can be compiled using:

mvn clean package

Explain where the generated JAR will be located and how to install it in the server's plugins folder.

13. Final Quality Requirements

The plugin must be:

  • Fully functional.
  • Survival friendly.
  • Multiplayer compatible.
  • Visually impressive.
  • Configurable.
  • Secure against common exploits.
  • Performance optimized.
  • Compatible with Minecraft Paper 1.21.4.
  • Easy to install.
  • Easy to maintain.
  • Ready for testing on a real Minecraft server.

All eight Star Weapons must have functional abilities, not just renamed vanilla items.

IMPORTANT FINAL INSTRUCTION:

Build the entire UltimateStarWeapons plugin as a complete, compilable, production-quality Minecraft Java plugin project. Implement every system described above with real working code. Do not skip any classes, commands, listeners, configuration files, crafting mechanics, or weapon abilities. If the response is too long, continue delivering the remaining source files until the complete project is provided. Prioritize correct, secure, functional code over unnecessary explanations.

Kodari AI
KodariOct 28 at 6:59 am 2
UltimateStarWeapons
UltimateStarWeapons is a comprehensive Paper/Spigot plugin for Minecraft 1.21.4 that introduces a Nether Star-based legendary weapon system. Players collect Nether Stars and use a custom Star Forge block to craft eight unique weapons, each with distinct abilities, particle effects, sounds, and cooldowns. The plugin features a 54-slot GUI for weapon selection and crafting, persistent data storage for custom items, a configurable crafting system, and full command and permission support. It includes a Star Forge crafting recipe, cooldown management, PvP protection, and performance optimizations. All weapons are fully functional in survival and multiplayer, with configurable damage, cooldowns, and effects via YAML configuration files.
  1. Build the Maven/Paper project structure and configurable weapon definitions.

  2. Implement forge tracking, crafting transactions, and the protected GUI flow.

  3. Add commands, cooldowns, and all eight weapon ability handlers.

  4. Add plugin metadata and installation/setup documentation.

Created the UltimateStarWeapons Maven project for Paper 1.21.4, including all eight PDC-identified weapons, configurable abilities and cooldowns, the persistent Star Forge, confirmation-based crafting GUI, commands, and YAML configuration files. README.md contains setup instructions.

To install the JAR:

  1. Click Compile in the desktop top bar, or on phone tap ⋮ → Compile Project.

  2. Click Compile in the window.

  3. When it succeeds, click Download, place UltimateStarWeapons.jar in the server’s plugins folder, and restart the server.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
README.md
Code
18 1,734
src/main/java/com/kodari/ultimatestarweapons/UltimateStarWeaponsPlugin.java
package com.kodari.ultimatestarweapons;

import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class UltimateStarWeaponsPlugin extends JavaPlugin {
    private ConfigurationManager configuration;
    private MessageService messages;
    private WeaponManager weapons;
    private CraftingManager crafting;
    private GUIManager gui;
    private StarForgeManager forges;
    private CooldownManager cooldowns;
    private AbilityManager abilities;
    private NamespacedKey weaponKey;
    private NamespacedKey forgeKey;
    private NamespacedKey projectileKey;
    private NamespacedKey explosiveKey;

    @Override
    public void onEnable() {
        configuration = new ConfigurationManager(this);
        configuration.reload();
        messages = new MessageService(configuration);
        weaponKey = new NamespacedKey(this, "star_weapon");
        forgeKey = new NamespacedKey(this, "star_forge");
        projectileKey = new NamespacedKey(this, "star_projectile");
        explosiveKey = new NamespacedKey(this, "explosive_star_arrow");
        weapons = new WeaponManager(this, configuration, messages);
        crafting = new CraftingManager(configuration, weapons);
        gui = new GUIManager(this, configuration, messages, weapons, crafting);
        forges = new StarForgeManager(this, configuration, weapons, gui);
        cooldowns = new CooldownManager();
        abilities = new AbilityManager(this, configuration, messages, weapons, cooldowns);
        Bukkit.getPluginManager().registerEvents(new WeaponListener(forges, gui, abilities), this);

        StarWeaponsCommand command = new StarWeaponsCommand(this);
        getCommand("starweapons").setExecutor(command);
        getCommand("starweapons").setTabCompleter(command);
        Bukkit.getScheduler().runTaskTimer(this, cooldowns::cleanup, 1200L, 1200L);
        getLogger().info("UltimateStarWeapons enabled.");
    }

    @Override
    public void onDisable() {
        if (forges != null) forges.save();
    }

    public void reloadPluginConfiguration() {
        configuration.reload();
        forges.registerRecipe();
    }

    public ConfigurationManager configuration() { return configuration; }
    public MessageService messages() { return messages; }
    public WeaponManager weapons() { return weapons; }
    public GUIManager gui() { return gui; }
    public StarForgeManager forges() { return forges; }
    public NamespacedKey weaponKey() { return weaponKey; }
    public NamespacedKey forgeKey() { return forgeKey; }
    public NamespacedKey projectileKey() { return projectileKey; }
    public NamespacedKey explosiveKey() { return explosiveKey; }
}