You are a professional Minecraft plugin developer. Create a single all-in-one SMP plugin named Relic Realm. The plugin must work perfectly for Java Edition (Paper/Spigot) and Bedrock Edition via Geyser + Floodgate. Gameplay must be identical, smooth, and visually clear for both platforms. Players gain powers via Relics. Relics exist only in INVENTORY GUI, never in inventory. Tokens exist only in INVENTORY GUI/Profile. PvP is enabled but no grind from PvP. Relics can be active (manual) or passive (automatic). Progression uses tokens for buying relics, upgrading relics, and unlocking relic slots. ✴️Starter inventory items: 🔶Wooden Sword called Relic Controller opens the Relic INVENTORY GUI on right-click or hold. It is fixed in inventory, glowing, and cannot be dropped, moved, stored, or lost on death. 🔶Steve Head called Profile Core opens the Profile INVENTORY GUI, shows tokens, equipped relics, cooldowns, and progress. Cannot be dropped, moved, stored, or lost on death. ✴️Relic slot system: There are seven total relic slots. Slot 1 is an active slot and unlocked by default. Slots 2 through 7 are passive slots and locked initially. Players can unlock them using tokens. Unlock costs are: Slot 2 costs 1,000 tokens, Slot 3 costs 3,000 tokens, Slot 4 costs 6,000 tokens, Slot 10 costs 15,000 tokens, Slot 6 costs 20,000 tokens, and Slot 7 costs 25,000 tokens. Only one active relic may be equipped at a time. Active relics cannot be placed into passive slots. Passive relics can be placed in the active slot. INVENTORY GUI must block invalid placement and show a clear message. INVENTORY GUI shows slot status, relic type, cooldowns, and unlock cost. Tokens are used to buy slots. ✴️Active relics are activated manually with Shift plus Right Click. On Bedrock, players crouch and hold/use. Abilities trigger instantly and start their cooldowns. Cooldowns are displayed in the Relic INVENTORY GUI, Profile INVENTORY GUI, and optionally via an icon above the action bar. Passive relics activate automatically with optional internal cooldowns. Passive relics are triggered by combat, movement, or conditions such as low HP, taking damage, or standing still. ✴️Relics: 🔶 Combat relics: 🔸 Blood relic: passive, life steal effect 6% to 12% with no cooldown. 🔸Thunder relic: passive, with a chance of lightning strike 10% to 25%, internal cooldown 10 to 5 seconds. 🔸Void relic: passive, causing blindness and slowness for 2 to 5 seconds, no cooldown. 🔸Berserker relic: passive, giving 20% to 50% extra damage when below 40% HP, no cooldown. 🔸 Frost relic: passive, slowing enemies and attack speed for 3 to 6 seconds, internal cooldown 8 to 4 seconds. 🔸Warcry relic: active, giving 25% to 50% extra damage plus speed boost for 5 to 8 seconds, cooldown 25 to 15 seconds. 🔶 Defense relics: 🔸Titan relic: passive, adding 2 to 8 extra hearts with no cooldown. 🔸Phoenix relic: passive, that prevents death and heals 40% to 60%, cooldown 15 to 10 minutes. 🔸Stone relic: passive, granting damage reduction while standing still, no cooldown. 🔸Aegis relic: active, granting a shield and resistance for 6 to 10 seconds, cooldown 30 to 18 seconds. 🔶 Movement and control relics: 🔸Blink relic: active, teleport forward instantly, cooldown 12 to 6 seconds. 🔸Wind relic: passive, granting double jump and slow fall, no cooldown. 🔸Gravity relic: active, pulling nearby enemies inward instantly, cooldown 14 to 8 seconds. 🔶 Utility and hybrid relics: 🔸Miner relic: passive, auto-smelt and mining speed boost, no cooldown. 🔸Shadow relic: passive, granting invisibility and speed after taking damage for 3 to 5 seconds, cooldown 20 to 12 seconds. 🔸Time relic: active, slowing nearby enemies and reducing own cooldowns for 4 to 6 seconds, cooldown 35 to 20 seconds. Soul relic: passive granting temporary extra hearts after PvP combat for 6 to 12 seconds, no cooldown. ✴️Token system: Tokens exist only in INVENTORY GUI/Profile and are never visible in chat, commands, or items. Players earn tokens automatically from playtime and activities. Playtime tokens: 25 tokens every 5 minutes of active play, with AFK detection preventing gains. Activity tokens: mining ores earns 25 for coal, 50 for iron, 75 for gold, 150 for diamond. Farming crops earns 10 tokens per harvested block. Cutting trees earns 15 tokens per log. Killing mobs grants 15 tokens for passive mobs and 30 for hostile mobs. Exploring new chunks grants 50 tokens per new chunk. Breeding animals grants 20 tokens per breed. Bonus tokens: daily login streak gives 250 tokens, first-time join bonus gives 500 tokens, and special event rewards are configurable. Tokens are only visible in the Relic INVENTORY GUI and Profile INVENTORY GUI, with optional floating animation or particle effect when earned. ✴️Relic purchase: Passive relics cost 500 to 1,500 tokens. Active relics cost 3,500 to 7,000 tokens. INVENTORY GUI shows price, type, and slot restrictions. Relic upgrade: level 1 to 2 costs 500 tokens, level 2 to 3 costs 1,200 tokens, level 3 to 4 costs 2,500 tokens, level 4 to 5 costs 5,000 tokens. Level upgrades increase ability effectiveness. ✴️INVENTORY GUI system: Relic INVENTORY GUI displays token count, slot count, owned relics, active slot highlighted, buy relics button, upgrade relics button, unlock slots button. Profile INVENTORY GUI displays token balance, equipped relics, active cooldowns, slot unlock progress, and relic levels. INVENTORY GUI is touch-friendly for Bedrock players. ✴️Commands: Player commands: /relics opens Relic INVENTORY GUI, /profile opens Profile INVENTORY GUI, /relic help shows guide. Admin commands: /relic give , /relic setlevel , /relic reload. ✴️Player flow: First join receives one random relic and the active slot unlocked. Players earn tokens via playtime and activity. Players open Relic INVENTORY GUI to equip relics (one active, multiple passive). Players upgrade relics using tokens. Players unlock additional slots using tokens. Active relics are used with Shift + Right Click or crouch + hold/use on Bedrock. Passive relics activate automatically. ✴️Final goal: Deliver a polished, visually clear, anime-style SMP relic plugin with full INVENTORY GUI system, strict active/passive rules, tokens visible only in INVENTORY GUI, enforces slot rules, balanced high-value economy, compatible with Java and Bedrock, easy for players, minimal admin effort.
I’ll create a comprehensive anime-style SMP relic plugin with full GUI system and Java/Bedrock compatibility.
Project created successfully! RelicRealm is now ready with a complete anime-style SMP relic power system.
Key Features Implemented:
✅ Full GUI System - Event-driven inventory framework with button handlers
✅ 17 Unique Relics - Combat, Defense, Movement, and Utility categories
✅ Token Economy - Earned through playtime, mining, farming, combat, exploration, and breeding
✅ 7-Slot System - 1 active slot (unlocked by default), 6 passive slots (unlockable with tokens)
✅ Relic Progression - 5 level upgrades per relic with increasing effectiveness
✅ Starter Items - Relic Controller (Wooden Sword) and Profile Core (Steve Head) that cannot be dropped or lost
✅ Java + Bedrock Support - Floodgate compatibility, XSeries for cross-version materials/sounds
✅ Active Relic Activation - Shift + Right Click (crouch + use on Bedrock)
✅ Passive Auto-Triggers - Combat, damage, movement, low HP conditions
✅ Admin Commands - Give relics, set levels, reload config
✅ Daily Login Bonuses - Streak system with token rewards
✅ First Join Rewards - 500 tokens + 1 random relic
All systems are fully integrated and ready to compile!
the starter items should not be dropped after death and all relics should work properly. lower the token reward of walking chunk to 5 tokens. and replace all relics and their abilities with the following relics and their abilities:
The generation was stopped before any content could be produced.
the starter items should not be dropped after death and all relics should work properly. lower the token reward of walking chunk to 5 tokens. and replace all relics and their abilities with the following relics and their abilities: ✴️Zombie Relic Type: Passive Ability: 15% chance to summon a temporary zombie ally for 5 seconds when hitting enemies Effect: Zombie attacks enemies for player, basic melee damage Cooldown: None ✴️Skeleton Relic Type: Passive Ability: 10% chance to shoot 3 rapid arrows at nearest enemies when hitting Effect: Deals ranged damage (6–10 per arrow) Cooldown: 8–5 seconds ✴️Creeper Relic Type: Active Ability: Detonate in a 3-block radius, dealing 8–12 damage without breaking blocks Activation: Shift + Right Click Cooldown: 25–15 seconds ✴️Spider Relic Type: Passive Ability: 15% chance to apply Slowness II to enemies for 3 seconds on hit Effect: Slows enemies to make them easier to hit Cooldown: None ✴️Enderman Relic Type: Active Ability: Teleport to target enemy within 10 blocks, deal 6–10 damage, apply Weakness I Activation: Shift + Right Click Cooldown: 20–12 seconds ✴️Blaze Relic Type: Active Ability: Launch 3 fireballs in a cone, dealing 6–10 damage each Activation: Shift + Right Click Cooldown: 20–12 seconds ✴️Iron Golem Relic Type: Passive Ability: Reduce incoming melee damage by 15% and reflect 10% back Effect: Defensive, reduces damage taken Cooldown: None ✴️Slime Relic Type: Passive Ability: 20% chance to bounce off melee attacks and slow enemies for 2 seconds Cooldown: 8–5 seconds ✴️Witch Relic Type: Active Ability: Throw harmful potion at nearby enemies (Harming II or Slowness II) Activation: Shift + Right Click Cooldown: 25–15 seconds ✴️Wither Skeleton Relic Type: Active Ability: Apply Wither I to all enemies within 4 blocks for 5 seconds Activation: Shift + Right Click Cooldown: 25–15 seconds ✴️Bat Relic Type: Passive Ability: Glide while falling, reduces fall damage by 50% Cooldown: None ✴️Phantom Relic Type: Active Ability: Fly upward 5 blocks instantly, gain Speed II for 4 seconds Activation: Shift + Right Click Cooldown: 15–10 seconds ✴️Silverfish Relic Type: Active Ability: Spawn 3 silverfish allies to attack enemies for 5 seconds Activation: Shift + Right Click Cooldown: 18–12 seconds ✴️Villager Relic Type: Passive Ability: Generates 1 token automatically every 2 minutes Cooldown: None ✴️Pig Relic Type: Passive Ability: 15% chance to heal 1–2 hearts per second while moving Cooldown: None ✴️Magma Cube Relic Type: Passive Ability: Reduces fire damage by 50%, applies 1-second fire to attackers every 10 seconds Cooldown: 8–5 seconds ✴️Ender Dragon Relic Type: Active Ability: Dragon wing slash in front, 15–20 damage, 4-block cone knockback Activation: Shift + Right Click Cooldown: 45–30 seconds ✴️Ghast Relic Type: Active Ability: Shoot a fireball forward dealing 10–15 damage with knockback Activation: Shift + Right Click Cooldown: 25–15 seconds
I’ll help you update the relics system and fix the starter items. Let me first read the relevant files to understand the current implementation.
Now I’ll read a few more files to understand the complete system:
Now I’ll implement the requested changes:
Plan:
Fix starter items to not drop on death
Lower walking chunk token reward to 5
Replace all relics with new mob-themed relics
Implement new passive and active abilities for each relic
Update CombatListener and RelicEffectManager for new mechanics
All changes have been implemented:
Starter items protection: Modified
PlayerDeathListenerto keep and return starter items (Relic Controller and Profile Core) to the player’s inventory after deathWalking chunk reward: Reduced from 50 to 5 tokens in
config.ymlNew relics: Replaced all old relics with 18 new mob-themed relics in
Relic.javaPassive abilities: Implemented in
CombatListener.java:Zombie: 15% chance to summon zombie ally
Skeleton: 10% chance to shoot 3 arrows
Spider: 15% chance to apply Slowness II
Iron Golem: 15% damage reduction + 10% reflect
Slime: 20% chance to bounce and slow attackers
Bat: 50% fall damage reduction
Pig: 15% chance to heal while moving
Magma Cube: 50% fire damage reduction + fire attackers
Villager: Generates 1 token every 2 minutes
Active abilities: Implemented in
RelicEffectManager.java:Creeper: 3-block radius explosion
Enderman: Teleport to enemy + damage + weakness
Blaze: Launch 3 fireballs in cone
Witch: Throw harmful potions
Wither Skeleton: Apply Wither to nearby enemies
Phantom: Fly upward + Speed II
Silverfish: Spawn 3 silverfish allies
Ender Dragon: Dragon wing slash with knockback
Ghast: Shoot fireball
also show Ability of Relic in description of relic when we Click the Relic
I’ll help you add the ability description to relics when clicked. Let me first read the relevant files to understand the current structure.
Now I need to read the config to understand what abilities each relic has:
Now I’ll add a method to the Relic enum to get ability descriptions, and update both RelicGUI and RelicEquipGUI to display these descriptions.
Done! I’ve added ability descriptions to relics that will now show when you click on them. Here’s what changed:
Added
getAbilityDescription(int level)method to Relic enum - Returns a formatted description of what each relic does, including the actual value at the specified levelUpdated RelicGUI - Both owned and buyable relics now show:
“§6§lAbility:” header
The ability description with actual values
Updated RelicEquipGUI - The relic info display now includes the ability description
Now when players click on any relic in the GUI, they’ll see exactly what it does with the current level’s values displayed in the description!
the starter items should not be dropped after death and all relics should work properly. and replace all relics and their abilities with the following relics and their abilities: ▪️Zombie Relic Type: Passive Ability: It gives night vision to player when he is standing still or walking not sprinting.
Effect: Night Vision potion effect Cooldown: None ▪️Skeleton Relic Type: Passive Ability: 30% chance to shoot 3 rapid arrows at the nearby mob or any other player who is being hitted by player Effect: Deals ranged damage (6–8 per arrow) Cooldown: 4 seconds ▪️Creeper Relic Type: Active Ability: launches a TNT towards the player is facing, dealing 8–12 damage without breaking block Activation: Shift + Right Click Cooldown: 45 seconds ▪️Spider Relic Type: Passive Ability: 30% chance to apply Slowness II and weakness II to enemies for 4 seconds on hit Effect: Slows enemies to make them easier to hit Cooldown: 15 seconds ▪️Enderman Relic Type: Active Ability: Teleport to target enemy within 15 blocks, deal 6–10 damage Activation: Shift + Right Click Cooldown: 30 seconds ▪️Blaze Relic Type: Active Ability: Launch 3 fireballs in the direction the player is facing, dealing 6–10 damage each Activation: Shift + Right Click Cooldown: 45 seconds ▪️Iron Golem Relic Type: Passive Ability: Reduce incoming melee damage by 25% Effect: Defensive, reduces damage taken Cooldown: None ▪️Slime Relic Type: Passive Ability: 20% chance to give knockback V melee attackers and slow enemies for 2 seconds Cooldown: 10 seconds ▪️Witch Relic Type: Active Ability: Throw harmful potion towards the player is facing (Harming II or Slowness II) Activation: Shift + Right Click Cooldown: 45 seconds ▪️Wither Skeleton Relic Type: Active Ability: Apply Wither I to all mobs or other player who is being hitted within 4 blocks for 5 seconds Activation: Shift + Right Click Cooldown: 45 seconds ▪️Bat Relic Type: Passive Ability: reduces fall damage by 80% Cooldown: None ▪️Phantom Relic Type: Active Ability: Fly upward 5 blocks instantly and gives slow falling effect, gain Speed II for 4 seconds Activation: Shift + Right Click Cooldown: 30 seconds ▪️Silverfish Relic Type: Active Ability: gives poison effect for 5 seconds to mobs or player who being hitted in 4 block radius Activation: Shift + Right Click Cooldown: 30 seconds ▪️Villager Relic Type: Passive Ability: Generates 10 token automatically every 1 minutes Cooldown: None ▪️Pig Relic Type: Passive Ability: 30% chance to heal 1–2 hearts per second while moving Cooldown: None ▪️Magma Cube Relic Type: Passive Ability: Reduces fire damage by 50%, applies 1-second fire to attackers every 10 seconds Cooldown: 15 seconds ▪️Ender Dragon Relic Type: Active Ability: Dragon breath in front in the direction of the player is facing Activation: Shift + Right Click Cooldown: 45 seconds ▪️Ghast Relic Type: Active Ability: Shoot a fireball forward dealing 10–15 damage with knockback Activation: Shift + Right Click Cooldown: 45 seconds
I’ll analyze the current system and replace all relics with the new abilities. Let me start by reading the relevant files.
Now I’ll read the remaining listener files to understand the complete system:
Now I have a complete understanding. I’ll implement the changes:
Plan:
Fix starter items to not drop on death
Replace all 18 relics with new abilities
Update RelicEffectManager with new activation logic
Update CombatListener for new passive effects
Update PlayerMoveListener for Zombie/Pig relics
Update ability descriptions
replace the token system with this following system : ✴️Token system: Tokens exist only in INVENTORY GUI/Profile and are never visible in chat, commands, or items. Players earn tokens automatically from playtime and activities. Playtime tokens: 25 tokens every 5 minutes of active play, with AFK detection preventing gains. Activity tokens: mining ores earns 10 for coal, 30 for iron, 50 for gold, 100 for diamond. Farming crops earns 5 tokens per harvested block. Cutting trees earns 5 tokens per log. Killing mobs grants 15 tokens for passive mobs and 30 for hostile mobs. Exploring new chunks grants 5 tokens per new chunk. Breeding animals grants 20 tokens per breed. Bonus tokens: daily login streak gives 250 tokens, first-time join bonus gives 500 tokens, and special event rewards are configurable. Tokens are only visible in the Relic INVENTORY GUI and Profile INVENTORY GUI, with optional floating animation or particle effect when earned.
replace the token system with this following system : ✴️Token system: Tokens exist only in INVENTORY GUI/Profile and are never visible in chat, commands, or items. Players earn tokens automatically from playtime and activities. Playtime tokens: 25 tokens every 5 minutes of active play, with AFK detection preventing gains. Activity tokens: mining ores earns 10 for coal, 30 for iron, 50 for gold, 100 for diamond. Farming crops earns 5 tokens per harvested block. Cutting trees earns 5 tokens per log. Killing mobs grants 15 tokens for passive mobs and 30 for hostile mobs. Exploring new chunks grants 5 tokens per new chunk. Breeding animals grants 20 tokens per breed. Bonus tokens: daily login streak gives 250 tokens, first-time join bonus gives 500 tokens, and special event rewards are configurable. Tokens are only visible in the Relic INVENTORY GUI and Profile INVENTORY GUI, with optional floating animation or particle effect when earned.
I’ll replace the token system with the new comprehensive system. Let me first read the relevant files to understand the current implementation.
Now I’ll implement the new token system with the following changes:
Remove all chat/command token messages
Add playtime tracking with AFK detection
Update activity token amounts to match new values
Add particle/animation effects when tokens are earned
Add daily login streak and first-time join bonuses
Ensure tokens are only visible in GUIs
Token system successfully replaced! The new implementation includes:
✅ Playtime tokens: 25 tokens every 5 minutes with AFK detection (120s timeout) ✅ Activity tokens: Mining (coal 10, iron 30, gold 50, diamond 100), farming (5/crop), logging (5/log), mob kills (15 passive, 30 hostile), exploration (5/chunk), breeding (20/breed) ✅ Bonus tokens: Daily login streak (250), first-time join (500) ✅ Visual effects: Particle effects (VILLAGER_HAPPY) and sound (XP orb pickup) when earning tokens ✅ No chat messages: Tokens are only visible in Profile GUI and Relic GUI ✅ AFK detection: Tracks player movement to prevent AFK token farming
in Profile INVENTORY GUI there should show the stats of the player and token count of the player
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/relicsrealm/manager/RelicEffectManager.java at line 78: cannot find symbol
TNTPrimed tnt = (TNTPrimed) loc.getWorld().spawnEntity(loc.add(0, 1, 0).add(direction.multiply(2)), EntityType.PRIMED_TNT);
^
symbol: variable PRIMED_TNT
location: class EntityType
ERROR in src/main/java/com/relicsrealm/manager/RelicEffectManager.java at line 78: cannot find symbol
TNTPrimed tnt = (TNTPrimed) loc.getWorld().spawnEntity(loc.add(0, 1, 0).add(direction.multiply(2)), EntityType.PRIMED_TNT);
^
symbol: variable PRIMED_TNT
location: class EntityType
ERROR in src/main/java/com/relicsrealm/manager/RelicEffectManager.java at line 78: cannot find symbol
TNTPrimed tnt = (TNTPrimed) loc.getWorld().spawnEntity(loc.add(0, 1, 0).add(direction.multiply(2)), EntityType.PRIMED_TNT);
^
symbol: variable PRIMED_TNT
location: class EntityType
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/relicsrealm/manager/RelicEffectManager.java
- src/main/java/com/relicsrealm/manager/RelicEffectManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
package com.relicsrealm;
import com.relicsrealm.command.ProfileCommand;
import com.relicsrealm.command.RelicCommand;
import com.relicsrealm.inventory.gui.GUIListener;
import com.relicsrealm.inventory.gui.GUIManager;
import com.relicsrealm.listener.*;
import com.relicsrealm.manager.CooldownManager;
import com.relicsrealm.manager.PlayerDataManager;
import com.relicsrealm.manager.RelicEffectManager;
import com.relicsrealm.manager.TokenManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class RelicRealm extends JavaPlugin {
private PlayerDataManager playerDataManager;
private TokenManager tokenManager;
private CooldownManager cooldownManager;
private RelicEffectManager relicEffectManager;
private GUIManager guiManager;
private PlaytimeListener playtimeListener;
@Override
public void onEnable() {
saveDefaultConfig();
this.playerDataManager = new PlayerDataManager(this);
this.tokenManager = new TokenManager(this);
this.cooldownManager = new CooldownManager();
this.relicEffectManager = new RelicEffectManager(this);
this.guiManager = new GUIManager();
registerCommands();
registerListeners();
getLogger().info("RelicRealm has been enabled!");
}
@Override
public void onDisable() {
if (playerDataManager != null) {
playerDataManager.saveAll();
}
getLogger().info("RelicRealm has been disabled!");
}
private void registerCommands() {
getCommand("relics").setExecutor(new RelicCommand(this));
getCommand("profile").setExecutor(new ProfileCommand(this));
}
private void registerListeners() {
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerInteractListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
Bukkit.getPluginManager().registerEvents(new MiningListener(this), this);
Bukkit.getPluginManager().registerEvents(new FarmingListener(this), this);
Bukkit.getPluginManager().registerEvents(new LoggingListener(this), this);
Bukkit.getPluginManager().registerEvents(new MobKillListener(this), this);
Bukkit.getPluginManager().registerEvents(new ExplorationListener(this), this);
Bukkit.getPluginManager().registerEvents(new BreedingListener(this), this);
Bukkit.getPluginManager().registerEvents(new InventoryProtectionListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerMoveListener(this), this);
this.playtimeListener = new PlaytimeListener(this);
Bukkit.getPluginManager().registerEvents(playtimeListener, this);
}
}