📄
pasted-code-1791112018301.txt
txt
99 lines
▶
Create a complete Minecraft server plugin called **Spear Evolution** with custom spear progression, abilities, textures, and admin commands.
### 1. Spear Evolution System
Every player joining the server for the first time must automatically receive a **Wood Spear** with:
* Custom spear texture/model.
* Lunge I only.
* No extra abilities.
### 2. Kill-Based Evolution
Whenever a player kills another player using their current spear, their spear must automatically evolve to the next tier:
**Tier 1 — Wood Spear**
* Starting spear given to every new player.
* Lunge I.
* Basic damage.
**Tier 2 — Stone Spear**
* Unlocked after 1 kill with Wood Spear.
* Lunge V.
* Improved damage and unique stone texture.
**Tier 3 — Iron Spear**
* Unlocked after 1 kill with Stone Spear.
* Lunge X.
* Stronger damage and unique iron texture.
**Tier 4 — Diamond Spear**
* Unlocked after 1 kill with Iron Spear.
* Higher damage and unique diamond texture.
* Special visual effects.
**Tier 5 — GOD SPEAR**
* Unlocked after 1 kill with Diamond Spear.
* Completely unique custom texture/model, different from all previous spears.
* Extremely powerful abilities and particles.
* One-hit kill capability against players.
* Maximum Lunge level or a custom equivalent if Minecraft does not support the required level.
* A powerful, distinctive God-tier appearance and effects.
### 3. Kill Detection and Abilities
* Evolution must trigger only when a player kills another player using the spear.
* Do not evolve from mob kills, assists, environmental deaths, or unrelated weapons.
* Prevent kill farming exploits, duplicate rewards, and ability abuse.
* Preserve the player's progression if they disconnect or die.
* Make all abilities configurable by server administrators.
* Do not add illegal, malicious, or exploit-based abilities that crash the server or compromise server security. All powerful abilities must work through legitimate server-side plugin mechanics.
* Handle cooldowns, damage, knockback, and Lunge correctly without causing server lag.
### 4. Custom Textures and Models
* Give every spear tier a visibly different texture/model: Wood, Stone, Iron, Diamond, and God.
* Use a compatible Minecraft resource pack with custom item models or the appropriate item-model system for the target Minecraft version.
* Automatically assign the correct appearance to each tier.
* Include resource-pack files and installation instructions.
* Ensure the textures work correctly for all players who have the resource pack installed.
### 5. Admin Commands
Implement the following command:
`/spear give `
It should provide tab completion for player names and spear variants.
Support these commands:
* `/spear give wood`
* `/spear give stone`
* `/spear give iron`
* `/spear give diamond`
* `/spear give god`
* `/spear give all` — give all spear variants.
* `/spear reload` — reload configuration.
* `/spear info ` — display the player's current spear tier and kill progression.
Only authorized admins should be able to use administrative commands. Add suitable permissions and clear error messages.
### 6. Technical Requirements
* Ask for or detect the target Minecraft version and server software before implementation.
* Support the server's compatible Paper/Spigot API.
* Use persistent storage for player progression.
* Prevent players from crafting, renaming, or duplicating fake spears to bypass progression.
* Identify each spear using persistent item data, not just its display name.
* Provide configurable damage, abilities, kill requirements, cooldowns, and messages.
* Include a complete source project, compiled plugin JAR, configuration file, resource pack, and installation guide.
* Test every evolution tier, custom texture, command, permission, and multiplayer interaction before declaring the plugin complete.
**Important:** The plugin must be fully functional, not just a concept or a collection of example code. The entire progression system, custom spears, abilities, commands, and resource pack must work together.
Build the Paper 1.21.4 plugin with persistent tier progression, authenticated spears, abilities, kill validation, and admin commands.
Add configurable defaults, a custom-model resource pack using vanilla textures, and installation instructions.
Set up the Gradle project and plugin metadata.
[Generation stopped]
nah 1.21.11 plugin
Paper 1.21.11 / Java 21 targeting, with persistent progression and authenticated spear items.
Kill-only evolution, cooldown and Lunge abilities, configurable tiers, and
/spearadmin commands.Include the 1.21.11 item-model resource pack and setup instructions.
Created the Spear Evolution project targeting Paper 1.21.11 and Java 21, with persistent progression, kill-based evolution, Lunge abilities, configurable settings, and /spear admin commands.
The resource pack maps each tier to its corresponding vanilla spear model; it doesn’t include custom-drawn texture artwork. Compile the project in Kodari to build and download the plugin JAR.
and where is the resource pack
It’s in the project file tree under resource-pack/—alongside pack.mcmeta and assets/spearevolution/items/. It isn’t included in the plugin JAR. Check resource-pack/README.md for setup instructions.
can you give me again only resource pack i cant find this
Add a standalone, clearly named resource-pack folder at the project root.
Include only the pack metadata, tier models, and brief install instructions.
The standalone pack is now in the project root under Spear-Evolution-Resource-Pack/. Zip that folder’s contents with pack.mcmeta at the ZIP root, then install the ZIP as your server resource pack. It uses vanilla spear models, not custom-drawn textures.
nah iam unable yp find resource pack of plugin
Open the project’s Files panel and look at the top level—not inside src—for Spear-Evolution-Resource-Pack. It’s a separate folder in the project, not inside the plugin JAR.
The Resource Pack We can change later but can you add osme other abilites in Plugin To Spear That Sharpness 10 on netherite spear with dash boom blast attack that dosnt give damage to the player who holding the God Spear And On Diamond spear sharpness 6 on Iron Sharpness 4 on golden sharp 3 on stone shar 2 on wood sharp 1 and other ablites like fire or something illegal and make resourcepack Like Every OTher spear look normal like vanilla minecraft till diamond but Nteherite spear Name As God Spear With Some Big Textures some thing look like this image i gave you but that should look more good Than image
Add the requested Sharpness tiers and safe God Spear blast ability.
Add fitting fire/extra abilities to the spears.
Update the resource pack so lower tiers stay vanilla and God Spear gets a custom netherite-style look.
One requested tier was missing from the existing progression: Gold. I’m adding it in sequence without shifting saved player tiers, then I’ll finish the resource-pack model.
Added Sharpness 1/2/4/3/6/10 to Wood, Stone, Iron, Gold, Diamond, and God Spear. Added the missing Gold progression tier while preserving saved progression and older spear items.
God Spear: sneak + right-click triggers a blast that damages nearby living entities without hurting its holder or damaging blocks. Iron, Gold, Diamond, and God Spears also ignite targets on hit.
Updated
Spear-Evolution-Resource-Pack/: normal vanilla spear models through Diamond, plus a custom 3D God Spear model using vanilla textures. It’s a custom model, not a hand-painted texture.
did you make new changes?
Yes. I updated the plugin’s spear tiers and abilities, added Gold Spear to progression, and updated the resource pack in Spear-Evolution-Resource-Pack/. The resource pack is separate from the plugin JAR.
everything good buit the resourcepack you made is like Gold Spear Not SHowing And God Spear Dosnt have Unique Textures
Fix Gold Spear’s resource-pack model mapping.
Give God Spear a distinct visual appearance and keep the pack compatible with the plugin’s item IDs.
Gold Spear now uses its vanilla item model directly, so a broken custom model mapping won’t hide it. I also added more detail to God Spear’s 3D model.
God Spear still uses vanilla Minecraft textures—I haven’t added a custom-painted texture file, so its appearance isn’t fully unique yet.
remove cool down from plugin and make God Spear Blast Like The Ground expload
Remove the ability cooldown.
Change God Spear’s blast to explode at the ground impact point.
Removed cooldowns from spear lunges and the God Spear blast. The blast now detonates at the block you’re aiming at, or at the ground up to 20 blocks ahead if you’re aiming into open air. It damages nearby entities but not the holder or terrain. The anti-farming limit on kill rewards is unchanged.
done give me download link
Click Compile in the top bar (on phone: ⋮ → Compile Project), then click Compile in the window. When it succeeds, click Download on the build or Download SpearEvolution.jar in the chat.
which one is latest iam unable to find
The latest version is the newest successful build created after the cooldown/blast changes. Open Compile (phone: ⋮ → Compile Project), click Compile, then download the build shown at the top of the results. Older builds won’t include those changes.
do i have to downloa dthe top 1
Yes—download the top build if it’s the newest successful build, created after the cooldown and ground-blast changes. If you don’t see one from after those edits, compile the project first, then download the newest successful result.
nah i upload but nothing got change
If you uploaded the JAR to your server, stop the server completely, replace the old SpearEvolution JAR in plugins, and start it again. Don’t use /reload, and make sure there aren’t two SpearEvolution JARs in the folder.
The resource pack is separate—upload and reapply that too if you’re checking the spear’s appearance. Also, the God Spear blast damages nearby entities but doesn’t break blocks.
now do
I can’t access or upload files to your Minecraft server. To get the updated plugin JAR, click Compile in the top bar (phone: ⋮ → Compile Project), then click Compile and download that new build. Replace the old JAR on your server and restart it.
narate It Now You Also Changed tHAT lUNGE iS happeinibng ferom right click its on left clickand spear load is o left click but its on right so do it correct and lunge has no cool down plzz
Correct the click bindings: lunge on left-click, spear load on right-click.
Ensure lunges have no cooldown.
Lunge now triggers on left-click with no cooldown. Right-click is left alone so the spear can charge/load normally; sneak + right-click still triggers the God Spear blast.
Compile the project to get the updated JAR.
package com.kodari.spearevolution;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.plugin.java.JavaPlugin;
public class SpearEvolutionPlugin extends JavaPlugin {
private ProgressionManager progressionManager;
private SpearService spearService;
@Override
public void onEnable() {
saveDefaultConfig();
progressionManager = new ProgressionManager(this);
spearService = new SpearService(this);
SpearListener listener = new SpearListener(this, progressionManager, spearService);
getServer().getPluginManager().registerEvents(listener, this);
SpearCommand command = new SpearCommand(this, progressionManager, spearService);
getCommand("spear").setExecutor(command);
getCommand("spear").setTabCompleter(command);
}
@Override
public void onDisable() {
if (progressionManager != null) {
progressionManager.save();
}
}
public ProgressionManager getProgressionManager() {
return progressionManager;
}
public SpearService getSpearService() {
return spearService;
}
public void send(CommandSender sender, String key, String... replacements) {
String message = getConfig().getString("messages." + key, "&cMissing message: " + key);
for (int index = 0; index + 1 < replacements.length; index += 2) {
message = message.replace(replacements[index], replacements[index + 1]);
}
String prefix = getConfig().getString("messages.prefix", "");
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', prefix + message));
}
}