Make a plugin with the name of eggsteal smp and add a first token with the name Zombie Egg jise ki first ability ya ho ki ham 10 zombie spawn kr sakta ha and first key bined shift + right and 2nd ability yah ho ki ham apne as psa jitne banda ho un sab ko weekness effect lag jaya 2nd key bined Shift+ Left and plugin ka version 1.21.8
I’ll create the EggStealSMP plugin with a Zombie Egg token system.
Plugin created successfully!
EggStealSMP v1.21.8 features:
Zombie Egg with two abilities:
Shift + Right Click: Spawns 10 zombies in a circle around you
Shift + Left Click: Applies weakness effect to all nearby players (10 block radius)
Cooldown system (30s for zombies, 45s for weakness)
Fully configurable in config.yml
Command:
/eggsteal give <player> zombieto get the egg
The plugin uses XSeries for cross-version compatibility and includes particle effects and sounds for ability activation.
Add cooldown all ability 1 minute
I will update both abilities to have a 1 minute (60 seconds) cooldown.
Both abilities now have a 1 minute (60 seconds) cooldown.
And add command to obtain egg /eggsteal give Zombieegg @a
I’ll add a give subcommand to provide eggs to players with target selector support.
Now I’ll update the command to support target selectors (@a, @p, @r, @s) and the “Zombieegg” format:
Added /eggsteal give zombieegg @a command with full target selector support (@a, @p, @r, @s) and player names. The command now accepts “zombieegg” as the egg type and can give eggs to multiple players at once.
Add 2 token with the name of Skeleton egg jise ki ability yah ho gai agr ham shift+ right kr gai tho 100 arrow shut ho gai and 2nd ability yah ho gai ki ham shift+ Left kr gai tho 10000 Arrow player circular mai bana ka shut kr gai and is first ability ka cooldown 1 minute hogai and 2nd ka cooldown 2:30 minute hogai and add 3rd token with the name of blaze Egg jise ki ability yah ho gai ki agr ham shift+ right kr gai tho ek fire ball spawn hoge and 2nd ability yah hoge ki agr ham shift+Left kr gai tho asaman yah 10 fire ball enemy pa gre gai and in sab ka cooldown 1 minute tak ho and add 4rd token with the name of warden egg jise ki first ability yah ho gai ki agr ham shift+right kraya gai tho ek sonice bomb nickel gai and 2nd ability yah ha ki agr ham shift+ Left kr gai tho 10 Sonic bomb enemy pa aya gai and add 5th token with the name of wither egg jise ki ability yah ho ki agr ham shift+ right kraya tho ham 10 wither head enemy pa mera saka and 2nd ability yah ho ki agr ham shift+Left kraya tho ham apne player ko 4minute ki strength 5 mile skha and add 6th token with the name of creeper token jise ki ability yah hoge ki agr ham shift+right click kraya tho ek blast hoga jise se harma enemy ko damge ho gai jise pa cepper token usko nhi and add 2nd ability agr ham shift+left kraya tho 50 charge creepers spwan hoaenge add all token costum command and add cooldown
I’ll add all the new egg tokens with their abilities and custom commands. Let me first read the existing code to understand the structure.
Now I’ll add all the new egg tokens with their abilities:
All 6 egg tokens have been added with their abilities and custom commands:
Skeleton Egg - Shift+Right: 100 arrows (1 min cooldown), Shift+Left: 10000 circular arrows (2:30 cooldown)
Blaze Egg - Shift+Right: Spawn fireball (1 min cooldown), Shift+Left: 10 fireballs from sky (1 min cooldown)
Warden Egg - Shift+Right: Sonic boom (1 min cooldown), Shift+Left: 10 sonic booms on enemy (1 min cooldown)
Wither Egg - Shift+Right: 10 wither skulls (1 min cooldown), Shift+Left: Strength V for 4 minutes (1 min cooldown)
Creeper Egg - Shift+Right: Explosion (no self damage, 1 min cooldown), Shift+Left: 50 charged creepers (1 min cooldown)
Commands: /eggsteal give skeletonegg/blazeegg/wardenegg/witheregg/creeperegg <player>
Replace a token weapon turtle egg to Echo Shard
I’ll read the relevant files to understand how the turtle egg is currently implemented and then replace it with Echo Shard.
Now I’ll replace all instances of TURTLE_EGG with ECHO_SHARD throughout the codebase.
Successfully replaced all turtle egg tokens with Echo Shard. All 6 egg types (Zombie, Skeleton, Blaze, Warden, Wither, and Creeper) now use ECHO_SHARD as their base material instead of TURTLE_EGG.
Add command /reloadcostumtoken to give every player to costum token.
I’ll add a /reloadcostumtoken command that gives a custom token to every online player.
Plan:
Add custom token creation method to EggManager
Create new command class for
/reloadcostumtokenRegister command in main class and plugin.yml
Add config section for custom token
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- createCustomToken()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java
- src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 3 error(s):
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
ERROR in src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java at line 24: cannot find symbol
ItemStack customToken = plugin.getEggManager().createCustomToken();
^
symbol: method createCustomToken()
location: class EggManager
=== COMPILATION ERROR ANALYSIS ===
MISSING METHODS:
- createCustomToken()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java
- src/main/java/com/eggstealsmp/commands/CustomTokenCommand.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I’ll read the relevant files to understand the issue and fix it.
Analysis
The error is clear: CustomTokenCommand is calling createCustomToken() method on EggManager, but this method doesn’t exist. I need to:
Add the
createCustomToken()method toEggManagerRegister the
CustomTokenCommandin the main plugin classAdd the command to
plugin.yml
Fixed the compilation error by adding the missing createCustomToken() method to EggManager, registering the command in the main class, and adding it to plugin.yml.
package com.eggstealsmp;
import com.eggstealsmp.commands.CustomTokenCommand;
import com.eggstealsmp.commands.EggStealCommand;
import com.eggstealsmp.listeners.EggAbilityListener;
import com.eggstealsmp.managers.CooldownManager;
import com.eggstealsmp.managers.EggManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class EggStealSMP extends JavaPlugin {
private EggManager eggManager;
private CooldownManager cooldownManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.cooldownManager = new CooldownManager();
this.eggManager = new EggManager(this);
getCommand("eggsteal").setExecutor(new EggStealCommand(this));
getCommand("customtoken").setExecutor(new CustomTokenCommand(this));
getServer().getPluginManager().registerEvents(new EggAbilityListener(this), this);
getLogger().info("EggStealSMP v" + getDescription().getVersion() + " enabled!");
}
@Override
public void onDisable() {
getLogger().info("EggStealSMP disabled!");
}
public String getMessage(String path) {
return getConfig().getString("messages." + path, "")
.replace("&", "§");
}
public String getPrefix() {
return getMessage("prefix");
}
}