quartzz_yt

give me a god spear custom abiltiy or animation plugin for mincraft with resorce pack

Kodari AI
KodariJun 30 at 8:24 am 2

I’ll build a God Spear plugin with 4 epic abilities, custom resource pack integration, and particle animations.

GodSpearPlugin
A legendary God Spear plugin with 4 unique abilities: Lightning Call (strike lightning), Godly Storm (tornado aura), Spear Dash (rush forward), and Thunder Slam (ground pound). Features custom resource pack support with a unique spear model, configurable cooldowns/damage, particle effects, and sound design. The spear is given via admin commands and identified using PersistentDataContainer.

All 16 files created. Here’s what you get:

Plugin structure:

Plain Text
GodSpearPlugin/
├── build.gradle                          # Build with XSeries (shaded)
├── src/main/
│   ├── resources/
│   │   ├── plugin.yml                    # Command + permissions
│   │   ├── config.yml                    # All configurable values
│   │   └── pack/                         # ← Resource pack folder
│   │       ├── pack.mcmeta
│   │       └── assets/minecraft/models/item/
│   │           ├── trident.json          # Override → custom_model_data:1
│   │           └── god_spear.json        # Points to god_spear.png texture
│   └── java/com/godspear/
│       ├── GodSpearPlugin.java           # Main class
│       ├── abilities/
│       │   ├── AbstractAbility.java      # Base class
│       │   ├── LightningCallAbility.java # ⚡ Strike lightning at target
│       │   ├── GodlyStormAbility.java    # 🌪️ Tornado aura, AoE damage
│       │   ├── SpearDashAbility.java     # ⚡ Rush forward, damage through
│       │   └── ThunderSlamAbility.java   # 💥 Ground pound shockwave
│       ├── commands/
│       │   └── SpearCommand.java         # /godspear give|reload|list
│       ├── listeners/
│       │   └── SpearListener.java        # Ability triggers + idle particles
│       └── util/
│           ├── CooldownManager.java      # Per-player, per-ability timers
│           └── SpearItemBuilder.java     # Creates the spear with PDC tag

Abilities & Controls:

Trigger
Ability
Effect
Right-click
Lightning Call
Ray-traces to target block, strikes lightning, AoE damage + particles
Sneak + Right-click
Godly Storm
5s tornado aura follows you, deals DPS to nearby enemies
Sprint + Right-click
Spear Dash
Launches forward with trail particles, damages through entities
Sneak mid-air
Thunder Slam
Slams to ground, shockwave ring + knockback

The spear is identified via PersistentDataContainer (not by name/lore), so it’s safe against renamed items.

Resource pack: Enable in config.yml → set resource-pack.enabled: true + your hosted URL. Provide your own god_spear.png texture in pack/assets/minecraft/textures/item/. The trident model is overridden with a custom_model_data:1 predicate so only the God Spear uses the custom model.

quartzz_yt

give me a legendry animation spear with custom abilitys for mincraft plugin with spear not a trident

Kodari AI
KodariJun 30 at 8:33 am 3

I’ll build you a legendary God Spear plugin with a custom resource pack. The base item is a stick (not a trident), overridden by the resource pack to display as a 3D spear model. Let me plan and build this.

Plan:

  1. Build system + plugin metadata

  2. Resource pack (stick override → 3D spear model)

  3. Core plugin + utility classes (spear builder, cooldowns, animations)

  4. 4 legendary abilities with particle/sound sequences

  5. Event listeners + command

Let me build it all

Now let me create all the files. I’ll build the complete plugin with all 16 files.

Let me write all files now. Starting with the main files.

Now the resource pack files:

Now I need to override the stick model to point to our custom model data.

All files written. Let me verify the structure

Let me verify and clean up.

Let me verify all critical files are correct

All files are in place. Here’s your complete Legendary God Spear plugin — using a stick as the base item with a resource pack override to display as a 3D spear:


📁 File Structure

Plain Text
GodSpearPlugin/
├── build.gradle
├── src/main/
│   ├── resources/
│   │   ├── plugin.yml
│   │   ├── config.yml
│   │   └── pack/
│   │       ├── pack.mcmeta
│   │       └── assets/minecraft/models/item/
│   │           ├── stick.json              # Override → custom_model_data:1
│   │           └── god_spear.json           # 3D display transforms
│   └── java/com/godspear/
│       ├── GodSpearPlugin.java              # Main class
│       ├── abilities/
│       │   ├── AbstractAbility.java         # Base + helpers
│       │   ├── LightningCallAbility.java    # ⚡ Lightning Call
│       │   ├── GodlyStormAbility.java       # 🌪️ Godly Storm
│       │   ├── SpearDashAbility.java        # ⚡ Spear Dash
│       │   └── ThunderSlamAbility.java      # 💥 Thunder Slam
│       ├── commands/
│       │   └── SpearCommand.java            # /godspear give|reload|list
│       ├── listeners/
│       │   └── SpearListener.java           # Ability triggers + animations
│       └── util/
│           ├── CooldownManager.java         # Per-player cooldowns
│           └── SpearItemBuilder.java        # Spear creation + detection

