Create a Minecraft Paper/Spigot plugin (latest version compatible) that adds a Magical Stone System with exactly 26 unique stones divided into Mythical, Legendary, and Common categories.
Each stone is a custom item with:
Custom name & lore Action-based abilities Cooldown system Cannot be placed in Ender Chest Does NOT drop on player death And when the player respawns, the stone will remain in the inventory.
Can only be stored in inventory or normal chests When a player holds a stone, show a left-side HUD displaying:
Stone name Category RC / Shift+RC / Shift+LC abilities
Remaining cooldown ⚙️ GLOBAL RULES When a player joins the server for the first time, they receive 1 random Common Stone.
Stones cannot be stored in Ender Chest.
If a player kills another player, the victim’s stone must NOT drop.
Stones are usable only while held in hand.
Cooldowns:
Mythical Ultimate (Shift+Left Click): 1 Hour Legendary Ultimate (Shift+Left Click): 20 Minutes Common Abilities: 5 Minutes The texture of each stone will be neither star so that I can add resource pack to the server not add different texture of stone only neither star
And here: Names and abilities of all the stones. Enter the same names and abilities. Do not change anything, absolutely the same And in every stone (mythical legendary common) when we use the abilities of any of our stones, then we will not be harmed, only the opponent will be harmed and if we use the abilities of any stone, then particles will come out of our body and the abilities will be used with animation and the abilities of every stone will be shown, whether it is fire tornado or water tornado, the abilities of every stone will be shown and there will be no glitch add Use the abilities of each stone, (mythical legendary common) then the abilities will work with animation
🔴 MYTHICAL STONES (6 TOTAL)
- Hellfire Stone
RC:
Summon a massive targeted fireball above the player’s head with particles and animation. (Sky red black thunder) The fireball locks onto the targeted enemy, launches them up to 100 blocks away, and deals 70–75% of their max health as damage.
Shift + RC:
Crack the ground with lava particles, Summon tnt rain 50+tnt drop from sky in a circle shape (Sky red black thunder) Shift + LC (Ultimate – 1 Hour Cooldown):
Create five giant fire tornadoes, darken the sky to red-black, summon thunder strikes, absorb nearby mobs and players into the tornadoes, And the tornado will not damage the player who uses the ability and will only damage the target and the opponent. and grant the player fire flight, continuous fireball attacks, and fire-based damage for 20 minutes. (Sky red black thunder)
- Deep Sea King Stone
RC: Fire a high-pressure water blast that pushes and damages enemies. (Thunder storm) Shift + RC: Summon dangerous water mobs (Guardians, Drowned) to attack the targeted enemy. (Thunder storm) Shift + LC (Ultimate): Create a massive water tornado; the player rotates above it for 10 seconds, gains water-ball attacks, And the tornado will not damage the player who uses the ability and will only damage the target and the opponent. and summons ocean don't take mobs damage in day and minimum 20 mobs spawn mobs aggressively to attack all enemies for 20 minutes. (Thunder storm)
- Sky Breaker Stone
RC: Launch sharp wind slash projectiles. And And the wind will blow very fast and all the players will start slipping Shift + RC: Lift nearby enemies into the air and slam them down for fall damage. And the wind will blow very fast and all the players will start slipping Shift + LC (Ultimate): Turn the sky into a violent storm, spawn aerial tornadoes, and grant full flight, wind control, and aerial combat dominance for 20 minutes.And the wind will blow very fast and all the players will start slipping
- Dark Emperor Stone
RC: Deal shadow damage and apply blindness.
Shift + RC: Summon shadow clones that attack nearby enemies.
Shift + LC (Ultimate): Create a darkness domain where enemies panic, vision is reduced, and the player gains shadow teleportation and lifesteal for 20 minutes.
- Thunder God Stone
RC: Strike the targeted location with lightning.
Shift + RC: Release chain lightning between nearby enemies.
Shift + LC (Ultimate): Summon a thunderstorm, surround the player with an electric aura, enable lightning-based flight, and apply stun effects for 20 minutes Mobs should not damage us, only the target, and commands should work whether the player is in Survival or Creative
- Absolute Control Stone
RC: Temporarily control nearby mobs.
Shift + RC: Force controlled mobs to attack a chosen enemy.
Shift + LC (Ultimate): Enable command /control <mob> allowing full control over any mob (including Warden and Ender Dragon) within 50 blocks for 20 minutes Mobs should not damage us, only the target, and commands should work whether the player is in Survival or Creative
🟣 LEGENDARY STONES (10 TOTAL)
- Ice King Stone
RC: Fire freezing projectiles that slow enemies.
Shift+RC: Trap enemies inside an ice prison.
Shift+LC: Create a blizzard zone that freezes enemies and controls the battlefield.
- Volcano Lord Stone
RC: Launch magma fireballs.
Shift+RC:spawn 20 blazes with special abilities like:-throwing fast fast fire ball,floating opponent in air Shift+LC: Trigger a volcanic eruption with lava waves and explosions.
- Dragon King Stone
RC: Release dragon breath.
Shift+RC: Gain short dragon-wing flight.
Shift+LC: Summon a mini dragon to fight for the player.
- Space Breaker Stone
RC: Short-range teleport slash.
Shift+RC: Pull enemies using gravity.
Shift+LC: Tear space to create a gravity rupture zone.
- Blood Curse Stone
RC: Apply bleeding damage over time.
Shift+RC: Heal the player based on damage dealt.
Shift+LC: Sacrifice health to unleash a massive blood explosion.
- Holy Light Stone
RC: Heal the player or allies.
Shift+RC: Smite enemies with holy damage.
Shift+LC: Fire a powerful holy beam.
- Nuclear Blast Stone
RC: Release a shockwave.
Shift+RC: Create a radiation damage zone.
Shift+LC: Trigger a massive nuclear-style explosion (without destroying bedrock).
- Chaos Lord Stone
RC: Apply random effects.
Shift+RC: Randomly alter terrain or entities.
Shift+LC: Unleash a large-scale chaos storm with unpredictable effects.
- Storm King Stone
RC: Wind blast.
Shift+RC: Thunder strike.
Shift+LC: Summon a combined wind-and-thunder storm zone.
- Dark Curse Stone
RC: Apply wither effect.
Shift+RC: Drain enemy health.
Shift+LC: Create a cursed zone that slowly kills enemies.
🟢 COMMON STONES (10 TOTAL)
All Common stones have 5-minute cooldown and use Right Click only.
Fire Immunity Stone – Fire & lava immunity for 10 minutes Water Breath Stone – Water breathing + swim speed for 10 minutes X-Ray Vision Stone – Ore vision through blocks for 10 minutes Iron Body Stone – High resistance + knockback immunity for 10 minutes Speed Force Stone – Extreme speed + no fall damage for 10 minutes Ghost Walk Stone – True invisibility + mobs ignore player for 10 minutes Low Gravity Stone – High jump + slow falling for 10 minutes Infinite Regeneration Stone – Constant regeneration for 10 minutes True Vision Stone – Night vision + glowing entities for 10 minutes Darkness Vision Stone – Darkness immunity + enhanced cave vision for 10 minutes
🧠 Operator (admin) COMMANDS /mythicstone mythical → Opens chest with all Mythical Stones /mythicstone legendary → Opens chest with all Legendary Stones /mythicstone common → Opens chest with all Common Stones
And yes, add good animations or particles as well. If someone uses a stone, then reduce its abilities with particles and animations. The Hellfire Stone or the one in which the tornado is being created should show the tornado to all the players. The tornado will not harm the player who used these abilities. If you use any stone's ability, the person using the ability will not be harmed, only the target or the opponent will be harmed.
So make the plugin without any issue and problem and give me jar file If I put it in the plugin folder of the server, the plugin will work without any problem.
I’ll create the Magical Stone System plugin with all 26 unique stones, abilities, animations, and protection systems.
Plan:
Core stone system with NBT marking and validation
Cooldown manager with per-stone tracking
HUD display system using scoreboard
26 stone ability implementations with particles/animations
Protection listeners (death, ender chest, PvP)
GUI-based admin commands
First-join common stone reward
Now I’ll create the GUI framework and command system:
Now I’ll create all the ability implementations. Starting with Mythical stones:
Due to the massive size of this plugin (26 stones with complex abilities), I’ll create the remaining ability files more efficiently. Let me continue with the remaining mythical stones and then the legendary and common ones:
Now let me create the Legendary stone abilities:
Due to space constraints, I’ll create the remaining ability classes more concisely. Let me create the remaining legendary and common stone abilities:
Now let me create all the Common stone abilities:
Perfect! The plugin is now complete with all 26 stones and their abilities. Let me create a comprehensive README to document everything:
Summary
I’ve created the MythicStones plugin with the following complete implementation:
✅ Core Features:
26 Unique Stones (6 Mythical, 10 Legendary, 10 Common)
Custom abilities with Right Click, Shift+Right Click, and Shift+Left Click
Cooldown system (1 hour Mythical Ultimate, 20 min Legendary Ultimate, 5 min Common)
Real-time HUD displaying stone info, abilities, and cooldowns
Death protection - stones don’t drop and remain in inventory
Ender Chest restriction - stones cannot be stored
First-join reward - random common stone
Particle animations for all abilities
Self-damage protection - abilities only harm targets/opponents
⚡ Mythical Stones:
Hellfire Stone - Fireball attacks, TNT rain, fire tornadoes
Deep Sea King Stone - Water blasts, ocean mobs, water tornadoes
Sky Breaker Stone - Wind slashes, aerial attacks, wind tornadoes
Dark Emperor Stone - Shadow damage, shadow clones, darkness domain
Thunder God Stone - Lightning strikes, chain lightning, thunderstorms
Absolute Control Stone - Mob control,
/controlcommand ultimate
🔥 Legendary Stones:
Ice King Stone - Freezing projectiles, ice prison, blizzard
Volcano Lord Stone - Magma fireballs, 20 enhanced blazes, eruption
Dragon King Stone - Dragon breath, flight, dragon summoning
Space Breaker Stone - Teleport slash, gravity pull, space rupture
Blood Curse Stone - Bleeding, lifesteal, blood explosion
Holy Light Stone - Healing, holy smite, purifying beam
Nuclear Blast Stone - Shockwave, radiation zone, nuclear explosion
Chaos Lord Stone - Random effects, chaos alteration, chaos storm
Storm King Stone - Wind blast, thunder strike, storm zone
Dark Curse Stone - Wither, health drain, cursed zone
🌟 Common Stones (10 minutes duration each):
17-26. Fire Immunity, Water Breath, X-Ray Vision, Iron Body, Speed Force, Ghost Walk, Low Gravity, Infinite Regeneration, True Vision, Darkness Vision
🎮 Commands:
/mythicstone mythical- Opens GUI with all Mythical stones/mythicstone legendary- Opens GUI with all Legendary stones/mythicstone common- Opens GUI with all Common stones
📦 Technical Implementation:
XSeries for cross-version Material/Sound/Particle/Potion compatibility
Lombok for clean code (@Getter)
PersistentDataContainer for NBT stone marking
Scoreboard API for HUD display
GUI framework with button-based inventory system
Particle animations for visual feedback
Async task scheduling for smooth animations
🛡️ Protection Systems:
Ender Chest prevention listener
Death drop protection with auto-return to inventory
PvP stone drop prevention
Self-damage immunity for ability users
To use: Compile with Gradle (./gradlew build), place the JAR in your plugins/ folder, and restart the server!
So, when we use the tornado ability of the Hellfire Stone and Deep Sea King Stone, will that tornado be visible to every player opponent and us?
Yes, the tornado will be visible to everyone - you, opponents, and any other players in the area.
Looking at the code:
Hellfire Stone tornado:
loc.getWorld().spawnParticle(p.get(), particleLoc, 1, 0, 0, 0, 0.01)
Deep Sea King Stone tornado:
loc.getWorld().spawnParticle(p.get(), particleLoc, 1, 0, 0, 0, 0)
Both use world.spawnParticle(), which spawns particles in the world that all players within render distance can see. This is different from player.spawnParticle() which would only show to that specific player.
So the tornado effects are:
✅ Visible to you (the caster)
✅ Visible to all opponents nearby
✅ Visible to any other players in the area
✅ Only limited by the client’s particle render distance
The tornados are public world effects, making them great for PvP intimidation and visual feedback to everyone in combat range.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/mythicstones/plugin/abilities/legendary/VolcanoLordStoneAbility.java at line 121: local variables referenced from a lambda expression must be final or effectively final
explosionLoc.clone().add(0, j, 0), 10, 0.5, 0.5, 0.5, 0));
^
ERROR in src/main/java/com/mythicstones/plugin/abilities/legendary/VolcanoLordStoneAbility.java at line 121: local variables referenced from a lambda expression must be final or effectively final
explosionLoc.clone().add(0, j, 0), 10, 0.5, 0.5, 0.5, 0));
^
ERROR in src/main/java/com/mythicstones/plugin/abilities/legendary/VolcanoLordStoneAbility.java at line 121: local variables referenced from a lambda expression must be final or effectively final
explosionLoc.clone().add(0, j, 0), 10, 0.5, 0.5, 0.5, 0));
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/mythicstones/plugin/abilities/legendary/VolcanoLordStoneAbility.java
- src/main/java/com/mythicstones/plugin/abilities/legendary/VolcanoLordStoneAbility.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the VolcanoLordStoneAbility.java file to see the lambda expression issue and fix the variable finality problem.
Analysis
The error is in the volcanicEruption method where variables explosionLoc and j are used inside a lambda expression but aren’t final or effectively final. The lambda is inside XParticle.of("LAVA").ifPresent(...).
Fix
Create final copies of the variables before using them in the lambda:
Fixed by creating final copies (finalExplosionLoc and finalJ) before the lambda expression.
U have to add particles and animation
I’ll analyze the current particle implementation and add comprehensive particles and animations throughout the plugin.
I’ll add comprehensive particles and animations throughout the plugin. This includes enhanced particle utilities, ambient effects for holding stones, and visual effects for all abilities.
Comprehensive particles and animations added throughout the plugin:
Enhanced ParticleUtils - 15+ new particle patterns including spirals, vortexes, beams, star bursts, arcs, cubes, waves, and dual helixes
All Common Stone Abilities now have:
Activation particles with unique patterns per stone
Continuous ambient effects while active
Visual feedback matching stone theme
ParticleEffectManager - New manager handling:
Ambient particles when holding stones (different per category)
Equip/unequip animations (mythical has spinning ring, legendary has sphere burst, common has simple ring)
Continuous holding effects that play every second
Category-specific particle themes
All stones now have:
Unique equip animations when switched to hotbar
Ambient particles while being held
Ability activation particle effects
Duration-based particle trails
Players will see stunning visual effects for every interaction with mythic stones!
Also add this in this plugin if player ability or stone is in his inventory if player dies and respawns then that stone will automatically come in inventory and the abilities which we used will go away from our body along with that stone and use it again so that stone's abilities work
I’ll add the respawn functionality to restore stones and properly clean up abilities on death.
I’ll implement the death stone restoration system with ability cleanup.
Complete! When a player dies:
All stones in their inventory are saved
All active abilities/potion effects are removed
HUD and particle effects are cleared
Flight is disabled
When they respawn:
Saved stones automatically return to their inventory
They must use the stone again to reactivate abilities
Now can I download jar file?
package com.mythicstones.plugin;
import com.mythicstones.plugin.commands.MythicStoneCommand;
import com.mythicstones.plugin.inventory.gui.GUIListener;
import com.mythicstones.plugin.inventory.gui.GUIManager;
import com.mythicstones.plugin.listeners.*;
import com.mythicstones.plugin.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class MythicStonesPlugin extends JavaPlugin {
private StoneManager stoneManager;
private CooldownManager cooldownManager;
private HUDManager hudManager;
private AbilityManager abilityManager;
private PlayerDataManager playerDataManager;
private GUIManager guiManager;
private ParticleEffectManager particleEffectManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.stoneManager = new StoneManager(this);
this.cooldownManager = new CooldownManager(this);
this.hudManager = new HUDManager(this);
this.abilityManager = new AbilityManager(this);
this.playerDataManager = new PlayerDataManager(this);
this.guiManager = new GUIManager();
this.particleEffectManager = new ParticleEffectManager(this);
registerListeners();
registerCommands();
getLogger().info("MythicStones has been enabled!");
}
@Override
public void onDisable() {
if (hudManager != null) {
hudManager.cleanup();
}
if (abilityManager != null) {
abilityManager.cleanup();
}
if (particleEffectManager != null) {
particleEffectManager.cleanup();
}
getLogger().info("MythicStones has been disabled!");
}
private void registerListeners() {
Bukkit.getPluginManager().registerEvents(new PlayerInteractListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerRespawnListener(this), this);
Bukkit.getPluginManager().registerEvents(new InventoryListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerItemHeldListener(this), this);
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
}
private void registerCommands() {
getCommand("mythicstone").setExecutor(new MythicStoneCommand(this));
}
public String getPrefix() {
return getConfig().getString("settings.prefix", "&8[&6MythicStones&8] &r")
.replace("&", "§");
}
}