Lion Playz

CoreSMP — Minecraft Plugin Development Prompt

Create a complete Minecraft plugin called CoreSMP.

Minecraft Version: 1.21.11 Plugin Name: CoreSMP

The plugin should be optimized, stable, configurable, and free from console errors. All abilities, cooldowns, particles, sounds, targeting, core assignment, and commands must work correctly.

---

  1. Core System

The plugin must contain 20 unique Core types divided across these rarities:

  • Common
  • Uncommon
  • Rare
  • Epic
  • Legendary
  • Mythic
  • Divine

Each Core must have:

  • A unique name
  • A unique item/display design
  • A rarity
  • 2 unique abilities
  • Unique particles/effects
  • Appropriate damage or effects
  • Proper cooldowns
  • A description/lore explaining both abilities

Suggested 20 Cores

Common

  1. Flame Core
  2. Stone Core
  3. Wind Core

Uncommon

  1. Frost Core
  2. Thunder Core
  3. Nature Core

Rare

  1. Shadow Core
  2. Aqua Core
  3. Venom Core

Epic

  1. Phoenix Core
  2. Void Core
  3. Gravity Core

Legendary

  1. Dragon Core
  2. Storm Core
  3. Inferno Core

Mythic

  1. Celestial Core
  2. Soul Core
  3. Time Core

Divine

  1. Divine Light Core
  2. Reality Core

You may balance and improve the names and abilities if necessary, but every Core must feel unique and powerful according to its rarity.

---

  1. Ability System

Every Core must have exactly 2 abilities.

Ability 1

Crouch + Left Click

The player must be sneaking/crouching and then left-click to activate Ability 1.

Ability 2

Crouch + Right Click

The player must be sneaking/crouching and then right-click to activate Ability 2.

Abilities must NOT activate when the player is not crouching.

The plugin must properly detect the interaction and prevent unwanted vanilla actions when necessary.

---

  1. Targeting System — VERY IMPORTANT

The abilities must correctly target the entity the player is aiming at.

When a player is looking directly at a player or mob and uses an ability while crouching:

  • The ability must hit the intended target.
  • Damage must be applied directly to that target.
  • Particles/effects must appear around the correct target.
  • The ability must NOT randomly damage another nearby entity.
  • The ability must NOT damage the caster unless the ability specifically says it should.
  • Target detection should use a proper raycast/line-of-sight system.
  • The maximum targeting range should be configurable.
  • Only valid targets should be affected.

Example:

If Player A aims at Zombie B, crouches, and uses an offensive ability, Zombie B must receive the damage, not another mob standing nearby.

If Player A aims at Player B, the ability must correctly affect Player B.

Area-of-effect abilities may affect multiple entities only when the ability is specifically designed as an AoE ability.

---

  1. Particle and Visual Effects

Every ability activation must have a unique and visually appealing particle effect.

Particles should match the Core's theme.

Examples:

  • Flame Core → flame/fire particles
  • Frost Core → snow/ice particles
  • Thunder Core → electric/lightning effects
  • Shadow Core → dark/soul particles
  • Phoenix Core → flame + smoke particles
  • Void Core → portal/black particles
  • Divine Light Core → glowing/light particles

Add appropriate sounds where useful.

Particles and sounds should be optimized and should not cause excessive lag.

---

  1. Core Cooldowns

Each ability must have its own independent cooldown.

Common

  • Ability 1 → 5 seconds
  • Ability 2 → 20 seconds

Uncommon

  • Ability 1 → 5 seconds
  • Ability 2 → 21 seconds

Rare

  • Ability 1 → 5 seconds
  • Ability 2 → 22 seconds

Epic

  • Ability 1 → 5 seconds
  • Ability 2 → 23 seconds

Legendary

  • Ability 1 → 5 seconds
  • Ability 2 → 24 seconds

Mythic

  • Ability 1 → 5 seconds
  • Ability 2 → 25 seconds

Divine

  • Ability 1 → 5 seconds
  • Ability 2 → 30 seconds

Cooldowns must be tracked separately for each player and each ability.

If a player tries to use an ability while it is on cooldown, show a message such as:

"&cAbility is on cooldown! &7Wait &e{time}s"

The remaining cooldown should be accurate.

---

  1. Core Assignment / Rolling System

When a player joins the server for the first time, the plugin must automatically start a Core Rolling Animation.

The player should see Core names rapidly changing/rolling on their screen, creating a random selection animation.

Example:

"Flame Core..." "Dragon Core..." "Shadow Core..." "Void Core..." "Phoenix Core..." "Reality Core..."

The rolling animation should stop after a short duration and select one random Core.

Then display something like:

"&6&lCORE SELECTED!" "&eYou received: &bPhoenix Core"

Add an exciting sound and particle effect.

When the Core is assigned, launch/firework-style visual effects around the player.

---

  1. Unique Core Rule

VERY IMPORTANT:

Once a Core has been assigned to a player, that Core becomes exclusive to that player in the CoreSMP.

The same Core must NOT be assigned to another player.

Example:

If Player A receives Dragon Core, no other player can receive Dragon Core.

The plugin must maintain a persistent record of:

"Player UUID → Assigned Core"

The assigned Core must survive:

  • Server restart
  • Player logout
  • Player death
  • Player rejoin

---

  1. Death System

When a player dies, they must NOT lose their Core permanently.

After death:

  • The player keeps the same Core.
  • When they respawn, their Core is automatically restored.
  • Their abilities must continue working normally.
  • The Core must remain assigned exclusively to them.

Do NOT reroll the player's Core after death.

