not_evil_brainop

I want a Minecraft plugin that has many custom swords and also includes a resource pack. The swords should include:

๐Ÿ”ฅ Fire Sword Right Click: Shoots a fireball that causes massive destruction Left Click: Creates a TNT explosion ๐Ÿ‘พ Glitch Sword Right Click: Teleport to wherever I am looking Left Click: Lift a player into the air for 5 seconds and spin them around ๐Ÿ‰ Dragon Sword Gives me many extra hearts and Regeneration 255 Right Click: Shoots Dragon Breath Left Click: Gives the player Darkness effect for 5 seconds

Also, I want:

Multiple custom swords Custom textures using a resource pack

Kodari AI
KodariApr 18 at 7:13 pm 17,770 (v2)

Iโ€™ll create a comprehensive custom sword plugin with unique abilities and resource pack integration.

CustomSwords
A feature-rich custom sword plugin with unique abilities and resource pack integration. Includes Fire Sword (fireballs & explosions), Glitch Sword (teleportation & levitation), and Dragon Sword (extra hearts & dragon breath). Each sword has distinct right-click and left-click abilities with cooldowns. Fully configurable with custom textures via included resource pack structure.

All files created! Hereโ€™s what Iโ€™ve built:

Core Plugin Features:

  • ๐Ÿ”ฅ Fire Sword - Shoots explosive fireballs (right-click) and creates TNT explosions (left-click)

  • ๐Ÿ‘พ Glitch Sword - Teleports to targeted block (right-click) and levitates/spins players (left-click on entity)

  • ๐Ÿ‰ Dragon Sword - Passive extra hearts + Regen 255, shoots dragon breath (right-click), applies darkness AOE (left-click)

Technical Implementation:

  • Custom model data (1001-1003) for texture overrides

  • PersistentDataContainer for sword identification

  • Configurable cooldowns for all abilities

  • XSeries for cross-version compatibility (1.8-1.21+)

  • Particle effects and sounds for all abilities

  • Full permission system

Resource Pack Structure:

  • Complete model override system for netherite swords

  • Ready-to-use JSON files

  • Detailed README with texture creation instructions

  • Just add 3 PNG textures and ZIP it!

Commands:

  • /cs give <player> <type> - Give swords (fire/glitch/dragon)

  • /cs reload - Reload configuration

The plugin is fully functional and ready to compile. You just need to create the 3 sword textures (16x16 PNG) and host the resource pack!

Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
Code
18 1,052
src/main/java/com/customswords/plugin/CustomSwords.java
package com.customswords.plugin;

import com.customswords.plugin.commands.SwordCommand;
import com.customswords.plugin.listeners.SwordListener;
import com.customswords.plugin.managers.ResourcePackManager;
import com.customswords.plugin.managers.SwordManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomSwords extends JavaPlugin {

    private SwordManager swordManager;
    private ResourcePackManager resourcePackManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.swordManager = new SwordManager(this);
        this.resourcePackManager = new ResourcePackManager(this);
        
        getCommand("customswords").setExecutor(new SwordCommand(this));
        getServer().getPluginManager().registerEvents(new SwordListener(this), this);
        
        getLogger().info("CustomSwords has been enabled!");
        getLogger().info("Fire Sword, Glitch Sword, and Dragon Sword are ready!");
    }

    @Override
    public void onDisable() {
        if (swordManager != null) {
            swordManager.cleanup();
        }
        getLogger().info("CustomSwords has been disabled!");
    }
    
    public void reloadPlugin() {
        reloadConfig();
        swordManager.reload();
    }
}