PROJECT: COMPLETE MINECRAFT GEMS SMP PLUGIN
Create a complete, working Minecraft Paper/Purpur 1.21.x plugin using Java and Maven. The plugin should feature eight unique magical gems, permanent passive powers, active abilities, energy, pristine levels, gem breaking and repair, custom items, cooldowns, particles, sounds, and persistent player data.
This is an original Gems SMP plugin inspired by the general concept of gem-based SMP powers. Do not copy proprietary code.
IMPORTANT:
- Provide complete, compilable source code, not pseudocode.
- Include plugin.yml, pom.xml, config.yml, messages.yml, crafting recipes, permissions, commands, and README.
- Implement real working abilities, not just item descriptions.
- Make damage, durations, cooldowns, effects, recipes, and energy limits configurable.
- Prevent item duplication, ability exploits, cooldown bypasses, and death-event exploits.
==================================================
- THE EIGHT GEMS
==================================================
There must be exactly eight gems:
- Strength Gem — Red
- Speed Gem — Yellow
- Flux Gem — Purple
- Astra Gem / Extra Gem — Violet
- Puff Gem — White or icy blue
- Life Gem — Pink
- Wealth Gem — Green
- Fire Gem — Orange
The fourth gem was referred to as both Extra Gem and Astra Gem. Do not create a ninth gem. Use Astra Gem as the default display name for its invisibility and teleport powers, but make its name configurable so it can be renamed Extra Gem.
Each gem must have:
- Three passive abilities.
- Three active abilities.
- Its own custom item name, lore, color, particles, sounds, and visual identity.
- Individual configurable cooldowns.
- A functioning and Broken state.
- Powers disabled while Broken.
- A clear way to activate each active ability.
Some abilities below are fully specified, while others are not yet defined. Implement all specified abilities exactly as described and add clearly documented, configurable default abilities for the remaining slots.
==================================================
- ENERGY AND PRISTINE SYSTEM
==================================================
Track these separately:
- Current energy.
- Pristine level.
- Gem condition: Functional or Broken.
DEATH RULES:
- Whenever a player dies, remove exactly one energy point.
- Also reduce that player's pristine level by exactly one level.
- Never remove multiple energy points for a single death.
- Prevent kill farming and repeated death-event exploits.
- Define configurable minimum and maximum energy and pristine levels.
- When the gem reaches its configured breaking condition, mark it Broken.
- A Broken Gem must not provide passive powers or allow active abilities.
- A Broken Gem stays Broken until repaired with a Gem Repairer.
PRISTINE BOTTLE:
- Restores exactly +1 energy per valid use.
- It must never restore more than one energy point per bottle.
- It must not restore a pristine level.
- It must not repair a Broken Gem.
- It must not allow energy to exceed the configured maximum.
- Consume the bottle only when its use is valid.
- Show the player's updated energy after use.
GEM REPAIRER:
- Can repair a gem only when it is Broken.
- Restores the original gem to its functional state.
- Must not change the gem into another type.
- Must not restore lost energy or pristine levels unless a separate configuration explicitly allows it.
- Must not work as an energy-restoration item.
- Show a clear success or failure message.
GEM RANDOMIZER:
- When used, randomly select exactly one of the eight gems.
- Give each gem an equal probability of selection.
- Never give multiple gems from a single use.
- Prevent duplication and repeated triggering from one item.
- Display the selected gem's name and color.
- Make obtaining it through crafting and admin commands configurable.
IMPORTANT: These three items must have separate functions. A Pristine Bottle restores one energy, a Gem Repairer repairs a Broken Gem, and a Gem Randomizer awards one random gem.
==================================================
- STRENGTH GEM — RED
==================================================
PASSIVE 1: PERMANENT STRENGTH I
- Grant the owner Strength I permanently while the gem is functional.
- Safely maintain the effect without repeatedly resetting its duration.
- Remove or recalculate the effect when the gem is lost, changed, or Broken.
PASSIVE 2: SHARPNESS I ENCHANTMENT
- Allow the player to enchant a compatible item in their main hand with Sharpness I through the gem's mechanic.
- Prevent invalid items from being enchanted.
- Do not downgrade an existing higher Sharpness level.
- Prevent repeated activation from duplicating enchantments.
- Provide a configurable activation method.
PASSIVE 3:
- Add a configurable third passive ability with a documented default.
ACTIVE 1: WARDEN SONIC BOOM
- Fire a Warden-style sonic boom toward the targeted direction.
- Deal 4.5 hearts of damage to each valid enemy hit.
- Apply powerful knockback, configurable to produce approximately 4–8 blocks of displacement under suitable conditions.
- Do not damage the caster.
- Respect PvP rules, protected regions, and damage-event plugins.
- Add sonic particles and sound effects.
- Give the ability a configurable cooldown.
ACTIVE 2: STRENGTH SURGE
- Grant Strength II, Resistance II, and Regeneration II.
- Duration: 10 seconds.
- Add activation particles and sounds.
- Prevent unintended infinite effects or stacking.
ACTIVE 3:
- Add a configurable third active ability with a documented default.
==================================================
- SPEED GEM — YELLOW
==================================================
PASSIVE 1: PERMANENT SPEED I
- Grant permanent Speed I while the gem is functional.
PASSIVE 2: PERMANENT HASTE I
- Grant permanent Haste I while the gem is functional.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: SPEED BOOST
- Grant Speed III and Jump Boost I.
- Make duration configurable.
- Add speed-themed particles and sounds.
ACTIVE 2: DIRECTIONAL LAUNCH
- Launch the caster rapidly in the direction they are looking or moving.
- Allow a strong, configurable launch velocity.
- The ability can knock targeted enemies back approximately 30 blocks under suitable conditions.
- Do not promise exact displacement in all circumstances because terrain, walls, and Minecraft physics affect movement.
- Prevent repeated launch exploits.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- WEALTH GEM — GREEN
==================================================
PASSIVE 1: HERO OF THE VILLAGE I
- Grant Hero of the Village I continuously while the gem is functional.
- Maintain the effect safely without resetting it every tick.
PASSIVE 2: LUCK I
- Grant Luck I continuously while the gem is functional.
- Do not confuse the Luck potion effect with random loot generation.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: VILLAGER'S FAVOR
- Grant Hero of the Village VIII for 5 seconds.
- Make the effect duration and amplifier configurable.
- Ensure the stronger effect works correctly with Minecraft's potion-effect system.
ACTIVE 2: FORTUNE BURST
- Grant Fortune IV for 10 seconds.
- Since Fortune is an enchantment rather than a standard potion effect, implement this as a temporary Fortune IV effect on compatible tools or another clearly documented mechanic that achieves the intended result.
- Prevent permanent enchantment changes or item duplication.
- Cooldown must be configurable.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- FIRE GEM — ORANGE
==================================================
PASSIVE 1: FIRE RESISTANCE
- Grant permanent Fire Resistance while the gem is functional.
PASSIVE 2: FIRE ASPECT I
- Allow a compatible weapon in the main hand to receive Fire Aspect I through the gem's mechanic.
- Do not downgrade a higher Fire Aspect level.
- Prevent enchantment duplication exploits.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: FIREBALL
- Charge or launch a fireball.
- Deal 4 hearts of damage to each valid target hit.
- Use a default cooldown of 60 seconds.
- Make the cooldown configurable.
- Add fire particles and sounds.
- Avoid griefing terrain unless explicitly enabled.
ACTIVE 2: FIRE AURA
- Create a fiery aura around the caster.
- Radius: 4 blocks.
- Damage valid nearby enemies and apply fire ticks.
- Do not damage the caster.
- Respect PvP settings and protected regions.
- Give the aura a configurable duration and cooldown.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- LIFE GEM — PINK
==================================================
PASSIVE 1: PERMANENT REGENERATION
- Grant Regeneration I continuously while the gem is functional.
PASSIVE 2: TWO EXTRA HEARTS
- Give the owner two additional hearts, equivalent to four additional health points.
- Safely maintain the additional maximum health.
- Restore the original maximum health when the gem is removed or Broken.
- Avoid repeatedly increasing maximum health on every update.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: FULL RESTORATION
- Restore the caster's health to full, up to 20 hearts.
- Example: if the caster has 4 hearts, restore them to 20 hearts.
- Keep the owner's configured extra-heart bonus consistent with the health system.
- Duration/effect window: 5 seconds.
- Cooldown: 5 minutes.
- Do not exceed the owner's valid maximum health.
- Prevent health-restoration exploits and unintended repeated healing.
ACTIVE 2: LIFE SURGE
- Grant Regeneration III, Resistance III, and Absorption II.
- Duration: 10 seconds.
- Cooldown: 3 minutes.
- Add pink healing particles and suitable sounds.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- PUFF GEM — WHITE / ICY BLUE
==================================================
PASSIVE 1: SLOW FALLING
- Grant Slow Falling while the gem is functional.
- Maintain the effect safely.
PASSIVE 2: FEATHER FALLING II
- Allow compatible boots to receive Feather Falling II through the gem's mechanic.
- Do not downgrade higher Feather Falling levels.
- Prevent enchantment duplication.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: FLIGHT
- Allow the caster to fly for 10 seconds.
- Cooldown: 4 minutes.
- Safely enable and disable temporary flight.
- Restore the player's original flight state after the effect expires.
- Handle logout, death, world changes, and plugin shutdown safely.
- Do not permanently grant creative flight.
ACTIVE 2: SKY SLAM
- Launch a targeted enemy approximately 18 blocks into the air.
- Briefly stun or suspend the target during the launch.
- Then force the target downward toward the ground.
- Deal 4 hearts of damage when the slam resolves, with safe fall-damage handling to avoid unintended duplicate damage.
- Cooldown: 2 minutes.
- Prevent repeated launches and damage exploits.
- Respect PvP rules and protected regions.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- ASTRA GEM / EXTRA GEM — VIOLET
==================================================
PASSIVE 1: HOSTILE MOB IMMUNITY
- Make the owner immune to hostile mob attacks while the gem is functional.
- Hostile mobs should not be able to damage the owner.
- Do not grant immunity to every type of damage.
- Keep PvP damage, environmental damage, and boss behavior configurable.
- Avoid interfering with protected-region and server damage rules.
PASSIVE 2:
- Add a configurable second passive ability.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: INVISIBILITY
- Grant Invisibility for 15 seconds.
- Cooldown: 2 minutes.
- Add subtle violet particles and activation sounds.
- Handle armor, held items, and visibility consistently with Minecraft's invisibility behavior.
- Remove the effect safely when it expires.
ACTIVE 2: RANDOM TELEPORT
- Randomly teleport the caster to a safe location within a radius of 100 blocks.
- Cooldown: 10 minutes.
- Search for a safe destination and prevent teleportation into lava, solid blocks, or the void.
- Respect world boundaries and protected regions.
- If no safe destination is found, cancel the teleport and notify the player.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- FLUX GEM — PURPLE
==================================================
PASSIVE 1: PERMANENT HASTE I
- Grant Haste I continuously while the gem is functional.
PASSIVE 2: EFFICIENCY II
- Allow compatible tools to receive Efficiency II through the gem's mechanic.
- Do not downgrade higher Efficiency levels.
- Prevent repeated enchantment duplication.
PASSIVE 3:
- Add a configurable third passive ability.
ACTIVE 1: DOUBLE LIGHTNING STRIKE
- Select valid enemies within a radius of 6 blocks.
- Strike the selected target or targets with lightning twice.
- Total damage to each intended target must be 5 hearts across the two strikes.
- Control actual damage explicitly so vanilla lightning damage does not accidentally increase the total.
- Do not damage the caster.
- Cooldown: 3 minutes.
- Add purple electrical particles and sounds.
- Respect PvP rules and protected regions.
ACTIVE 2: LIGHTNING CAGE
- Trap a valid enemy inside a temporary lightning cage for 5 seconds.
- Deal 1 heart of damage per second for the duration.
- Cooldown: 5 minutes.
- Prevent escape using the ability's defined cage mechanics without permanently trapping or suffocating the target.
- Release the target automatically after 5 seconds, even if an error occurs.
- Do not damage the caster.
- Respect PvP rules and protected regions.
ACTIVE 3:
- Add a configurable third active ability.
==================================================
- EXTRA ABILITY REQUIREMENTS
==================================================
All eight gems must ultimately have three passives and three active abilities.
For any ability whose details have not yet been specified:
- Implement a balanced, working default.
- Clearly label its name and behavior in the configuration and README.
- Allow the server owner to change or disable it.
- Do not overwrite any ability already specified above.
- Keep abilities individually configurable.
==================================================
- ABILITY CONTROLS AND COOLDOWNS
==================================================
- Provide a reliable way to activate all three active abilities for every gem.
- Support configurable controls, such as right-click, sneak plus right-click, or a dedicated ability-selection GUI.
- Prevent conflicts with ordinary item use.
- Display cooldowns and remaining times to players.
- Prevent activation while the gem is Broken, the player is dead, or the ability is on cooldown.
- Make all cooldowns configurable.
==================================================
- COMMANDS AND ADMINISTRATION
==================================================
Include commands such as:
/gems — Open the gem information GUI. /gems give <player> <gem> — Give a specific gem. /gems randomizer <player> — Give a Gem Randomizer. /gems repairer <player> — Give a Gem Repairer. /gems bottle <player> — Give a Pristine Bottle. /gems energy <player> — Inspect player energy. /gems repair <player> — Admin repair a Broken Gem. /gems info <player> — View gem, energy, pristine level, and condition. /gems reload — Reload supported configuration files.
- Add appropriate permission nodes.
- Validate command arguments.
- Provide tab completion.
- Ensure normal players cannot use admin-only commands.
==================================================
- CRAFTING, STORAGE, AND SECURITY
==================================================
- Create configurable recipes for all gems and special items.
- Make recipes configurable or disableable.
- Use unique item identifiers in PersistentDataContainer rather than relying only on display names.
- Prevent forged items from being treated as legitimate gems.
- Save gem type, energy, pristine level, condition, and cooldown information where appropriate.
- Persist data through restarts.
- Prevent inventory, death-drop, crafting, and interaction duplication exploits.
- Make behavior configurable for dropping, transferring, or replacing gems.
==================================================
- GUI AND VISUAL DESIGN
==================================================
Create a polished Minecraft-style Gems SMP GUI.
- Display all eight gems and their colors.
- Show each gem's passives and active abilities.
- Display energy, pristine level, condition, and active cooldowns.
- Use red for Strength, yellow for Speed, purple for Flux, violet for Astra/Extra, white/icy blue for Puff, pink for Life, green for Wealth, and orange for Fire.
- Use distinct icons, particles, and sounds for each ability.
- The Fire Gem must be an orange faceted crystal, not just a flame symbol.
- Use a dark background with clear, readable item names and lore.
==================================================
- FINAL DELIVERABLES
==================================================
Provide:
- Complete Java source code.
- Maven project with pom.xml.
- plugin.yml.
- Default configuration and message files.
- Crafting recipes.
- All eight gems and their abilities.
- Gem Repairer, Gem Randomizer, and Pristine Bottle.
- Persistent player-data storage.
- Commands, permissions, GUI, cooldowns, and event handling.
- README with installation, setup, recipes, commands, permissions, and ability instructions.
- Build instructions and a compiled JAR if the environment supports building it.
Before finishing, compile the project, fix errors, and test the main systems: obtaining gems, activating abilities, death penalties, energy restoration, gem breaking, gem repair, random gem selection, and data persistence.
Do not claim that the plugin has been tested or compiled unless it actually has been.
[Generation stopped]
No files in this session