⚔️ 4 Legendary Abilities

Trigger
Ability
Effect
Right-click
Lightning Call
Ray-traces to target, pillar particles rise, lightning strikes + AoE thunder damage (configurable range/damage/radius)
Sneak + Right-click
Godly Storm
5s tornado aura follows you — blue particle helix + electric sparks, DPS to nearby enemies every second
Sprint + Right-click
Spear Dash
Launches forward 10 blocks with streak trail, damages all enemies you fly through
Sneak while airborne
Thunder Slam
Slams to ground, shockwave ring expands outward, AoE damage + knockback (works at any height)

🎨 Resource Pack

Base item: STICK (not trident) — overridden using vanilla custom_model_data predicate.

  • stick.json — vanilla stick texture by default, but when custom_model_data:1, it shows the god_spear model

  • god_spear.json — points to texture textures/item/god_spear.png with custom 3D display transforms (spear held diagonally in first-person, vertical in third-person)

To use the resource pack:

  1. Create a god_spear.png texture (16×16 or 32×32) and place it at pack/assets/minecraft/textures/item/god_spear.png

  2. Host the full pack/ folder on a web server / Dropbox / CDN

  3. Set the URL in config.yml:

    YAML
    resource-pack:
      enabled: true
      url: "https://your-host.com/god_spear_pack.zip"
    
  4. Players auto-get the pack on join


🛠️ Commands

Command
Permission
Effect
/godspear give [player]
godspear.admin
Gives the God Spear
/godspear reload
godspear.admin
Reloads config
/godspear list
godspear.admin
Lists all abilities

⚙️ Config Highlights

YAML
spear:
  name: "&6&l⚔ God Spear ⚔"
  material: STICK           # ← STICK is overridden by resource pack
  custom-model-data: 1

abilities:
  lightning-call:  { cooldown: 8,  damage: 8,  radius: 4,  range: 50 }
  godly-storm:     { cooldown: 20, duration: 5, dps: 4,    radius: 6 }
  spear-dash:      { cooldown: 6,  damage: 6,  distance: 10 }
  thunder-slam:    { cooldown: 12, damage: 10, radius: 5,  knockback: 2 }

Everything is fully configurable. The spear is identified via PersistentDataContainer (PDC), so renamed items still work. Each ability has a complete animation sequence with particles and sounds. All abilities use only the stick base item with the resource pack handling the visual transformation.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
17 984
src/main/java/com/godspear/GodSpearPlugin.java
package com.godspear;

import com.godspear.abilities.GodlyStormAbility;
import com.godspear.abilities.LightningCallAbility;
import com.godspear.abilities.SpearDashAbility;
import com.godspear.abilities.ThunderSlamAbility;
import com.godspear.commands.SpearCommand;
import com.godspear.listeners.SpearListener;
import com.godspear.util.CooldownManager;
import com.godspear.util.SpearItemBuilder;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class GodSpearPlugin extends JavaPlugin {

    private static GodSpearPlugin instance;
    private NamespacedKey spearKey;
    private CooldownManager cooldownManager;
    private SpearItemBuilder spearItemBuilder;

    private LightningCallAbility lightningCall;
    private GodlyStormAbility godlyStorm;
    private SpearDashAbility spearDash;
    private ThunderSlamAbility thunderSlam;

    // Active storm tasks keyed by player UUID
    private final java.util.Map<java.util.UUID, Integer> stormTasks = new java.util.HashMap<>();

    @Override
    public void onEnable() {
        instance = this;
        saveDefaultConfig();
        this.spearKey = new NamespacedKey(this, "god_spear");
        this.cooldownManager = new CooldownManager();

        // Build abilities
        this.lightningCall = new LightningCallAbility(this);
        this.godlyStorm = new GodlyStormAbility(this);
        this.spearDash = new SpearDashAbility(this);
        this.thunderSlam = new ThunderSlamAbility(this);

        this.spearItemBuilder = new SpearItemBuilder(this);

        // Register listener
        getServer().getPluginManager().registerEvents(new SpearListener(this), this);

        // Register command
        getCommand("godspear").setExecutor(new SpearCommand(this));

        getLogger().info("GodSpearPlugin enabled! Spear material: STICK (overridden by resource pack)");
    }

    @Override
    public void onDisable() {
        // Cancel all active storm tasks
        stormTasks.values().forEach(id -> getServer().getScheduler().cancelTask(id));
        stormTasks.clear();
        getLogger().info("GodSpearPlugin disabled.");
    }

    public static GodSpearPlugin getInstance() { return instance; }
    public NamespacedKey getSpearKey() { return spearKey; }
    public CooldownManager getCooldownManager() { return cooldownManager; }
    public SpearItemBuilder getSpearItemBuilder() { return spearItemBuilder; }
    public LightningCallAbility getLightningCall() { return lightningCall; }
    public GodlyStormAbility getGodlyStorm() { return godlyStorm; }
    public SpearDashAbility getSpearDash() { return spearDash; }
    public ThunderSlamAbility getThunderSlam() { return thunderSlam; }
    public java.util.Map<java.util.UUID, Integer> getStormTasks() { return stormTasks; }
}