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.
---
- 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
- Flame Core
- Stone Core
- Wind Core
Uncommon
- Frost Core
- Thunder Core
- Nature Core
Rare
- Shadow Core
- Aqua Core
- Venom Core
Epic
- Phoenix Core
- Void Core
- Gravity Core
Legendary
- Dragon Core
- Storm Core
- Inferno Core
Mythic
- Celestial Core
- Soul Core
- Time Core
Divine
- Divine Light Core
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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
---
- 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.
---
- 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.
---
- 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"
---
- Permissions
Add proper permissions.
Suggested permissions:
"coresmp.admin"
"coresmp.give"
"coresmp.reload"
"coresmp.check"
Only authorized admins should be able to use administrative commands.
---
- 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.
---
- 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
---
- 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.
---
- 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
---
- 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.
---
- Important Bug Prevention
Make sure to fix/prevent these issues:
- Abilities should only activate while crouching.
- Left click must activate Ability 1.
- Right click must activate Ability 2.
- Each ability must have its own cooldown.
- Cooldowns must be different according to rarity.
- Abilities must damage/effect the entity the player is actually aiming at.
- Do not randomly damage nearby entities.
- Do not damage the caster unless intentionally designed.
- Players must keep their Core after death.
- Players must keep their Core after reconnecting.
- A Core assigned to one player cannot be assigned to another player.
- "/cores" must be view-only for normal players.
- Admins must be able to give specific Cores.
- Core assignments must survive server restarts.
- All abilities must have particles/effects.
- No console errors.
- Prevent ability activation from accidentally triggering unwanted vanilla interactions when possible.
- Handle offline/dead/invalid targets safely.
- Prevent Core duplication exploits.
- Make all messages configurable.
---
- 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.
[Generation stopped]
No files in this session