---

  1. Core GUI

Command:

"/cores"

This command opens a GUI showcasing all available Cores.

The GUI should display:

  • All 20 Cores
  • Core name
  • Rarity
  • Ability 1
  • Ability 2
  • Cooldowns
  • Core description
  • Locked/unlocked status

Normal Players

Normal players can only view the Cores.

They must NOT be able to:

  • Take Cores
  • Move Cores
  • Remove Cores
  • Duplicate Cores
  • Put Cores into their inventory

The GUI must be fully protected.

Admin / Owner

Only players with the appropriate admin permission should be able to obtain Core items through administrative commands.

---

  1. Commands

Implement the following commands:

"/cores"

Opens the Core showcase GUI.

"/core give <player> <corename>"

Gives the selected Core to the specified player.

Only admins/owners with the correct permission can use this command.

Example:

"/core give Steve DragonCore"

"/core reload"

Reloads the plugin configuration without requiring a server restart.

"/core check <player>"

Shows the player's currently assigned Core.

Example:

"/core check Steve"

Output:

"&eSteve's Core: &5Dragon Core"

---

  1. Permissions

Add proper permissions.

Suggested permissions:

"coresmp.admin"

"coresmp.give"

"coresmp.reload"

"coresmp.check"

Only authorized admins should be able to use administrative commands.

---

  1. Core Item System

Every Core should have a unique Minecraft item.

The item should contain:

  • Core name
  • Rarity
  • Ability 1 name
  • Ability 2 name
  • Ability descriptions
  • Cooldowns

Use colored names and lore according to rarity.

Core items should be difficult/impossible for normal players to duplicate through normal gameplay.

---

  1. Rarity Power Balance

Abilities should become progressively stronger from Common → Divine.

General power progression:

Common

  • Basic but useful abilities
  • Low damage / simple effects

Uncommon

  • Slightly stronger effects

Rare

  • Strong combat abilities

Epic

  • Powerful abilities with AoE/control effects

Legendary

  • Very powerful abilities

Mythic

  • Extremely powerful abilities with unique mechanics

Divine

  • The strongest abilities in the plugin
  • Rare and impressive visual effects
  • Powerful but still balanced by long cooldowns

Do not make every ability simply deal huge damage. Use different mechanics such as:

  • Knockback
  • Slow
  • Fire
  • Freeze
  • Dash
  • Teleport
  • Pull
  • Push
  • AoE
  • Shields
  • Healing
  • Temporary buffs
  • Debuffs
  • Projectiles
  • Lightning
  • Gravity effects
  • Life steal
  • Movement abilities

---

  1. Configuration

Create a proper configuration system.

The following should be configurable:

  • Core names
  • Rarities
  • Ability damage
  • Ability range
  • Cooldowns
  • Particle settings
  • Sound settings
  • Messages
  • GUI settings
  • Core assignment settings
  • Rolling animation duration

Do not hardcode everything.

---

  1. Persistence

Core assignments must be saved persistently.

Use a reliable storage system such as YAML or another lightweight persistent system.

The plugin must never randomly change a player's Core after:

  • Server restart
  • Server reload
  • Logout/login
  • Death/respawn

---

  1. Performance

The plugin must be optimized for multiplayer servers.

Avoid:

  • Unnecessary repeating tasks
  • Excessive particle spawning
  • Memory leaks
  • Unnecessary entity scanning
  • Console spam

Target detection should be efficient.

Cooldowns should be handled efficiently.

The plugin should work properly with multiple players using abilities at the same time.

---

  1. Important Bug Prevention

Make sure to fix/prevent these issues:

  1. Abilities should only activate while crouching.
  2. Left click must activate Ability 1.
  3. Right click must activate Ability 2.
  4. Each ability must have its own cooldown.
  5. Cooldowns must be different according to rarity.
  6. Abilities must damage/effect the entity the player is actually aiming at.
  7. Do not randomly damage nearby entities.
  8. Do not damage the caster unless intentionally designed.
  9. Players must keep their Core after death.
  10. Players must keep their Core after reconnecting.
  11. A Core assigned to one player cannot be assigned to another player.
  12. "/cores" must be view-only for normal players.
  13. Admins must be able to give specific Cores.
  14. Core assignments must survive server restarts.
  15. All abilities must have particles/effects.
  16. No console errors.
  17. Prevent ability activation from accidentally triggering unwanted vanilla interactions when possible.
  18. Handle offline/dead/invalid targets safely.
  19. Prevent Core duplication exploits.
  20. Make all messages configurable.

---

  1. Final Requirement

Build the complete CoreSMP plugin with all 20 Cores, 40 unique abilities, rarity system, cooldown system, targeting/raycast system, particle effects, sounds, GUI, commands, permissions, random Core rolling animation, exclusive Core assignment, death persistence, and configuration.

The final plugin should be production-ready, cleanly coded, optimized for Minecraft 1.21.11, and compile without errors.

Do not provide only a basic example or incomplete system. Implement the complete working plugin.

Kodari AI
KodariSep 3 at 5:18 pm 1
CoreSMP
A complete Minecraft plugin featuring 20 unique Cores across 7 rarities, each with 2 distinct abilities activated via crouch+click combinations. Implements a precise raycast targeting system, independent cooldowns per ability, particle effects, and sounds. Includes a Core rolling animation for first-time players, exclusive Core assignment persistence, death/respawn preservation, view-only Core showcase GUI, admin commands for Core management, and full configuration system. Features 40 unique abilities with progressive power scaling from Common to Divine rarity, optimized for multiplayer performance.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code