📄
pasted-code-1791618624519.txt
txt
1417 lines
▶
# KODARI.AI MASTER PROMPT — POWERSMP ULTIMATE EDITION
## MISSION
Build **PowerSMP**, a complete, production-quality Minecraft SMP plugin with a random power system, custom abilities, legendary weapons, over-level enchantments, custom 3D models, ritual crafting, custom materials, bosses, events, player progression, and a fully functional administrator GUI.
You are not being asked to write a tutorial, brainstorm ideas, or provide a project plan. You are being asked to **implement the actual plugin and all of its systems**.
Create the source files, configuration files, commands, event listeners, item mechanics, GUI menus, persistence systems, and resource-pack assets that your environment supports.
If the environment can build, package, or test the plugin, use those capabilities. Do not stop after generating a few example classes. Continue until the requested systems are implemented or clearly identify what remains unfinished.
---
# PART 1 — STRICT TECHNICAL SPECIFICATIONS
## 1. Target Environment
- Minecraft: Java Edition **1.21.11**
- Server: Paper compatible with Minecraft 1.21.11
- Java: Java 21
- Implementation: Server-side Paper plugin
- Plugin name: `PowerSMP`
- Main package: `me.powersmp`
- Gameplay: Survival Multiplayer
- Resource pack: Separate Minecraft Java 1.21.11 compatible ZIP
- Language: Java
- Configuration: YAML
- Persistent player and ritual data: Reliable storage with safe saving and recovery
### Version locking
The target version is mandatory.
1. Verify the correct Paper API dependency for 1.21.11.
2. Use the correct Java version and API signatures.
3. Use the correct namespaced enchantments and supported item-model format.
4. Verify the correct resource-pack metadata for the target version.
5. Do not copy outdated API examples from older Minecraft releases without checking compatibility.
6. Do not silently downgrade the plugin to another Minecraft version.
7. Never claim a feature was tested if it was not.
Do not use Fabric-only APIs, client-side mods, external cheat clients, or features that require players to install a client mod. The plugin must operate on a compatible Paper server.
## 2. Core Development Rules
Follow these requirements throughout the implementation:
- Separate gameplay systems into maintainable modules.
- Avoid putting the entire plugin in one enormous Java class.
- Use reusable ability and cooldown systems.
- Use UUIDs instead of player names as persistent player identifiers.
- Use PDC identifiers for all custom items and custom entities where appropriate.
- Never trust item display names or lore as proof that an item is genuine.
- Validate configuration values before using them.
- Handle exceptions without silently corrupting player data.
- Clean up scheduled tasks, temporary entities, potion effects, and boss state.
- Avoid unnecessary repeating tasks and expensive full-server scans.
- Keep all world modifications on the appropriate server thread.
- Never block the server's main thread with database or file operations.
- Prevent duplicated rewards, duplicated damage, duplicated listeners, and item duplication.
- Make important gameplay values configurable.
- Use clear error messages and administrator feedback.
- Keep ordinary vanilla Minecraft gameplay unchanged unless an explicit custom rule applies.
If an implementation is impossible with the selected API, implement the closest reliable alternative and explain the limitation.
---
# PART 2 — RANDOM POWER SYSTEM
## 3. Player Power Assignment
Every player receives exactly one randomly assigned power when joining for the first time.
Requirements:
- Assign a power only when the player has no saved assignment.
- Store the player's UUID, power ID, rarity, assigned abilities, and relevant progression data.
- Rejoining must not generate a new power.
- Death, respawning, changing worlds, disconnecting, and restarting the server must not erase the assignment.
- Administrators can inspect and change assignments.
- A legitimate reroll can change a power or a specific ability according to the relevant system.
- Prevent repeated joins or reconnects from triggering duplicate assignments.
- Support configurable power availability.
- Support weighted random selection and configurable rarity probabilities.
- Ensure the probability configuration is validated and normalized safely.
- Support disabling individual powers without corrupting existing player data.
- If a power becomes disabled, provide a configurable fallback rather than crashing or deleting the player's data.
### Default rarity distribution
| Rarity | Default probability |
|---|---:|
| Common | 40% |
| Rare | 30% |
| Epic | 20% |
| Legendary | 10% |
These probabilities must be editable in configuration.
Each power should have a unique ID, display name, description, rarity, icon, passive ability, normal ability, ultimate ability, cooldown values, and configurable balancing parameters.
## 4. Power Activation System
Create a central ability engine instead of implementing cooldown and validation logic separately in every power.
Every activation must check:
1. The player is online and alive.
2. The player has the required power and ability.
3. The ability is enabled.
4. The player is not on cooldown.
5. The player is not in an incompatible game mode.
6. The ability is permitted in the current world and region.
7. The target is valid and not protected.
8. The target is not an invalid teammate when friendly fire is disabled.
9. The player has any required resources or conditions.
10. The activation is not a duplicate event from another listener.
Start the cooldown only after successful activation. Failed activation attempts should explain why the ability could not be used.
Implement:
- Central cooldown manager.
- Ability registry.
- Ability context containing caster, target, location, power, and configuration.
- Safe target validation.
- Configurable range and radius.
- Damage and knockback utilities.
- Temporary effect tracking.
- Safe teleportation utilities.
- Particle and sound utilities.
- Action-bar and boss-bar feedback.
- Ability logging for administrators.
- Cooldown persistence or safe cooldown reset behavior configurable by the server owner.
Use monotonic timing or another reliable time source for cooldowns during runtime, and handle server restarts deliberately.
## 5. The Ten Powers
Every power must have three functional abilities: a passive, a normal active ability, and an ultimate.
All abilities must have unique visual identities and configurable cooldowns, ranges, durations, damage, effects, and particle counts.
### Power 1: Tempest — Wind
**Passive: Windborne**
- Grant a small configurable movement benefit.
- Reduce fall damage by a configurable percentage.
- Do not allow permanent flight unless explicitly configured.
**Normal: Wind Dash**
- Dash in the direction the player is looking.
- Use safe movement and collision checks.
- Push nearby enemies away.
- Avoid launching the player through walls or into unsafe locations.
**Ultimate: Cyclone**
- Create a visible tornado around a target location.
- Pull or lift enemies in the area.
- Apply balanced damage and knockback.
- End automatically after a configurable duration.
### Power 2: Titan — Defense
**Passive: Stone Body**
- Reduce incoming damage by a configurable amount.
- Avoid stacking the reduction indefinitely with armor or other passives.
**Normal: Titan Guard**
- Activate a temporary defensive state.
- Reduce incoming damage for a short duration.
- Display a visible defensive effect.
- Prevent repeated activation from extending the effect indefinitely.
**Ultimate: Earthquake**
- Create a ground shockwave.
- Damage and knock back enemies in a configurable radius.
- Show a wind-up and impact effect.
### Power 3: Phantom — Stealth
**Passive: Silent Step**
- Provide configurable stealth-related benefits.
- Do not grant unrestricted permanent invisibility.
**Normal: Vanish**
- Temporarily conceal the player.
- Configure whether attacking, taking damage, or interacting ends the effect.
- Prevent unintended stacking with other invisibility effects.
**Ultimate: Shadow Ambush**
- Teleport to a safe location near a valid target.
- Apply a balanced attack effect.
- Do not teleport through protected regions or solid terrain.
- Provide clear visual feedback to both players.
### Power 4: Volt — Electricity
**Passive: Charged**
- Grant a small configurable movement bonus.
**Normal: Lightning Dash**
- Dash toward a target or in the direction the player looks.
- Apply electric-themed damage and particles.
- Avoid unrestricted wall penetration.
**Ultimate: Chain Lightning**
- Strike multiple valid enemies within a configurable radius.
- Prevent repeatedly hitting the same entity during one activation.
- Limit the maximum number of chained targets.
### Power 5: Frost — Ice
**Passive: Cold Resistance**
- Reduce the effect of freezing mechanics according to configuration.
**Normal: Frost Bolt**
- Fire an ice projectile.
- Apply configurable damage and slowness.
- Use clear projectile collision and target validation.
**Ultimate: Glacial Prison**
- Create a temporary icy area.
- Slow enemies within it.
- Avoid permanently trapping players or making them unable to respond.
### Power 6: Reaper — Soul Mark
**Passive: Soul Mark**
- Successful attacks can apply a temporary mark to a valid enemy.
- Set a maximum number of marks per target.
- Prevent excessive mark refreshing.
**Normal: Soul Rend**
- Consume a mark or trigger a pulse against marked enemies.
- Apply configurable damage.
**Ultimate: Death Wave**
- Trigger a visual burst against marked enemies in range.
- Limit the number of affected targets.
- Do not instantly eliminate players regardless of their health or armor.
### Power 7: Oracle — Detection
**Passive: Awareness**
- Detect nearby hostile players under configurable conditions.
- Avoid revealing players across unlimited distances.
**Normal: Reveal**
- Temporarily reveal nearby invisible enemies.
- Respect world, team, and combat rules.
**Ultimate: Shared Vision**
- Reveal nearby hostile players to the caster and eligible teammates.
- Grant a small configurable defensive benefit.
- End automatically after the configured duration.
### Power 8: Voidwalker — Space
**Passive: Void Step**
- Provide a small configurable teleport-related benefit.
**Normal: Rift Blink**
- Teleport a short distance.
- Check destination blocks, world boundaries, collision, and protected regions.
**Ultimate: Singularity**
- Create a temporary gravity-like field.
- Pull enemies toward its center.
- Apply balanced damage or a final pulse.
- Avoid dragging players through solid blocks or protected areas.
### Power 9: Phoenix — Rebirth
**Passive: Flameproof**
- Grant configurable fire resistance or reduced fire damage.
**Normal: Flame Burst**
- Launch a fire-themed projectile.
- Apply damage and a limited burn effect.
**Ultimate: Rebirth**
- Trigger a fire explosion and limited healing.
- Configure whether the ability can prevent death.
- If a death-prevention effect is supported, enforce a long cooldown and a clear activation rule.
- Prevent infinite healing or repeated activation during one combat encounter.
### Power 10: Chronos — Time
**Passive: Timekeeper**
- Provide a small configurable cooldown-related benefit.
- Prevent cooldown reductions from becoming unlimited.
**Normal: Time Slow**
- Temporarily slow a target.
- Respect immunity rules and diminishing returns where appropriate.
**Ultimate: Temporal Field**
- Create an area that slows hostile entities.
- Do not freeze the entire server or stop unrelated players' game logic.
- Keep effect duration and radius configurable.
## 6. Power Balancing
Create `powers.yml` with separate settings for every power and ability.
Support:
- Base damage.
- Damage scaling, if used.
- Cooldown.
- Duration.
- Range.
- Radius.
- Knockback.
- Maximum targets.
- Particle count.
- Sound settings.
- Team restrictions.
- World restrictions.
- PvP enable/disable.
- Ultimate charge requirements, if enabled.
- Power rarity.
- Ability availability.
Use configurable defaults that are suitable for ordinary SMP combat. Avoid unavoidable kills, permanent stuns, infinite healing, permanent invulnerability, or abilities that invalidate all other powers.
---
# PART 3 — ABILITY COMMANDS
## 7. Player Commands
Implement:
- `/power`
- `/power info `
- `/power list`
- `/power skills`
- `/power help`
- `/power cast `
- `/power cooldowns`
- `/power stats`
Provide helpful tab completion and clear error messages.
`/power skills` should show:
- Power name and rarity.
- Passive ability.
- Normal ability and cooldown.
- Ultimate ability and cooldown.
- Activation method.
- Any special conditions.
`/power cooldowns` should show the player's remaining cooldowns.
`/power stats` should display relevant power usage or progression statistics if statistics are enabled.
## 8. Administrative Power Commands
Implement:
- `/power admin `
- `/power admin assign `
- `/power admin reroll `
- `/power admin reset `
- `/power admin enable `
- `/power admin disable `
- `/power admin reload`
Protect every administrative command with permissions. Validate arguments and player availability, and persist changes immediately and safely.
---
# PART 4 — LEGENDARY WEAPONS
## 9. Global Legendary Item Rules
Implement a central legendary weapon registry.
Each legendary weapon must contain:
- Internal weapon ID.
- Display name and rarity.
- Base vanilla item type.
- Custom model identifier.
- PDC identity.
- Enchantments.
- Lore and description.
- Passive ability.
- Active abilities.
- Cooldowns.
- Configurable combat values.
- Recipe and ritual association.
Requirements:
- Use PDC identity, not display names, for validation.
- Renaming a normal item must never turn it into a legendary weapon.
- Copying lore must not create a genuine weapon.
- Preserve identity through normal inventory movement and legitimate storage.
- Validate items when used, crafted, given, dropped, or recovered.
- Make duplicate detection and recovery tools available to administrators.
- Never delete ordinary items merely because they resemble a legendary item.
- Apply the correct model and enchantments whenever a genuine weapon is created.
- Keep item creation logic centralized so all acquisition methods behave consistently.
## 10. Voidfang — Legendary Sword
**Base:** Netherite Sword.
**Enchantment:** Sharpness VI.
**Visual design:**
- Black and dark-purple blade.
- Glowing violet cracks.
- Distinctive guard and handle.
- Purple energy trail.
- Genuine 3D geometry and custom texture.
**Ability: Rift Blink**
- Teleport the player a short configurable distance.
- Use a safe destination check.
- Display a purple trail.
- Prevent teleporting into solid blocks, outside world boundaries, or protected regions.
**Cooldown:** 35 seconds.
Normal sword combat must continue working correctly.
## 11. Stormcaller — Legendary Axe
**Base:** Netherite Axe.
**Enchantment:** Sharpness VI.
**Visual design:**
- Dark metallic axe head.
- Electric-blue and cyan accents.
- Lightning-shaped details.
- Detailed 3D blade, bevels, and handle.
**Ability: Storm Burst**
- Release an electrical shockwave.
- Damage valid nearby enemies.
- Apply configurable knockback.
- Display electrical arcs, particles, and thunder sounds.
**Cooldown:** 30 seconds.
Stormcaller must remain an actual axe. Preserve normal axe combat and shield-disabling behavior wherever supported by vanilla Minecraft.
Do not implement Stormcaller as a trident or a renamed sword.
## 12. Aether Staff — Legendary Trident
**Base:** Real vanilla Trident.
**Enchantment:** Riptide IV.
**Visual design:**
- Silver and amethyst materials.
- Three detailed trident prongs.
- Floating blue crystal.
- Glowing runes.
- Custom handle and layered geometry.
**Ability: Aether Field**
- Create a temporary magical field.
- Slow valid enemies in the radius.
- Display blue particles and a visible field boundary.
- Remove all temporary effects when the field expires.
**Cooldown:** 45 seconds.
### Required custom melee system
The Aether Staff must behave like a melee weapon that can be swung similarly to a sword.
Implement:
- Reliable close-range hit detection.
- Correct target validation.
- Attack cooldown handling.
- Appropriate damage processing.
- Shield-disabling behavior similar to an axe.
- Shield durability handling.
- PvP and team restrictions.
- Knockback and hit feedback.
- Anti-duplicate-damage protection.
Do not implement custom damage by simply damaging every nearby entity every tick.
Use appropriate Paper combat events and a carefully controlled custom attack path. Prevent the same attack from being processed twice.
### Riptide IV compatibility
Apply Riptide IV even though it exceeds the normal survival enchanting limit.
- Preserve normal Riptide behavior when the player uses the weapon for its intended launch mechanic.
- Respect water/rain requirements unless a configurable custom alternative is explicitly enabled.
- Avoid throwing the weapon when the player intends to perform a normal melee attack.
- Do not accidentally remove the Riptide enchantment.
- Handle conflicts between the melee system, ability activation, and vanilla trident use.
- Keep optional throwing or launching behavior separate from normal melee combat where technically possible.
- Document any unavoidable vanilla interaction limitations.
Do not claim that an item can simultaneously use every vanilla trident interaction and a completely identical sword attack if the API or client interaction makes that impossible. Implement the most reliable version and explain the trade-off.
## 13. Worldbreaker — Legendary Mace
**Base:** Netherite Mace.
**Enchantments:**
- Density V.
- Breach II.
**Visual design:**
- Massive dark netherite and obsidian head.
- Orange-red magma cracks.
- Gold details.
- Thick custom handle.
- Detailed 3D geometry.
### Passive: Titan's Grip
While the player holds Worldbreaker, grant a small configurable knockback-resistance bonus.
- Do not permanently modify the player's base attributes without tracking the original values.
- Remove the bonus when the player switches items, dies, disconnects, drops the weapon, or loses the effect.
- Prevent stacking from multiple copies of the mace.
### Normal: Earthshatter
- Create a visible wind-up.
- Slam the ground.
- Produce a radial shockwave.
- Damage and knock back valid nearby enemies.
- Display particles, sounds, and a clear impact effect.
**Cooldown:** 35 seconds.
### Ultimate: Meteor Strike
- Launch the player upward in a controlled manner.
- Display a wind-up effect.
- Allow a controlled descent.
- Trigger a powerful impact when the ability completes.
- Damage and knock back enemies within a configurable radius.
- Provide a clear cooldown and activation message.
- Handle interrupted activation, player death, disconnects, and world changes.
**Cooldown:** 90 seconds.
### Vanilla mace compatibility
Preserve normal mace combat and smash mechanics where possible.
Prevent full vanilla smash damage and custom damage from being accidentally applied twice to the same attack.
Do not make the ultimate depend on an unsafe teleport or force players into terrain. Ensure the ability has cleanup logic and cannot leave players permanently airborne.
---
# PART 5 — ENCHANTMENTS AND ITEM VALIDATION
## 14. Required Enchantment Levels
| Weapon | Enchantment | Level |
|---|---|---:|
| Voidfang | Sharpness | VI — 6 |
| Stormcaller | Sharpness | VI — 6 |
| Aether Staff | Riptide | IV — 4 |
| Worldbreaker | Density | V — 5 |
| Worldbreaker | Breach | II — 2 |
Use the correct enchantment API and names for Paper 1.21.11.
Requirements:
- Apply the configured levels when creating the weapon.
- Ensure ritual rewards, administrator gifts, and recovery rewards use the same item factory.
- Prevent duplicate enchantment entries.
- Make anvil behavior configurable.
- Ensure invalid or modified items cannot exploit the weapon system.
- Do not alter ordinary vanilla items.
- Verify the actual behavior of above-limit enchantments instead of assuming the enchantment level alone guarantees the expected combat result.
- Provide meaningful administrator warnings if a setting cannot be applied as intended.
---
# PART 6 — LEGENDARY COMMANDS
## 15. Weapon Commands
Implement:
- `/legendary`
- `/legendary list`
- `/legendary info `
- `/legendary skills`
- `/legendary cast `
- `/legendary give `
- `/legendary toggle `
- `/legendary reload`
Supported ability IDs:
- `blink`
- `stormburst`
- `field`
- `earthshatter`
- `meteorstrike`
Only the correct genuine weapon may activate its ability.
Validate:
- PDC identity.
- Weapon type.
- Ability ownership.
- Cooldown.
- Player status.
- Permission.
- Target.
- World and region restrictions.
- Current combat state.
Provide tab completion and clear feedback for missing weapons, invalid abilities, disabled weapons, and active cooldowns.
---
# PART 7 — ABILITY REROLL CRYSTAL
## 16. Crafting Recipe
Create a custom Ability Reroll Crystal using this shaped 3×3 recipe:
| Diamond | Amethyst Shard | Diamond |
|---|---|---|
| Amethyst Shard | Nether Star | Amethyst Shard |
| Diamond | Amethyst Shard | Diamond |
The recipe must be configurable.
Use a PDC identity for the crystal. A renamed ordinary item must never count as a genuine crystal.
## 17. Reroll GUI
When a player uses a genuine crystal, open a GUI with:
- Current power.
- Current passive.
- Current normal ability.
- Current ultimate.
- A selection for which slot to reroll.
- Preview of possible replacement abilities.
- A confirmation screen.
- Cancel and return buttons.
Requirements:
- Change only the selected ability slot.
- Use configurable compatible ability pools.
- Avoid the same ability when alternatives exist.
- Validate that the selected ability is compatible with the player's power.
- Consume exactly one crystal after a successful reroll.
- Do not consume a crystal when the player cancels, closes the GUI, or fails validation.
- Persist the updated assignment immediately.
- Prevent double-click exploits, shift-click exploits, item swapping, and repeated confirmations.
- Never trust GUI display items as real inventory items.
- Prevent two concurrent reroll operations for the same player.
---
# PART 8 — CUSTOM MATERIALS
## 18. Material Registry
Create these materials:
**Void Fragment**
- Obtained from End-related structures, rare loot, or Void encounters.
**Storm Core**
- Obtained from Storm bosses or Storm events.
**Aether Crystal**
- Obtained from dungeons, rare structures, or Aether encounters.
**Titan Heart**
- Obtained from Titan bosses or difficult encounters.
**Ancient Rune**
- Rare universal ingredient used in legendary crafting.
**Arcane Dust**
- Secondary crafting material used in configurable recipes or progression systems.
Each material needs:
- Unique internal ID.
- PDC identity.
- Display name.
- Lore.
- Rarity.
- Optional custom texture.
- Configurable stack limit if required.
- Configurable drop rates.
- Multiple acquisition sources.
- Clear administrator inspection.
- Duplicate and fake-item protection.
Implement a central material factory so every legitimate material is created consistently.
## 19. Material Acquisition
Support several configurable acquisition methods:
- Boss loot.
- Structure loot.
- Timed events.
- Special enemy drops.
- Optional recipes.
- Administrator rewards.
Implement per-player or per-encounter reward tracking as appropriate.
Prevent:
- Repeated reward claims from the same death event.
- Multiple loot rolls caused by duplicated listeners.
- Farming protected or artificially spawned encounters if disabled.
- Rewards being duplicated by player disconnects or server restarts.
---
# PART 9 — LEGENDARY CRAFTING AND RITUALS
## 20. Required Legendary Recipes
### Voidfang
- 1 Void Fragment.
- 2 Ancient Runes.
- 4 Diamonds.
- 2 Netherite Ingots.
### Stormcaller
- 1 Storm Core.
- 2 Ancient Runes.
- 1 Trident.
- 4 Copper Blocks.
- 2 Diamonds.
### Aether Staff
- 1 Aether Crystal.
- 2 Ancient Runes.
- 4 Amethyst Blocks.
- 2 Netherite Ingots.
- 1 Blaze Rod.
### Worldbreaker
- 1 Titan Heart.
- 2 Ancient Runes.
- 1 Netherite Mace.
- 4 Heavy Cores.
- 2 Netherite Ingots.
All recipes must be configurable.
Validate the exact ingredients, including PDC identity for custom materials. Do not accept items solely because their names match.
If a recipe uses vanilla ingredients, validate their actual material types. Consume only the ingredients belonging to a successful recipe.
## 21. Ritual Durations
| Weapon | Default duration |
|---|---:|
| Voidfang | 60 seconds |
| Stormcaller | 90 seconds |
| Aether Staff | 120 seconds |
| Worldbreaker | 180 seconds |
A successful recipe starts a ritual instead of instantly producing a weapon.
## 22. Ritual Lifecycle
Every ritual must have a unique ID and a persisted state.
Record:
- Ritual ID.
- Initiating player UUID.
- Weapon ID.
- World UUID.
- Original block and precise drop coordinates.
- Start time.
- Configured duration.
- Consumed ingredients.
- Ritual status.
- Pending reward state.
- Relevant station identity.
The ritual should:
1. Validate the recipe.
2. Validate the crafting location and station.
3. Prevent conflicting rituals at the same station.
4. Consume the ingredients exactly once.
5. Create the persistent ritual record.
6. Display a visible ritual effect.
7. Show a countdown.
8. Complete at the original location.
9. Generate the actual legendary item through the central item factory.
10. Apply the correct PDC identity, enchantments, lore, and model identifier.
11. Drop the item at the original location when available.
12. Record that the reward was issued.
13. Clean up particles, tasks, temporary entities, and boss bars.
Handle:
- Player disconnects.
- Player deaths.
- World changes.
- Chunk unloading.
- Server restarts.
- Server shutdown.
- Missing worlds.
- Missing or destroyed stations.
- Interrupted rituals.
- Pending rewards.
- Administrative recovery.
The ritual must not require the initiating player to remain online or nearby.
Make offline progress configurable. Use persistent timestamps so a server restart does not accidentally reset every timer.
Define a safe cancellation policy. Refund ingredients only if the stored ritual state proves that the ingredients were consumed and the refund has not already occurred.
## 23. Ritual Commands
Implement:
- `/ritual`
- `/ritual list`
- `/ritual info `
- `/ritual status`
- `/ritual materials`
- `/ritual cancel `
- `/ritual admin start `
- `/ritual admin complete `
- `/ritual admin recover `
- `/ritual admin reload`
Administrative commands must require appropriate permissions and log consequential actions.
---
# PART 10 — BOSSES AND WORLD EVENTS
## 24. Custom Boss System
Create four configurable bosses.
### Void Boss
- Void-themed visual effects.
- Teleportation or spatial abilities.
- Rewards including Void Fragments.
### Storm Boss
- Lightning effects.
- Area shockwaves or electrical attacks.
- Rewards including Storm Cores.
### Aether Boss
- Magical projectiles and slowing fields.
- Rewards including Aether Crystals.
### Titan Boss
- Heavy melee attacks and ground slams.
- Rewards including Titan Hearts.
Every boss must support:
- Configurable health and damage.
- Custom display name.
- Boss bar.
- Spawn rules.
- Attack cooldowns.
- Loot tables.
- Maximum encounter size.
- Reward validation.
- Death and despawn cleanup.
- Persistent encounter IDs where necessary.
Do not implement boss attacks as uncontrolled repeating damage loops.
## 25. Timed Events
Implement:
- Void Hunts.
- Storm Events.
- Titan Raids.
Each event needs:
- Configurable start interval.
- Start and end announcements.
- Boss or objective spawning.
- Reward rules.
- Participant tracking.
- Anti-farming rules.
- Cooldown.
- Administrator start/stop controls.
- Safe cleanup when the event ends or the server shuts down.
Make event schedules configurable. Do not require an external service.
---
# PART 11 — ADMIN GUI
## 26. `/powersmp` Main Menu
Create a polished, fully functional inventory-based admin GUI.
Use a consistent layout, item icons, colored names, useful lore, page navigation, and confirmation screens.
Main categories:
1. Player Management.
2. Power Management.
3. Legendary Weapons.
4. Custom Materials.
5. Ritual Management.
6. Boss Management.
7. Events.
8. PvP and World Settings.
9. Configuration.
10. Diagnostics and Data.
## 27. Player Management
Administrators must be able to:
- Search or select players.
- View UUID and current power.
- Inspect assigned abilities.
- Assign a power.
- Reroll a power.
- Reset power data.
- View relevant cooldowns.
- Inspect legendary items when practical.
- Reset or repair invalid plugin data with confirmation.
## 28. Power Management
Include:
- List of powers.
- Power enabled/disabled status.
- Rarity settings.
- Ability cooldown settings.
- Damage and range settings.
- Ability availability.
- Player assignment controls.
- Safe configuration reload.
Validate inputs before saving changes.
## 29. Weapon Management
Include:
- List of legendary weapons.
- Weapon enable/disable status.
- Enchantment inspection.
- Ability and cooldown settings.
- Give weapon to player.
- Recover a pending reward.
- Inspect genuine PDC identity.
- Diagnose an invalid weapon.
- Configure weapon recipes.
## 30. Ritual and Event Management
Include:
- Active ritual list.
- Ritual progress.
- Original location.
- Remaining time.
- Pending reward state.
- Cancel, complete, or recover actions.
- Boss spawn controls.
- Event start and stop controls.
Use confirmation menus for destructive operations.
## 31. GUI Security
Prevent:
- Taking menu items.
- Moving items into menu slots.
- Moving menu items into player inventory.
- Shift-click exploits.
- Number-key swaps.
- Double-click collection.
- Dragging across menu slots.
- Creative-mode inventory exploits.
- Repeated button activation.
- Stale menu interactions after a page change.
- Actions by unauthorized players.
Validate the menu instance, click type, slot, player permission, and requested operation on every interaction.
Never use a GUI's displayed item as proof of permission or as the authoritative source for a reward.
---
# PART 12 — CUSTOM 3D RESOURCE PACK
## 32. Deliver a Separate Resource-Pack ZIP
Create a real resource pack compatible with Minecraft Java 1.21.11.
**All four legendary weapons require actual 3D models with depth and geometry. Flat icons, recolored vanilla textures, and simple 2D sprites are not acceptable as the final weapon models.**
### Voidfang Model
- Black blade.
- Purple glowing cracks.
- Distinctive guard and handle.
- Blade thickness and visible bevels.
- Violet energy styling.
### Stormcaller Model
- Dark metal axe.
- Cyan and electric-blue accents.
- Detailed axe head.
- Visible blade geometry.
- Custom handle.
### Aether Staff Model
- Silver and amethyst trident.
- Three detailed prongs.
- Floating blue crystal.
- Glowing runes.
- Layered handle geometry.
### Worldbreaker Model
- Large, intimidating mace.
- Dark netherite and obsidian appearance.
- Orange-red magma cracks.
- Gold details.
- Thick custom handle and dimensional mace head.
## 33. Resource-Pack Implementation
Include:
- Actual PNG textures.
- Correct item definitions.
- All required model files.
- Valid pack metadata.
- Unique model identifiers.
- Any required supporting files.
- A separate ZIP containing the finished pack.
Use the correct item-model system for Minecraft Java 1.21.11. Verify the target version's format rather than blindly copying outdated CustomModelData tutorials.
Where supported by the chosen item-model system, render the weapon correctly in:
- Inventory.
- Hotbar.
- First-person view.
- Third-person view.
- Dropped-item view.
- Item frames.
Use pixel-art textures with deliberate shading, highlights, transparent areas where needed, and readable silhouettes.
Ordinary vanilla swords, axes, tridents, and maces must retain their vanilla appearance.
Every legitimate weapon must receive the correct model identifier regardless of whether it was obtained through a ritual, command, reward, or recovery.
If the environment can generate binary assets, create the actual files. If it cannot, provide a reproducible script and all required model definitions. Do not substitute a written description for the deliverable.
## 34. Resource-Pack Distribution
Support optional server resource-pack distribution.
Configuration should include:
- Enable/disable setting.
- HTTPS download URL.
- SHA-1 hash.
- Optional required-pack behavior.
- Join-time delivery.
- Pack status handling where available.
Do not claim a player has accepted the resource pack until the server receives the relevant status.
Explain how to host the ZIP securely if hosting is not built into the environment.
---
# PART 13 — CONFIGURATION SYSTEM
## 35. Required Configuration Files
Create these files:
- `config.yml`
- `powers.yml`
- `weapons.yml`
- `materials.yml`
- `legendary-recipes.yml`
- `rituals.yml`
- `bosses.yml`
- `events.yml`
Include all relevant default values and comments.
### `config.yml`
General settings, permissions, world restrictions, PvP, data storage, logging, resource-pack delivery, and global balancing.
### `powers.yml`
Power definitions, rarity odds, passive abilities, normal abilities, ultimates, cooldowns, damage, durations, ranges, and visual effects.
### `weapons.yml`
Legendary item definitions, enchantments, abilities, cooldowns, PDC identifiers, and custom model identifiers.
### `materials.yml`
Material definitions, acquisition sources, rarity, drop rates, and item presentation.
### `legendary-recipes.yml`
Recipe ingredients, custom material requirements, station requirements, and crafting settings.
### `rituals.yml`
Ritual duration, offline progress, station rules, effects, cancellation, refunds, and recovery.
### `bosses.yml`
Boss stats, abilities, spawn rules, and loot.
### `events.yml`
Event schedules, duration, objectives, announcements, and rewards.
Reloading configuration must not create duplicate listeners, duplicate tasks, or duplicate recipes. Validate and apply new settings safely.
---
# PART 14 — DATA, SECURITY, AND PERFORMANCE
## 36. Persistent Storage
Persist:
- Player UUIDs.
- Assigned powers.
- Rarity.
- Assigned abilities.
- Relevant player progression.
- Ritual records.
- Pending legendary rewards.
- Event state when necessary.
- Any cooldowns intended to survive restarts.
Use a reliable data layer with validation, atomic or safe saving where possible, and recovery from malformed data.
Do not rely exclusively on an in-memory map for data that must survive restarts.
## 37. Anti-Exploit Rules
Protect against:
- Fake legendary items.
- Fake reroll crystals.
- Fake custom materials.
- Duplicate ritual rewards.
- Repeated event reward claims.
- GUI item duplication.
- Repeated ability activation.
- Double damage.
- Invalid or missing player data.
- Unauthorized command execution.
- Malformed configuration.
- Duplicate event listeners.
- Multiple cooldown tasks for the same ability.
- Dropped-item duplication during server restarts.
- Ritual refunds being issued twice.
- Abilities being used in forbidden regions.
- Players exploiting death or disconnect timing.
Log important administrator operations and suspicious reward duplication attempts.
Do not delete player items or reset data automatically when an unexpected condition occurs. Prefer safe validation, recovery, and administrator warnings.
## 38. Performance Requirements
The plugin must be suitable for a multiplayer survival server.
- Avoid unnecessary full-world entity scans.
- Use targeted entity searches and reasonable radii.
- Limit particle counts.
- Use efficient cooldown storage.
- Avoid starting a new repeating task for every small visual effect when a shared task or event-driven approach is more suitable.
- Stop tasks when effects expire.
- Remove temporary entities.
- Clean up data structures when players disconnect.
- Avoid loading or saving the entire data store on every minor event.
- Keep expensive file or database work off the main thread when safe.
- Never access Bukkit world or entity APIs asynchronously unless explicitly safe.
- Ensure a failed ability cannot leave permanent effects or tasks behind.
---
# PART 15 — PERMISSIONS
## 39. Permission Nodes
Implement:
- `powersmp.power.use`
- `powersmp.power.info`
- `powersmp.legendary.use`
- `powersmp.legendary.info`
- `powersmp.material.use`
- `powersmp.ritual.use`
- `powersmp.admin`
Use appropriate defaults in the plugin's permission definitions.
Every privileged command and GUI action must enforce the correct permission independently.
---
# PART 16 — REQUIRED TESTING
## 40. Functional Tests
Test or provide a clear test procedure for all of the following.
### Player Powers
- First-join assignment.
- Persistence after reconnect.
- Persistence after restart.
- Administrative reassignment.
- Ability cooldowns.
- Invalid ability use.
- Team restrictions.
- Safe teleportation.
- Power disable/enable.
### Legendary Weapons
- Voidfang is a sword with Sharpness VI.
- Stormcaller is an axe with Sharpness VI.
- Aether Staff is a trident with Riptide IV.
- Aether Staff supports custom melee and axe-like shield breaking.
- Worldbreaker is a mace with Density V and Breach II.
- Custom abilities work.
- Normal vanilla weapons remain unaffected.
- Item identity survives legitimate inventory movement.
- Renamed ordinary items cannot activate legendary abilities.
### Crafting and Materials
- Recipes validate the exact ingredients.
- Fake custom materials are rejected.
- Ingredients are consumed once.
- Rituals complete at the original location.
- Rituals survive restarts.
- Rewards cannot be duplicated.
- Recovery works when a location becomes unavailable.
- Reroll crystals change only the selected slot.
- Cancelled rerolls do not consume crystals.
### GUI and Security
- GUI cannot be looted.
- Shift-clicking cannot bypass the menu.
- Number-key swapping cannot duplicate items.
- Unauthorized players cannot use administrator controls.
- Confirmation screens work.
- Invalid configuration produces useful warnings.
### Resource Pack
- ZIP contains all required files.
- Pack metadata targets 1.21.11 correctly.
- All four weapons have distinct 3D models.
- Correct textures display.
- Ordinary vanilla weapons remain unchanged.
- Resource-pack delivery reports status accurately.
---
# PART 17 — REQUIRED DELIVERABLES
## 41. Final Output
Produce as many of these as your environment supports:
1. Complete PowerSMP plugin source.
2. Compiled plugin JAR, if building is available.
3. All YAML configuration files.
4. Complete command and permission definitions.
5. All power and ability implementations.
6. All legendary weapon implementations.
7. Custom material system.
8. Ritual and crafting system.
9. Boss and event systems.
10. Complete administrator GUI.
11. Persistent data and recovery system.
12. Actual custom 3D model and texture files.
13. Separate resource-pack ZIP.
14. Build and installation instructions.
15. Testing results.
16. A list of any unimplemented or unverified features.
Do not replace missing files with comments such as “implement this later.”
Do not provide placeholder methods that return nothing when real behavior is required.
Do not claim the plugin compiles unless a build was actually performed.
Do not claim the models exist unless the required asset files were actually generated.
If a feature is partially implemented, label it clearly and continue implementing the remaining requirements.
---
# PART 18 — IMPLEMENTATION ORDER
## 42. Build the Plugin in Dependency Order
Implement the systems in this order:
**Phase 1 — Core**
- Plugin initialization.
- Configuration.
- Data storage.
- PDC utilities.
- Permission handling.
- Command registration.
**Phase 2 — Powers**
- Random assignment.
- Ability registry.
- Cooldown manager.
- All ten powers.
- Player-facing commands.
**Phase 3 — Legendary Weapons**
- Central item factory.
- Enchantments.
- Four weapon abilities.
- Custom melee handling.
- Item validation.
**Phase 4 — Progression**
- Custom materials.
- Reroll crystal.
- Legendary recipes.
- Ritual lifecycle and recovery.
**Phase 5 — World Content**
- Bosses.
- Timed events.
- Rewards and loot.
**Phase 6 — Administration**
- Main GUI.
- Player manager.
- Power manager.
- Weapon manager.
- Ritual and event controls.
- Diagnostics.
**Phase 7 — Resource Pack**
- Generate 3D models.
- Generate PNG textures.
- Create item definitions.
- Create pack metadata.
- Package the ZIP.
- Connect custom item identifiers to the correct models.
**Phase 8 — Verification**
- Build the plugin.
- Fix compilation issues.
- Test gameplay and edge cases.
- Validate configuration.
- Check the resource pack.
- Report verified results and remaining limitations.
Do not stop at Phase 1 or Phase 2 simply because the project has become large.
---
# FINAL DIRECTIVE
Build **PowerSMP Ultimate** as a complete, balanced, secure, and maintainable Minecraft Paper plugin for Java Edition 1.21.11.
Prioritize real implementation over explanations. Use the capabilities of your Minecraft plugin development environment to create the actual files and deliverables.
The defining features are:
- Ten random powers with passive, normal, and ultimate abilities.
- Four legendary weapons with exact enchantments and unique abilities.
- Sharpness VI on Voidfang and Stormcaller.
- Riptide IV on the melee-capable Aether Staff, including axe-like shield breaking.
- Density V and Breach II on Worldbreaker.
- A genuine 3D resource pack.
- Custom materials, crafting rituals, bosses, and timed events.
- A fully functional, exploit-protected `/powersmp` administrator GUI.
- Persistent data and reliable recovery after server restarts.
**Start implementing the actual plugin now. Inspect the available project and tools, create the core systems, then continue through every phase until the maximum possible number of features is complete. Never misrepresent unfinished or untested functionality as finished.**
Create the Paper 1.21.11 project, plugin metadata, and default configuration.
Implement persistent first-join power assignment, the ten power definitions, ability effects/cooldowns, and player/admin
/powercommands.Leave resource-pack models and textures for Kodari Studio; this project cannot generate those assets here.
Created the PowerSMP project foundation with:
Java 21 and Paper 1.21.11 build configuration, plugin metadata, and default settings.
Persistent UUID-based power assignments, configurable rarity weighting, all ten power definitions, cooldowns, cast statistics, and
/powerplayer/admin commands.Normal and ultimate ability implementations, including projectile effects, damage reduction, target checks, and safe-location checks for teleports.
A PDC-identified legendary item factory with the requested base items and enchantments, plus
/legendarycommands and weapon abilities.
This is a partial implementation, not the complete specification. Custom materials and their acquisition, reroll crystals and GUI, recipes and persistent rituals, bosses, timed events, and the /powersmp admin GUI are not implemented. Some power passives and advanced protection integrations are also incomplete. The Aether Staff uses vanilla trident melee with shield-breaking handling; it does not add a separate synthetic sword-style attack.
No build or gameplay tests were run, so I can’t claim the plugin compiles or has been verified. No resource-pack ZIP or weapon models/textures were created. For 3D models, create them in Kodari Studio and bring them into this project through a workspace. Texture generation is turned off for this project; enable it under the project’s Settings → Generation, or for all projects at https://kodari.ai/settings?tab=features.
package me.powersmp;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;
public final class PowerSMPPlugin extends JavaPlugin implements Listener {
private PowerService powerService;
private AbilityManager abilityManager;
private LegendaryManager legendaryManager;
@Override
public void onEnable() {
saveDefaultConfig();
saveResource("powers.yml", false);
powerService = new PowerService(this);
abilityManager = new AbilityManager(this, powerService);
legendaryManager = new LegendaryManager(this);
getServer().getPluginManager().registerEvents(this, this);
getServer().getPluginManager().registerEvents(abilityManager, this);
getServer().getPluginManager().registerEvents(legendaryManager, this);
PowerCommand command = new PowerCommand(this, powerService, abilityManager);
getCommand("power").setExecutor(command);
getCommand("power").setTabCompleter(command);
LegendaryCommand legendaryCommand = new LegendaryCommand(this, legendaryManager);
getCommand("legendary").setExecutor(legendaryCommand);
getCommand("legendary").setTabCompleter(legendaryCommand);
getLogger().info("PowerSMP enabled with " + PowerDefinition.values().length + " configured powers.");
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
powerService.ensure(event.getPlayer());
}
@EventHandler
public void onQuit(PlayerQuitEvent event) {
powerService.get(event.getPlayer().getUniqueId());
}
}