RITUAL TRACKING SYSTEM
When a player inserts an Amethyst Key into a Trial Chamber Vault and the ritual starts:
- The ritual duration must be exactly 15 minutes.
- During the entire 15-minute ritual, every online player must see a ritual tracker at the top of their screen (BossBar style).
- The BossBar must display:
- Remaining ritual time - Ritual coordinates - A message showing that an Amethyst Effect is being crafted
Example: 💜 AMETHYST RITUAL ACTIVE ⏱ Time Left: 14:32 📍 X: 120 Y: 64 Z: -340 ✨ Effect Crafting In Progress
The BossBar must update in real time until the ritual ends.
COMPASS TRACKING SYSTEM
While a ritual is active:
- Every online player automatically receives a special Ritual Tracker Compass.
- The compass permanently tracks the player currently performing the ritual.
- The compass should always point toward that player.
- New players joining during the ritual must also receive the compass.
- If a player dies and respawns, they must automatically receive the compass again.
- Players must not be able to permanently lose, drop, move, destroy, or remove the tracker compass while tracking is enabled.
Admin toggle command:
/amethyst tracker true /amethyst tracker false
Tracker TRUE:
- Give the tracker compass to all online players.
- Give it to future joining players.
- Re-give it after death if missing.
Tracker FALSE:
- Remove all tracker compasses from every player's inventory.
- Stop giving the compass on join or respawn.
Compass requirements:
- Custom name: "💜 Ritual Tracker"
- Custom lore explaining that it tracks the ritual player.
- Identified using PersistentDataContainer.
- Cannot be duplicated for exploits.
- Cannot be renamed to fake the tracker.
When the ritual ends:
- The tracker system should stop.
- If tracker mode is disabled, remove all tracker compasses.
- If tracker mode is enabled, keep tracking behavior according to the config/command settings.
IMPORTANT:
The compass system must be lightweight, optimized, and work correctly after relogs, deaths, server restarts, and player joins.
I’ll build the plugin with:
Persistent 15-minute ritual lifecycle and all-player BossBar tracking.
Persistent, PDC-identified compass distribution and anti-loss/anti-duplication protections.
Join, respawn, inventory, death, and restart handling.
/amethyst tracker true|falseadministration plus a key-giving helper for testing.Gradle, plugin metadata, and default configuration.
Created the Amethyst Ritual plugin from scratch.
15-minute ritual lifecycle triggered by right-clicking a Trial Chamber Vault with a PDC-marked Amethyst Key.
Global BossBar with countdown, vault coordinates, and crafting status.
Persistent ritual state across restarts.
PDC-identified Ritual Tracker Compass with custom name and lore.
Compass distribution for online players, joins, respawns, and relogs.
Anti-drop, anti-move, anti-pickup, anti-duplication, and death-drop protections.
/amethyst tracker true|falseadministration command./amethyst keyhelper command for receiving a test key.Configurable tracker persistence after ritual completion.
And inme se ek effect tab Mile Jab ritual pura Ho Jaye Ham tabhi use kar sake Jab Ham isko confuse Ki Tarah Hamari special hot bar mein rakh sake Create a lightweight Minecraft Paper plugin called "Amethyst SMP" for Minecraft Java 1.21.11.
IMPORTANT: Keep the plugin simple. Do NOT add unnecessary commands, economy, GUI, teams, shops, or unrelated systems.
MAIN SYSTEM:
Players should be able to enter a normal Minecraft Trial Chamber and use a custom Amethyst Key inside a Trial Chamber Vault.
When the player inserts the Amethyst Key into the Vault:
- Detect the custom key.
- Consume the key.
- Start a short Amethyst Ritual.
- Play simple particles and sounds around the Vault.
- After the ritual finishes, give the player ONE random Custom Effect.
- Save the obtained effect permanently so it remains after relog/server restart.
CUSTOM EFFECT SYSTEM:
Each Custom Effect must contain EXACTLY 2 unique abilities.
Every effect should have different abilities.
Example:
- STRENGTH EFFECT
Ability 1 - Power:
- Activate with Shift + Left Control.
- Give Strength II for 30 seconds.
- Play amethyst particles and sound.
Ability 2 - Freeze Hit:
- Activate/enable with Shift + Right Control.
- When the player hits another player, freeze that target for 15 seconds.
- The frozen player cannot move normally.
- Show an icy/amethyst visual effect.
- SPEED EFFECT
Ability 1 - Speed Burst:
- Shift + Left Control.
- Give a strong Speed boost for a short duration.
Ability 2 - Dash:
- Shift + Right Control.
- Dash the player forward a short distance.
- FIRE EFFECT
Ability 1 - Flame Body:
- Shift + Left Control.
- Give Fire Resistance temporarily and create flame particles.
Ability 2 - Fire Strike:
- Shift + Right Control.
- The next player hit is set on fire for a short duration.
- DEFENSE EFFECT
Ability 1 - Royal Shield:
- Shift + Left Control.
- Temporarily reduce incoming damage.
Ability 2 - Knockback:
- Shift + Right Control.
- When attacking, knock the target backward with a custom effect.
- SHADOW EFFECT
Ability 1 - Shadow:
- Shift + Left Control.
- Give temporary invisibility.
Ability 2 - Shadow Strike:
- Shift + Right Control.
- The next attack deals bonus damage and applies a short debuff.
Create additional Custom Effects if useful, but EVERY effect must have exactly 2 different abilities.
KEYBINDS:
Use these two ability key combinations:
- SHIFT + LEFT CONTROL = Ability 1
- SHIFT + RIGHT CONTROL = Ability 2
The plugin must detect these key combinations reliably without repeatedly triggering the ability every tick.
Each ability must have:
- Cooldown
- Duration where applicable
- Activation sound
- Particles
- ActionBar message
- Anti-spam protection
RITUAL:
The Trial Chamber Vault ritual should feel special but remain lightweight.
Use purple/amethyst-themed particles, sounds and a simple animation.
Do not destroy blocks or damage the Trial Chamber.
KEY:
Create a custom Amethyst Key identified using PersistentDataContainer.
It should have:
- Custom name
- Custom lore
- Amethyst/purple appearance
- Optional CustomModelData
DATA:
Save the player's Custom Effect and ability data so it survives:
- Relog
- Server restart
- Death
TECHNICAL REQUIREMENTS:
- Plugin name: Amethyst SMP
- Minecraft: Paper 1.21.11
- Java 21+
- Use Paper/Bukkit API
- Use PersistentDataContainer
- Proper event handling
- Efficient cooldown system
- Cancel all tasks correctly
- No unnecessary external dependencies
- Fully compilable and production-ready
IMPORTANT:
Do not add extra gameplay systems.
The entire plugin should focus only on:
Amethyst Key → Trial Chamber Vault → Ritual → Custom Effect → 2 Unique Abilities.
Existing project audit: preserve the ritual/tracker foundation and identify the files to replace.
Core ritual/effect flow: implement the key → vault → ritual → permanent random effect lifecycle.
Ability item/keybind system: add a protected special-hotbar effect item with two reliable, cooldown-based activations.
Persistence and lifecycle: cover relogs, restarts, death, joins, respawns, and task cleanup.
Metadata/configuration: align Paper 1.21.11 / Java 21 plugin files and keep the implementation dependency-free.
Amethyst SMP core: updated the project name and Paper API target to Java 21 / Paper 1.21.11.
15-minute ritual: custom PDC Amethyst Key is consumed when used on a Trial Chamber Vault; the vault is not destroyed or damaged.
Ritual presentation: added purple particle animation, amethyst sound effects, and a real-time BossBar with countdown and vault coordinates.
Permanent random effect: ritual completion grants one random effect—Strength, Speed, Fire, Defense, or Shadow—and stores it in the player’s PersistentDataContainer.
Special hotbar effect item: each player receives one protected PDC-marked effect item in the configured hotbar slot. Duplicate, renamed, moved, dropped, destroyed, or picked-up copies are rejected and corrected.
Two abilities per effect: every effect has exactly two unique abilities with cooldowns, action-bar feedback, sounds, particles, and anti-spam handling.
Lifecycle support: effects and pending rewards survive relogs, death, respawn, and server restarts. Ritual state is persisted and restored.
Existing tracker: retained the ritual compass tracker and extended target handling for restored rituals.
The implementation remains focused on:
Amethyst Key → Trial Chamber Vault → Ritual → Permanent Custom Effect → Two Abilities
Agr effect wala player maar jaya droop ho jaya gaib and also add key command to give player key and add 12 effect or add kro ine 12 effect recpie
डेथ लॉजिक: effect-item और permanent effect के death/drop व्यवहार को बदलना।
Key command: खिलाड़ी को custom Amethyst Key देने वाला command जोड़ना।
Effects: कुल 12 अलग-अलग effects और उनके recipes जोड़ना, हर effect में ठीक 2 abilities रखना।
मौजूदा /amethyst key subcommand पहले से मौजूद है; इसे target player support के साथ मजबूत कर रहा हूँ। Death पर effect ownership हटेगी और effect item दुबारा respawn पर नहीं बनेगा। 12 effects के लिए अलग-अलग PDC recipes जोड़ी जाएँगी।
Death behavior ko “drop hoke gaib” ke hisaab se set kar raha hoon: effect ownership remove hogi, custom effect item death drops mein spawn hoga, phir turant disappear hoga; us item se effect reclaim/duplicate nahi hoga.1. Death behavior fixed: Effect owner dies → permanent effect is removed from PDC, effect item is added to death drops, then the dropped effect item disappears shortly afterward. Respawn पर effect/item वापस नहीं बनेगा। 2. Effect reclaim रोक दिया: Death के बाद गायब होने वाले effect item को pickup या duplicate करके दोबारा प्राप्त नहीं किया जा सकता। 3. Key command updated:
/amethyst key— खुद को key देता है/amethyst key <player>— target player को key देता है
Total 12 effects added: Strength, Speed, Fire, Defense, Shadow, Frost, Poison, Vampire, Thunder, Wind, Nature और Ocean।
Recipes added: हर effect के लिए अलग center ingredient वाली Amethyst recipe registered है।
हर effect में ठीक 2 abilities: सभी abilities में cooldown, action-bar message, sound और particle feedback कायम है।
Death cleanup: cooldowns, armed abilities और temporary states भी player की death पर साफ हो जाते हैं।
Ek admin command bana do jise mai amethyst effect recpie only admin dekh sakta hai or sab ki recpie add krdo
Admin-only recipe command: add
/amethyst recipeswith permission enforcement.Recipe visibility: show all 12 effect recipes only to authorized admins.
Recipe registration: verify and complete all 12 effect recipes without exposing them to normal players.
/amethyst recipes admin-only command add कर दिया गया।
केवल
amethyst.adminpermission वाले admins command चला सकते हैं।Command सभी 12 Amethyst Effect recipes chat में दिखाता है।
Admin player के recipe book में सभी 12 recipes unlock हो जाती हैं।
Normal players को recipes discover नहीं होंगी और join पर उनकी recipes छिपा दी जाएँगी।
सभी 12 recipes पहले से register हैं:
Strength
Speed
Fire
Defense
Shadow
Frost
Poison
Vampire
Thunder
Wind
Nature
Ocean
Command:
/amethyst recipes
Permission:
amethyst.admin
Ek command add kro jise ham effect withdraw kr sakta hai
/amethyst withdraw command add कर दिया।
कोई भी player अपना current Amethyst Effect withdraw कर सकता है।
Effect PDC से permanently remove होगा।
Effect item inventory से भी remove हो जाएगा।
Active cooldowns और armed abilities साफ हो जाएँगी।
Effect न होने पर सही error message मिलेगा।
Command केवल player चला सकता है, console नहीं।
/amethyst withdraw
Yah command sab use kr sakte hai
Haan, /amethyst withdraw command sabhi players use kar sakte hain. Iske liye amethyst.admin permission ki zaroorat nahi hai.
/amethyst withdraw
Admin permission sirf in commands ke liye hai:
/amethyst key
/amethyst recipes
/amethyst tracker
The compilation failed with this error:
Compilation failed with 9 error(s):
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: illegal start of expression
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: ';' expected
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 220: 'else' without 'if'
} else if (effect == AmethystEffect.FIRE && consumeArmed(fireArmed, attacker.getUniqueId())) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 220: 'else' without 'if'
} else if (effect == AmethystEffect.FIRE && consumeArmed(fireArmed, attacker.getUniqueId())) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: illegal start of expression
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: ';' expected
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: illegal start of expression
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 217: ';' expected
&& event.getEntity() instanceof Player target) {
^
ERROR in src/main/java/com/kodari/amethyst/EffectManager.java at line 220: 'else' without 'if'
} else if (effect == AmethystEffect.FIRE && consumeArmed(fireArmed, attacker.getUniqueId())) {
^
=== COMPILATION ERROR ANALYSIS ===
SYNTAX ERRORS:
- Line 217: ';' expected
- Line 217: ';' expected
- Line 217: ';' expected
ACTION: Check for missing semicolons or brackets
FILES TO INVESTIGATE:
- src/main/java/com/kodari/amethyst/EffectManager.java
- src/main/java/com/kodari/amethyst/EffectManager.java
Please fix this error by creating a new artifact with the corrected code.
EffectManager.java में line 217 की syntax error ठीक कर दी गई है। instanceof Player target अब सही conditional expression के अंदर है, इसलिए संबंधित else if compilation errors भी resolve हो जाने चाहिए।
Minecraft Plugin Prompt — Trail Royal Chamber Ritual
Create a complete, production-ready Minecraft Paper/Spigot plugin for Minecraft Java 1.21.11 called Trail Royal Chamber.
- Key System
Add a custom Royal Chamber Key item.
Admin command: "/royalkey give <player> [amount]"
Requirements:
- Give the player a unique custom key item.
- The key must have a custom name, lore, enchantment glow, and custom model data support.
- The key should not be confused with normal Minecraft items.
- Configurable item name, lore, material, and model data.
- Store a unique PersistentDataContainer identifier on the key.
- Royal Chamber / Ritual
Create a special Royal Chamber Ritual system.
Admin commands:
- "/royalritual setchamber"
- "/royalritual setritual"
- "/royalritual start"
- "/royalritual stop"
- "/royalritual reload"
The chamber should have configurable coordinates.
When a player uses the Royal Chamber Key at the correct chamber/ritual location:
- Consume 1 key.
- Start the Royal Chamber Ritual.
- Announce the ritual to all online players.
- Show the ritual location coordinates.
- Display a 15-minute countdown.
- Show the countdown in the TAB list for all players.
- Also show the countdown using an ActionBar/BossBar.
- Example TAB display:
"⚡ ROYAL RITUAL: 14:59" "📍 X: 120 Y: 65 Z: -340"
The ritual must remain active for exactly 15 minutes.
- Ritual Effects
During the 15-minute ritual:
- Create configurable visual effects around the chamber.
- Add particles.
- Add lightning/energy-style visual effects.
- Add sounds.
- Create a customizable ritual animation.
- Do not cause unwanted world damage unless enabled in config.
- Make all effects configurable.
- Ritual Completion
When the 15-minute ritual ends:
- Announce that the Royal Ritual has finished.
- Remove the ritual countdown from TAB.
- Stop the BossBar/ActionBar.
- Give the ritual reward/effect.
- Trigger a configurable completion animation and sound.
The reward must support custom potion-like abilities, not just vanilla potion effects.
- Custom Abilities
Create a custom ability system.
Example abilities:
🔥 Fire Ability
- Activate using SHIFT/crouch.
- Temporarily surround the player with fire particles.
- Give fire resistance.
- Attacks can ignite enemies.
- Configurable duration and cooldown.
⚡ Lightning Ability
- Activate using SHIFT/crouch.
- Strike lightning at the targeted enemy/location.
- Deal configurable damage.
- Add lightning particles/sound.
- Configurable cooldown.
💪 Strength Ability
- Activate using SHIFT/crouch.
- Temporarily increase attack damage.
- Add strength particles/effects.
- Configurable duration and cooldown.
💨 Speed Ability
- Activate using SHIFT/crouch.
- Give temporary speed.
- Add movement particles.
- Configurable duration and cooldown.
Add additional custom abilities such as:
- 🛡 Royal Shield
- ❄ Frost
- 🌪 Wind Dash
- 🩸 Lifesteal
- 👻 Shadow Step
- 💥 Explosive Strike
- ❤️ Regeneration
- 🪽 Royal Flight/Leap
Every ability must have:
- Custom name
- Custom description
- Activation method
- Duration
- Cooldown
- Particles
- Sounds
- Permissions
- Configurable values
- Shift/Crouch Activation
Players should be able to activate their unlocked ability by holding SHIFT/crouching.
Example:
"SHIFT → Ability activates"
Prevent the ability from activating continuously every tick.
Implement:
- Cooldown system
- Activation delay if needed
- ActionBar cooldown display
- Sound and particle feedback
- Permission checks
Example:
"⚡ Lightning Ability Activated!" "Cooldown: 30s"
- Ability Assignment
Admin commands:
"/royalability give <player> <ability>"
"/royalability remove <player> <ability>"
"/royalability list"
"/royalability info <ability>"
Allow admins to configure which ability is obtained from the Royal Ritual.
Example:
"Royal Ritual → Lightning Ability"
or
"Royal Ritual → Random Ability"
- TAB Integration
While the ritual is active, modify the TAB list/header/footer.
Example:
"════════════════════" "⚡ ROYAL CHAMBER RITUAL" "⏱ TIME LEFT: 12:43" "📍 X: 120 Y: 65 Z: -340" "════════════════════"
Make TAB messages fully configurable.
After the ritual ends, restore the normal TAB display.
- Permissions
Add permissions:
"royalchamber.admin" "royalchamber.key" "royalchamber.ritual" "royalchamber.ability.*"
Admin permissions must control all setup and management commands.
- Configuration
Create a detailed "config.yml".
Everything important must be configurable:
- Ritual duration
- Chamber coordinates
- Key material
- Key name
- Key lore
- Custom model data
- Ritual particles
- Ritual sounds
- BossBar
- TAB messages
- ActionBar messages
- Ability durations
- Ability cooldowns
- Ability damage
- Ability strength
- Ability speed
- Rewards
- Permissions
- Messages
- World name
- Whether lightning causes fire
- Whether ritual causes block damage
- Data Storage
Use PersistentDataContainer where appropriate.
Store player abilities safely so they survive:
- Server restart
- Player logout/login
Use YAML or another lightweight storage system for player data.
- Commands
Implement:
"/royalkey give <player> [amount]"
"/royalritual setchamber"
"/royalritual start"
"/royalritual stop"
"/royalritual status"
"/royalritual reload"
"/royalability give <player> <ability>"
"/royalability remove <player> <ability>"
"/royalability list"
- GUI
Create an optional GUI for abilities.
Title:
"⚜ Royal Abilities"
Display abilities as custom items.
Each item should show:
- Ability name
- Description
- Status
- Cooldown
- Activation method
Example:
"⚡ Lightning" "SHIFT to activate" "Damage: 8" "Cooldown: 30 seconds"
- Technical Requirements
Target:
Minecraft Java 1.21.11
Use:
- Paper API
- Java 21+
- Maven or Gradle
- PersistentDataContainer
- Bukkit/Paper events
- Scheduled tasks
- BossBar API
- Adventure/MiniMessage for modern text formatting where appropriate
Code must be:
- Clean
- Modular
- Optimized
- Fully compilable
- Production-ready
- Null-safe
- Avoid unnecessary repeating tasks
- Properly cancel all tasks when the ritual ends or plugin disables
- Final Deliverable
Generate the complete plugin project, including:
"plugin.yml"
"config.yml"
All Java source files
Command system
Event listeners
Ritual manager
Key manager
Ability manager
Cooldown manager
TAB manager
GUI system
Data storage system
README with installation and commands
The final plugin must compile successfully and work on Minecraft 1.21.11 Paper without requiring unnecessary external plugins.
The generation was stopped before any content could be produced.
Minecraft Plugin Prompt — Trail Royal Chamber Ritual
Create a complete, production-ready Minecraft Paper/Spigot plugin for Minecraft Java 1.21.11 called Trail Royal Chamber.
- Key System
Add a custom Royal Chamber Key item.
Admin command: "/royalkey give <player> [amount]"
Requirements:
- Give the player a unique custom key item.
- The key must have a custom name, lore, enchantment glow, and custom model data support.
- The key should not be confused with normal Minecraft items.
- Configurable item name, lore, material, and model data.
- Store a unique PersistentDataContainer identifier on the key.
- Royal Chamber / Ritual
Create a special Royal Chamber Ritual system.
Admin commands:
- "/royalritual setchamber"
- "/royalritual setritual"
- "/royalritual start"
- "/royalritual stop"
- "/royalritual reload"
The chamber should have configurable coordinates.
When a player uses the Royal Chamber Key at the correct chamber/ritual location:
- Consume 1 key.
- Start the Royal Chamber Ritual.
- Announce the ritual to all online players.
- Show the ritual location coordinates.
- Display a 15-minute countdown.
- Show the countdown in the TAB list for all players.
- Also show the countdown using an ActionBar/BossBar.
- Example TAB display:
"⚡ ROYAL RITUAL: 14:59" "📍 X: 120 Y: 65 Z: -340"
The ritual must remain active for exactly 15 minutes.
- Ritual Effects
During the 15-minute ritual:
- Create configurable visual effects around the chamber.
- Add particles.
- Add lightning/energy-style visual effects.
- Add sounds.
- Create a customizable ritual animation.
- Do not cause unwanted world damage unless enabled in config.
- Make all effects configurable.
- Ritual Completion
When the 15-minute ritual ends:
- Announce that the Royal Ritual has finished.
- Remove the ritual countdown from TAB.
- Stop the BossBar/ActionBar.
- Give the ritual reward/effect.
- Trigger a configurable completion animation and sound.
The reward must support custom potion-like abilities, not just vanilla potion effects.
- Custom Abilities
Create a custom ability system.
Example abilities:
🔥 Fire Ability
- Activate using SHIFT/crouch.
- Temporarily surround the player with fire particles.
- Give fire resistance.
- Attacks can ignite enemies.
- Configurable duration and cooldown.
⚡ Lightning Ability
- Activate using SHIFT/crouch.
- Strike lightning at the targeted enemy/location.
- Deal configurable damage.
- Add lightning particles/sound.
- Configurable cooldown.
💪 Strength Ability
- Activate using SHIFT/crouch.
- Temporarily increase attack damage.
- Add strength particles/effects.
- Configurable duration and cooldown.
💨 Speed Ability
- Activate using SHIFT/crouch.
- Give temporary speed.
- Add movement particles.
- Configurable duration and cooldown.
Add additional custom abilities such as:
- 🛡 Royal Shield
- ❄ Frost
- 🌪 Wind Dash
- 🩸 Lifesteal
- 👻 Shadow Step
- 💥 Explosive Strike
- ❤️ Regeneration
- 🪽 Royal Flight/Leap
Every ability must have:
- Custom name
- Custom description
- Activation method
- Duration
- Cooldown
- Particles
- Sounds
- Permissions
- Configurable values
- Shift/Crouch Activation
Players should be able to activate their unlocked ability by holding SHIFT/crouching.
Example:
"SHIFT → Ability activates"
Prevent the ability from activating continuously every tick.
Implement:
- Cooldown system
- Activation delay if needed
- ActionBar cooldown display
- Sound and particle feedback
- Permission checks
Example:
"⚡ Lightning Ability Activated!" "Cooldown: 30s"
- Ability Assignment
Admin commands:
"/royalability give <player> <ability>"
"/royalability remove <player> <ability>"
"/royalability list"
"/royalability info <ability>"
Allow admins to configure which ability is obtained from the Royal Ritual.
Example:
"Royal Ritual → Lightning Ability"
or
"Royal Ritual → Random Ability"
- TAB Integration
While the ritual is active, modify the TAB list/header/footer.
Example:
"════════════════════" "⚡ ROYAL CHAMBER RITUAL" "⏱ TIME LEFT: 12:43" "📍 X: 120 Y: 65 Z: -340" "════════════════════"
Make TAB messages fully configurable.
After the ritual ends, restore the normal TAB display.
- Permissions
Add permissions:
"royalchamber.admin" "royalchamber.key" "royalchamber.ritual" "royalchamber.ability.*"
Admin permissions must control all setup and management commands.
- Configuration
Create a detailed "config.yml".
Everything important must be configurable:
- Ritual duration
- Chamber coordinates
- Key material
- Key name
- Key lore
- Custom model data
- Ritual particles
- Ritual sounds
- BossBar
- TAB messages
- ActionBar messages
- Ability durations
- Ability cooldowns
- Ability damage
- Ability strength
- Ability speed
- Rewards
- Permissions
- Messages
- World name
- Whether lightning causes fire
- Whether ritual causes block damage
- Data Storage
Use PersistentDataContainer where appropriate.
Store player abilities safely so they survive:
- Server restart
- Player logout/login
Use YAML or another lightweight storage system for player data.
- Commands
Implement:
"/royalkey give <player> [amount]"
"/royalritual setchamber"
"/royalritual start"
"/royalritual stop"
"/royalritual status"
"/royalritual reload"
"/royalability give <player> <ability>"
"/royalability remove <player> <ability>"
"/royalability list"
- GUI
Create an optional GUI for abilities.
Title:
"⚜ Royal Abilities"
Display abilities as custom items.
Each item should show:
- Ability name
- Description
- Status
- Cooldown
- Activation method
Example:
"⚡ Lightning" "SHIFT to activate" "Damage: 8" "Cooldown: 30 seconds"
- Technical Requirements
Target:
Minecraft Java 1.21.11
Use:
- Paper API
- Java 21+
- Maven or Gradle
- PersistentDataContainer
- Bukkit/Paper events
- Scheduled tasks
- BossBar API
- Adventure/MiniMessage for modern text formatting where appropriate
Code must be:
- Clean
- Modular
- Optimized
- Fully compilable
- Production-ready
- Null-safe
- Avoid unnecessary repeating tasks
- Properly cancel all tasks when the ritual ends or plugin disables
- Final Deliverable
Generate the complete plugin project, including:
"plugin.yml"
"config.yml"
All Java source files
Command system
Event listeners
Ritual manager
Key manager
Ability manager
Cooldown manager
TAB manager
GUI system
Data storage system
README with installation and commands
The final plugin must compile successfully and work on Minecraft 1.21.11 Paper without requiring unnecessary external plugins.Minecraft Plugin Prompt — Amethyst
Create a complete, production-ready Paper Minecraft plugin for Java 1.21.11 called Amethyst.
Core Concept
Create an Amethyst Ritual / Amethyst Chamber system where an admin can give a special Amethyst Key to a player. When the key is used at the configured ritual chamber, a 15-minute ritual starts.
Amethyst Key
Admin command: "/amethystkey give <player> [amount]"
The key must:
- Have a custom name: "💜 Amethyst Key"
- Have configurable lore
- Have enchantment-glow support
- Support CustomModelData
- Use PersistentDataContainer to identify the key
- Be configurable in "config.yml"
- Be consumed when starting a ritual
Amethyst Chamber
Commands:
"/amethyst setchamber"
"/amethyst start"
"/amethyst stop"
"/amethyst status"
"/amethyst reload"
When a player uses the Amethyst Key at the configured chamber:
- Consume the key.
- Start the Amethyst Ritual.
- Announce it to every online player.
- Show the chamber coordinates.
- Start an exact 15-minute countdown.
- Display the countdown in TAB.
- Display the countdown using BossBar and ActionBar.
- Create particles, sounds and visual effects around the chamber.
Example:
"💜 AMETHYST RITUAL STARTED!" "📍 X: 120 Y: 65 Z: -340" "⏱ Duration: 15:00"
TAB Display
While the ritual is active, show:
"════════════════════" "💜 AMETHYST RITUAL" "⏱ TIME LEFT: 14:59" "📍 X: 120 Y: 65 Z: -340" "════════════════════"
Make all TAB text configurable.
When the ritual ends, automatically restore the normal TAB display.
Ritual Effects
During the 15-minute ritual:
- Purple/amethyst particles
- Amethyst block/shard visual effects
- End-rod particles
- Energy-ring effects
- Configurable sounds
- Lightning-style energy animation
- Chamber beam/pillar effect
- Periodic particle waves
Do not damage blocks by default.
Ritual Completion
After exactly 15 minutes:
- Stop all ritual effects.
- Remove TAB countdown.
- Remove BossBar.
- Send a completion announcement.
- Play a configurable completion sound.
- Run a configurable reward system.
- Give the player a random or configured Amethyst Ability.
Example:
"💜 AMETHYST RITUAL COMPLETED!" "✨ You received: Lightning Ability"
Custom Amethyst Abilities
Create a fully modular custom ability system.
🔥 Amethyst Fire
SHIFT/crouch to activate.
- Create purple/fire particles.
- Give temporary Fire Resistance.
- Ignite nearby enemies.
- Configurable duration and cooldown.
⚡ Amethyst Lightning
SHIFT/crouch to activate.
- Target the nearest enemy or player's target.
- Strike lightning at the target.
- Deal configurable damage.
- Create purple lightning particles.
- Configurable cooldown.
💪 Amethyst Strength
SHIFT/crouch to activate.
- Increase attack damage temporarily.
- Create amethyst particles.
- Configurable duration.
💨 Amethyst Speed
SHIFT/crouch to activate.
- Give temporary Speed.
- Create movement particles.
- Configurable duration and cooldown.
🛡 Amethyst Shield
SHIFT/crouch to activate.
- Reduce incoming damage.
- Create a purple shield effect.
- Configurable duration and cooldown.
❄ Amethyst Frost
SHIFT/crouch to activate.
- Slow nearby enemies.
- Create snow/amethyst particles.
- Configurable duration and radius.
🌪 Amethyst Dash
SHIFT/crouch to activate.
- Launch the player forward.
- Create an amethyst trail.
- Configurable distance and cooldown.
❤️ Amethyst Lifesteal
When attacking an enemy:
- Restore configurable health.
- Create purple particles.
- Add configurable cooldown.
👻 Amethyst Shadow
SHIFT/crouch to activate.
- Give temporary invisibility.
- Create purple shadow particles.
- Configurable duration.
💥 Amethyst Explosion
SHIFT/crouch to activate.
- Create a controlled explosion effect.
- Damage nearby enemies.
- Do not destroy blocks unless enabled in config.
Ability Commands
"/amethystability give <player> <ability>"
"/amethystability remove <player> <ability>"
"/amethystability list"
"/amethystability info <ability>"
Allow admins to assign specific abilities or configure the ritual to give a random ability.
Ability Cooldowns
Every ability must have:
- Custom cooldown
- Custom duration
- Custom damage
- Custom radius
- Custom particles
- Custom sounds
- ActionBar cooldown display
Example:
"💜 Lightning Activated!" "Cooldown: 30s"
Prevent SHIFT from repeatedly triggering an ability every tick.
Ability GUI
Create:
"/amethystability"
Open GUI:
"💜 Amethyst Abilities"
Each ability item should show:
- Ability name
- Description
- Status
- Cooldown
- Duration
- "SHIFT to Activate"
Player Data
Save unlocked abilities permanently.
Abilities must remain after:
- Relogging
- Server restart
- Death
Use PersistentDataContainer and/or YAML storage.
Permissions
"amethyst.admin"
"amethyst.key"
"amethyst.ritual"
"amethyst.ability.*"
Config
Create a detailed "config.yml" containing:
- Ritual duration
- Chamber world
- Chamber coordinates
- Key material
- Key name
- Key lore
- CustomModelData
- Ritual particles
- Ritual sounds
- TAB messages
- BossBar messages
- ActionBar messages
- Ability settings
- Ability cooldowns
- Ability damage
- Ability duration
- Ability radius
- Rewards
- Permissions
- All plugin messages
Technical Requirements
Target:
Minecraft Java 1.21.11
Use:
- Paper API
- Java 21+
- Maven or Gradle
- Bukkit/Paper events
- PersistentDataContainer
- BossBar API
- Adventure/MiniMessage
- Proper scheduled-task management
The plugin must be:
- Fully compilable
- Production-ready
- Modular
- Optimized
- Null-safe
- Compatible with Paper 1.21.11
- Free from unnecessary external dependencies
Final Project
Generate the complete Amethyst plugin project with:
- "plugin.yml"
- "config.yml"
- Complete Java source code
- Commands
- Event listeners
- Amethyst Key system
- Ritual manager
- Chamber manager
- Ability manager
- Cooldown manager
- TAB manager
- BossBar system
- GUI
- Player-data storage
- README
- Installation instructions
- Complete command/permission documentation
The final result must compile successfully and work on Paper Minecraft 1.21.11.Create a lightweight Minecraft Paper plugin called "Amethyst SMP" for Minecraft Java 1.21.11.
IMPORTANT: Keep the plugin simple. Do NOT add unnecessary commands, economy, GUI, teams, shops, or unrelated systems.
MAIN SYSTEM:
Players should be able to enter a normal Minecraft Trial Chamber and use a custom Amethyst Key inside a Trial Chamber Vault.
When the player inserts the Amethyst Key into the Vault:
- Detect the custom key.
- Consume the key.
- Start a short Amethyst Ritual.
- Play simple particles and sounds around the Vault.
- After the ritual finishes, give the player ONE random Custom Effect.
- Save the obtained effect permanently so it remains after relog/server restart.
CUSTOM EFFECT SYSTEM:
Each Custom Effect must contain EXACTLY 2 unique abilities.
Every effect should have different abilities.
Example:
- STRENGTH EFFECT
Ability 1 - Power:
- Activate with Shift + Left Control.
- Give Strength II for 30 seconds.
- Play amethyst particles and sound.
Ability 2 - Freeze Hit:
- Activate/enable with Shift + Right Control.
- When the player hits another player, freeze that target for 15 seconds.
- The frozen player cannot move normally.
- Show an icy/amethyst visual effect.
- SPEED EFFECT
Ability 1 - Speed Burst:
- Shift + Left Control.
- Give a strong Speed boost for a short duration.
Ability 2 - Dash:
- Shift + Right Control.
- Dash the player forward a short distance.
- FIRE EFFECT
Ability 1 - Flame Body:
- Shift + Left Control.
- Give Fire Resistance temporarily and create flame particles.
Ability 2 - Fire Strike:
- Shift + Right Control.
- The next player hit is set on fire for a short duration.
- DEFENSE EFFECT
Ability 1 - Royal Shield:
- Shift + Left Control.
- Temporarily reduce incoming damage.
Ability 2 - Knockback:
- Shift + Right Control.
- When attacking, knock the target backward with a custom effect.
- SHADOW EFFECT
Ability 1 - Shadow:
- Shift + Left Control.
- Give temporary invisibility.
Ability 2 - Shadow Strike:
- Shift + Right Control.
- The next attack deals bonus damage and applies a short debuff.
Create additional Custom Effects if useful, but EVERY effect must have exactly 2 different abilities.
KEYBINDS:
Use these two ability key combinations:
- SHIFT + LEFT CONTROL = Ability 1
- SHIFT + RIGHT CONTROL = Ability 2
The plugin must detect these key combinations reliably without repeatedly triggering the ability every tick.
Each ability must have:
- Cooldown
- Duration where applicable
- Activation sound
- Particles
- ActionBar message
- Anti-spam protection
RITUAL:
The Trial Chamber Vault ritual should feel special but remain lightweight.
Use purple/amethyst-themed particles, sounds and a simple animation.
Do not destroy blocks or damage the Trial Chamber.
KEY:
Create a custom Amethyst Key identified using PersistentDataContainer.
It should have:
- Custom name
- Custom lore
- Amethyst/purple appearance
- Optional CustomModelData
DATA:
Save the player's Custom Effect and ability data so it survives:
- Relog
- Server restart
- Death
TECHNICAL REQUIREMENTS:
- Plugin name: Amethyst SMP
- Minecraft: Paper 1.21.11
- Java 21+
- Use Paper/Bukkit API
- Use PersistentDataContainer
- Proper event handling
- Efficient cooldown system
- Cancel all tasks correctly
- No unnecessary external dependencies
- Fully compilable and production-ready
IMPORTANT:
Do not add extra gameplay systems.
The entire plugin should focus only on:
Amethyst Key → Trial Chamber Vault → Ritual → Custom Effect → 2 Unique Abilities.RITUAL TRACKING SYSTEM
When a player inserts an Amethyst Key into a Trial Chamber Vault and the ritual starts:
- The ritual duration must be exactly 15 minutes.
- During the entire 15-minute ritual, every online player must see a ritual tracker at the top of their screen (BossBar style).
- The BossBar must display:
- Remaining ritual time - Ritual coordinates - A message showing that an Amethyst Effect is being crafted
Example: 💜 AMETHYST RITUAL ACTIVE ⏱ Time Left: 14:32 📍 X: 120 Y: 64 Z: -340 ✨ Effect Crafting In Progress
The BossBar must update in real time until the ritual ends.
COMPASS TRACKING SYSTEM
While a ritual is active:
- Every online player automatically receives a special Ritual Tracker Compass.
- The compass permanently tracks the player currently performing the ritual.
- The compass should always point toward that player.
- New players joining during the ritual must also receive the compass.
- If a player dies and respawns, they must automatically receive the compass again.
- Players must not be able to permanently lose, drop, move, destroy, or remove the tracker compass while tracking is enabled.
Admin toggle command:
/amethyst tracker true /amethyst tracker false
Tracker TRUE:
- Give the tracker compass to all online players.
- Give it to future joining players.
- Re-give it after death if missing.
Tracker FALSE:
- Remove all tracker compasses from every player's inventory.
- Stop giving the compass on join or respawn.
Compass requirements:
- Custom name: "💜 Ritual Tracker"
- Custom lore explaining that it tracks the ritual player.
- Identified using PersistentDataContainer.
- Cannot be duplicated for exploits.
- Cannot be renamed to fake the tracker.
When the ritual ends:
- The tracker system should stop.
- If tracker mode is disabled, remove all tracker compasses.
- If tracker mode is enabled, keep tracking behavior according to the config/command settings.
IMPORTANT:
The compass system must be lightweight, optimized, and work correctly after relogs, deaths, server restarts, and player joins.
Plan:
Inspect the existing Amethyst plugin and identify the ritual, key, command, persistence, and event flow.
Add the 15-minute BossBar ritual tracker with live time/coordinates.
Add the protected Ritual Tracker compass, admin toggle, join/respawn handling, and cleanup.
Update configuration/permissions and keep the implementation lightweight and compilable.
Existing ritual timing and BossBar flow are in place; I’m tightening the requested production behavior now.
I’m also adding the missing configurable key glow/model-data support and the explicit
/amethystkey give <player> [amount]admin command while preserving the existing commands.
Amethyst SMP में requested Ritual Tracking और Compass Tracking system जोड़/सुधार दिया गया है।
Ritual अब exact 15 मिनट चलता है और restart के बाद restore होता है।
सभी online players को live BossBar मिलता है:
Remaining time
Vault coordinates
Effect crafting status
ActionBar भी हर second update होता है।
Ritual start और completion announcements configurable हैं।
Ritual active होने पर tracker compass:
हर online player को मिलता है
Join और respawn पर वापस मिलता है
Drop, move, chest/hopper transfer, death-drop और pickup exploits रोके गए हैं
Duplicate tracker compasses automatically remove होते हैं
Ritual performer को लगातार track करता है
/amethyst tracker true|falseadmin toggle मौजूद है।Tracker disable होने पर सभी tracker compasses remove होते हैं।
Ritual समाप्त होने पर compass behavior
keep-after-ritualconfig से नियंत्रित होता है।Key में configurable glow और CustomModelData support जोड़ा गया है।
नया admin command जोड़ा गया है:
/amethystkey give <player> [amount]
Key configuration में अब ये options हैं:
key:
material: AMETHYST_SHARD
name: '&dAmethyst Key'
glow: true
model-data: 0
BossBar, ActionBar और messages configurable हैं:
ritual:
bossbar:
color: PURPLE
style: SOLID
actionbar: '...'
messages:
started: '...'
finished: '...'
package com.kodari.amethyst;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
import org.bukkit.command.PluginCommand;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;
import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XEnchantment;
import java.util.List;
public final class AmethystPlugin extends JavaPlugin {
private TrackerManager trackerManager;
private RitualManager ritualManager;
private EffectManager effectManager;
private NamespacedKey amethystKey;
private BukkitTask tickTask;
@Override
public void onEnable() {
saveDefaultConfig();
this.amethystKey = new NamespacedKey(this, "amethyst_key");
this.effectManager = new EffectManager(this);
this.trackerManager = new TrackerManager(this);
this.ritualManager = new RitualManager(this, trackerManager, effectManager);
Bukkit.getPluginManager().registerEvents(effectManager, this);
Bukkit.getPluginManager().registerEvents(trackerManager, this);
Bukkit.getPluginManager().registerEvents(ritualManager, this);
PluginCommand command = getCommand("amethyst");
if (command != null) {
command.setExecutor(new AmethystCommand(this));
}
PluginCommand keyCommand = getCommand("amethystkey");
if (keyCommand != null) {
keyCommand.setExecutor(new AmethystCommand(this));
}
ritualManager.restore();
this.tickTask = Bukkit.getScheduler().runTaskTimer(this, () -> {
ritualManager.tick();
trackerManager.tick();
effectManager.tick();
}, 1L, 20L);
}
@Override
public void onDisable() {
if (tickTask != null) {
tickTask.cancel();
}
if (ritualManager != null) {
ritualManager.saveState();
}
}
public TrackerManager getTrackerManager() {
return trackerManager;
}
public RitualManager getRitualManager() {
return ritualManager;
}
public EffectManager getEffectManager() {
return effectManager;
}
public ItemStack createAmethystKey() {
String materialName = getConfig().getString("key.material", "AMETHYST_SHARD");
ItemStack item = XMaterial.matchXMaterial(materialName)
.map(XMaterial::parseItem)
.orElse(null);
if (item == null) {
return null;
}
ItemMeta meta = item.getItemMeta();
if (meta == null) {
return item;
}
String name = getConfig().getString("key.name", "&dAmethyst Key");
meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name));
List<String> configuredLore = getConfig().getStringList("key.lore");
if (!configuredLore.isEmpty()) {
meta.setLore(configuredLore.stream()
.map(line -> ChatColor.translateAlternateColorCodes('&', line))
.toList());
}
if (getConfig().getBoolean("key.glow", true)) {
XEnchantment.matchXEnchantment("UNBREAKING").ifPresent(enchantment ->
meta.addEnchant(enchantment.getEnchant(), 1, true));
}
int modelData = getConfig().getInt("key.model-data", 0);
if (modelData > 0) {
meta.setCustomModelData(modelData);
}
meta.getPersistentDataContainer().set(amethystKey,
org.bukkit.persistence.PersistentDataType.BYTE, (byte) 1);
item.setItemMeta(meta);
return item;
}
public boolean isAmethystKey(ItemStack item) {
if (item == null || item.getItemMeta() == null) {
return false;
}
Byte marker = item.getItemMeta().getPersistentDataContainer().get(
amethystKey, org.bukkit.persistence.PersistentDataType.BYTE);
return marker != null && marker == (byte) 1;
}
}