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:
- A player obtains a Nether Star.
- The player crafts or receives a Star Forge.
- The player places the Star Forge on the ground.
- Right-clicking the Star Forge opens the Star Weapons GUI.
- The GUI displays eight legendary weapons.
- Players select a weapon to see its crafting requirements.
- Players spend Nether Stars and additional materials to create their selected weapon.
- 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.usestarweapons.craftstarweapons.abilitystarweapons.adminstarweapons.givestarweapons.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:
- Main plugin Java class.
- Separate weapon manager.
- Star Forge manager.
- GUI manager and inventory event listeners.
- Weapon ability handlers.
- Cooldown manager.
- Crafting manager.
- Command handler and tab completer.
- Configuration manager.
- All required event listeners.
- plugin.yml.
- config.yml.
- weapons.yml.
- messages.yml.
- pom.xml.
- 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.