ondriss645

Create me a plugin for Paper 1.21.11, the plugin should include custom weapons with abilities, let me add the textures myself, and special craftings that i can customize

Kodari AI
KodariMar 14 at 2:27 pm 22,010 (v2)

I’ll create a comprehensive custom weapons plugin with abilities and customizable crafting.

CustomWeaponsPlus
A feature-rich custom weapons system allowing server owners to create unique weapons with special abilities and custom crafting recipes. Weapons support custom model data for resource packs, multiple ability types (on-hit, right-click, projectile effects), cooldown systems, particle effects, and fully configurable shaped/shapeless recipes. Includes GUI for browsing weapons, admin commands, and extensive configuration options for damage bonuses, status effects, and ability triggers.

CustomWeaponsPlus plugin created with custom weapons, abilities, customizable recipes, and GUI menu system. Players can add textures using custom-model-data values in the config.

ondriss645

add this texture for flame sword so everyone that join to server can see this texture of it

--- 📎 Attached 2 file(s):

File: s.properties

properties
type=item
matchItems=netherite_sword
nbt.display.Name=ipattern:*fire blade*
model=./20.json

File: 20.json

json
{"format_version":"1.21.6","credit":"Made with Mr_RahulGamer","texture_size":[20,20],"textures":{"0":"slayer_set:./sword","2":"./animation_1","particle":"slayer_set:./sword"},"elements":[{"from":[7.35,-0.15,7.35],"to":[8.65,1.15,8.65],"rotation":{"angle":-45,"axis":"x","origin":[8,0.5,8]},"faces":{"north":{"uv":[9.6,8.8,10.6,9.8],"texture":"#0"},"east":{"uv":[10.4,0,11.4,1],"texture":"#0"},"south":{"uv":[10.4,1.6,11.4,2.6],"texture":"#0"},"west":{"uv":[10.4,3.2,11.4,4.2],"texture":"#0"},"up":{"uv":[11.4,5.8,10.4,4.8],"texture":"#0"},"down":{"uv":[11.4,7.2,10.4,8.2],"texture":"#0"}}},{"from":[7.45,5.65,7.35],"to":[8.55,7.95,9.65],"rotation":{"angle":-45,"axis":"x","origin":[8,6.3,8]},"faces":{"north":{"uv":[8.8,3.2,9.6,5],"texture":"#0"},"east":{"uv":[5.6,0,7.4,1.8],"texture":"#0"},"south":{"uv":[8.8,8,9.6,9.8],"texture":"#0"},"west":{"uv":[5.6,2.4,7.4,4.2],"texture":"#0"},"up":{"uv":[10.4,5,9.6,3.2],"texture":"#0"},"down":{"uv":[5.6,9.6,4.8,11.4],"texture":"#0"}}},{"from":[7.25,5.95,7.65],"to":[8.75,7.65,9.35],"rotation":{"angle":-45,"axis":"x","origin":[8,6.3,8]},"faces":{"north":{"uv":[8,6.4,9.2,7.8],"texture":"#0"},"east":{"uv":[6.4,4.8,7.8,6.2],"texture":"#0"},"south":{"uv":[7.2,8,8.4,9.4],"texture":"#0"},"west":{"uv":[6.4,6.4,7.8,7.8],"texture":"#0"},"up":{"uv":[10,1.4,8.8,0],"texture":"#0"},"down":{"uv":[10,1.6,8.8,3],"texture":"#0"}}},{"from":[7.5,0.9,7.5],"to":[8.5,1.9,8.5],"rotation":{"angle":0,"axis":"y","origin":[8,1.4,8]},"faces":{"north":{"uv":[8,10.4,8.8,11.2],"texture":"#0"},"east":{"uv":[8,10.4,8.8,11.2],"texture":"#0"},"south":{"uv":[9.6,10.4,10.4,11.2],"texture":"#0"},"west":{"uv":[9.6,10.4,10.4,11.2],"texture":"#0"},"up":{"uv":[10.4,11.2,9.6,10.4],"texture":"#0"},"down":{"uv":[8.8,10.4,8,11.2],"texture":"#0"}}},{"from":[7.6,1.9,7.6],"to":[8.4,5.9,8.4],"rotation":{"angle":0,"axis":"y","origin":[8,2.4,8]},"faces":{"north":{"uv":[8,0,8.6,3.2],"texture":"#0"},"east":{"uv":[8,0,8.6,3.2],"texture":"#0"},"south":{"uv":[8,0,8.6,3.2],"texture":"#0"},"west":{"uv":[6.4,8,7,11.2],"texture":"#0"},"up":{"uv":[12.6,1.4,12,0.8],"texture":"#0"},"down":{"uv":[12.6,1.6,12,2.2],"texture":"#0"}}},{"from":[7.5,2.9,7.5],"to":[8.5,3.4,8.5],"rotation":{"angle":0,"axis":"y","origin":[8,3.4,8]},"faces":{"north":{"uv":[12,2.4,12.8,2.8],"texture":"#0"},"east":{"uv":[12,3.2,12.8,3.6],"texture":"#0"},"south":{"uv":[12,4,12.8,4.4],"texture":"#0"},"west":{"uv":[4.8,12,5.6,12.4],"texture":"#0"},"up":{"uv":[7.2,12,6.4,11.2],"texture":"#0"},"down":{"uv":[12,6.4,11.2,7.2],"texture":"#0"}}},{"from":[7.5,3.9,7.5],"to":[8.5,4.4,8.5],"rotation":{"angle":0,"axis":"y","origin":[8,4.4,8]},"faces":{"north":{"uv":[12,2.4,12.8,2.8],"texture":"#0"},"east":{"uv":[12,3.2,12.8,3.6],"texture":"#0"},"south":{"uv":[12,4,12.8,4.4],"texture":"#0"},"west":{"uv":[4.8,12,5.6,12.4],"texture":"#0"},"up":{"uv":[7.2,12,6.4,11.2],"texture":"#0"},"down":{"uv":[12,6.4,11.2,7.2],"texture":"#0"}}},{"from":[7.55,3.4,7.55],"to":[8.45,3.9,8.45],"rotation":{"angle":0,"axis":"y","origin":[8,3.9,8]},"faces":{"north":{"uv":[12,4.8,12.8,5.2],"texture":"#0"},"east":{"uv":[5.6,12,6.4,12.4],"texture":"#0"},"south":{"uv":[12,5.6,12.8,6],"texture":"#0"},"west":{"uv":[6.4,12,7.2,12.4],"texture":"#0"},"up":{"uv":[8,12,7.2,11.2],"texture":"#0"},"down":{"uv":[8.8,11.2,8,12],"texture":"#0"}}},{"from":[7.75,7,8.6],"to":[8.25,15,9.6],"rotation":{"angle":0,"axis":"y","origin":[7.75,11.96194,9.3949]},"faces":{"north":{"uv":[5.6,4.8,6,11.2],"texture":"#0"},"east":{"uv":[4,0,4.8,6.4],"texture":"#0"},"south":{"uv":[4,6.4,4.4,12.8],"texture":"#0"},"west":{"uv":[4.8,0,5.6,6.4],"texture":"#0"},"up":{"uv":[12.4,8.8,12,8],"texture":"#0"},"down":{"uv":[9.2,12,8.8,12.8],"texture":"#0"}}},{"from":[7.7525,14.61679,8.26326],"to":[8.2475,15.61679,9.26326],"rotation":{"angle":22.5,"axis":"x","origin":[7.75,13.96194,9.3949]},"faces":{"north":{"uv":[12,8.8,12.4,9.6],"texture":"#0"},"east":{"uv":[9.6,11.2,10.4,12],"texture":"#0"},"south":{"uv":[9.6,12,10,12.8],"texture":"#0"},"west":{"uv":[11.2,9.6,12,10.4],"texture":"#0"},"up":{"uv":[12.4,10.4,12,9.6],"texture":"#0"},"down":{"uv":[10.8,12,10.4,12.8],"texture":"#0"}}},{"from":[7.755,15.05776,7.71612],"to":[8.245,16.05776,8.71612],"rotation":{"angle":45,"axis":"x","origin":[7.75,13.96194,9.3949]},"faces":{"north":{"uv":[12,10.4,12.4,11.2],"texture":"#0"},"east":{"uv":[10.4,11.2,11.2,12],"texture":"#0"},"south":{"uv":[11.2,12,11.6,12.8],"texture":"#0"},"west":{"uv":[11.2,10.4,12,11.2],"texture":"#0"},"up":{"uv":[12.4,12,12,11.2],"texture":"#0"},"down":{"uv":[12.4,12,12,12.8],"texture":"#0"}}},{"from":[8,7,5.5],"to":[8,26,10.5],"rotation":{"angle":0,"axis":"y","origin":[8,7,5.5]},"faces":{"north":{"uv":[0.1,0.1,0.1,15.2],"texture":"#0"},"east":{"uv":[4,0,0,15.2],"texture":"#0"},"south":{"uv":[0.1,0.1,0.1,15.2],"texture":"#0"},"west":{"uv":[0,0,4,15.2],"texture":"#0"},"up":{"uv":[0,4,0,0],"texture":"#0"},"down":{"uv":[0.1,0.1,0.1,4],"texture":"#0"}}},{"from":[7.5,9,8],"to":[8.5,10,10],"rotation":{"angle":22.5,"axis":"x","origin":[7.5,9,8]},"faces":{"north":{"uv":[11.2,11.2,12,12],"texture":"#0"},"east":{"uv":[8.8,5.6,10.4,6.4],"texture":"#0"},"south":{"uv":[12,0,12.8,0.8],"texture":"#0"},"west":{"uv":[9.6,6.4,11.2,7.2],"texture":"#0"},"up":{"uv":[8,11.2,7.2,9.6],"texture":"#0"},"down":{"uv":[10.4,7.2,9.6,8.8],"texture":"#0"}}},{"from":[7.5,11,8],"to":[8.5,12,10],"rotation":{"angle":22.5,"axis":"x","origin":[7.5,11,8]},"faces":{"north":{"uv":[11.2,11.2,12,12],"texture":"#0"},"east":{"uv":[8.8,5.6,10.4,6.4],"texture":"#0"},"south":{"uv":[12,0,12.8,0.8],"texture":"#0"},"west":{"uv":[9.6,6.4,11.2,7.2],"texture":"#0"},"up":{"uv":[8,11.2,7.2,9.6],"texture":"#0"},"down":{"uv":[10.4,7.2,9.6,8.8],"texture":"#0"}}},{"from":[7.5,13,8],"to":[8.5,14,10],"rotation":{"angle":22.5,"axis":"x","origin":[7.5,13,8]},"faces":{"north":{"uv":[11.2,11.2,12,12],"texture":"#0"},"east":{"uv":[8.8,5.6,10.4,6.4],"texture":"#0"},"south":{"uv":[12,0,12.8,0.8],"texture":"#0"},"west":{"uv":[9.6,6.4,11.2,7.2],"texture":"#0"},"up":{"uv":[8,11.2,7.2,9.6],"texture":"#0"},"down":{"uv":[10.4,7.2,9.6,8.8],"texture":"#0"}}},{"from":[7.278,5.475,6.45],"to":[7.278,12.775,13.75],"rotation":{"angle":45,"axis":"x","origin":[7.278,9.125,10.1]},"faces":{"north":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"east":{"uv":[0.1,0.1,0.1,0],"texture":"#2"},"south":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"west":{"uv":[0,0,16,16],"texture":"#2"},"up":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"down":{"uv":[0.1,0.1,0.1,3],"texture":"#2"}}},{"from":[8.722,5.475,6.45],"to":[8.722,12.775,13.75],"rotation":{"angle":45,"axis":"x","origin":[8.722,9.125,10.1]},"faces":{"north":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"east":{"uv":[16,0,0,16],"texture":"#2"},"south":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"west":{"uv":[0.1,0.1,0.1,0],"texture":"#2"},"up":{"uv":[0.1,0.1,0.1,3],"texture":"#2"},"down":{"uv":[0.1,0.1,0.1,3],"texture":"#2"}}}],"gui_light":"front","display":{"thirdperson_righthand":{"rotation":[2,0,7.5],"translation":[-0.25,2.5,1.5],"scale":[1.5,1.5,1.5]},"thirdperson_lefthand":{"rotation":[2,0,7.5],"translation":[-0.25,2.5,1.5],"scale":[1.5,1.5,1.5]},"firstperson_righthand":{"rotation":[-10,9,0],"translation":[0.25,1.5,0.25],"scale":[0.84961,0.84961,0.84961]},"firstperson_lefthand":{"rotation":[-10,9,0],"translation":[0.25,1.5,0.25],"scale":[0.84961,0.84961,0.84961]},"ground":{"translation":[0,11.5,0],"scale":[2,2,2]},"INVENTORY GUI":{"rotation":[90,-135,90],"translation":[-2.25,-3.25,0],"scale":[0.76953,0.76953,0.76953]},"head":{"scale":[1.5,1.5,1.5]},"fixed":{"rotation":[0,-90,0],"translation":[0,-10.25,-1.5],"scale":[2.16602,2.16602,2.16602]}}}
2 images attached
Kodari AI
KodariMar 14 at 2:37 pm 22,174 (v2)

I’ll read the existing plugin files to understand the current structure and then integrate the flame sword texture.

I’ll integrate the flame sword texture by creating the proper resource pack structure and updating the weapon configuration.

I’ll integrate the flame sword texture system. This requires creating the resource pack structure and updating the configuration.

Updated config to use NETHERITE_SWORD with “Fire Blade” name matching your properties file, created resource pack structure with OptiFine CIT support, added automatic resource pack distribution system. Place your texture PNG files in the placeholder locations, zip the resourcepack folder, and host it - then players will automatically see the animated flame sword texture when they join!

ondriss645

can u create me the option 2 where i get the recourse pack etc

Kodari AI
KodariMar 14 at 2:45 pm 29,783 (v2)

I’ll read the existing files to understand the current implementation, then create an automatic resource pack generation and hosting system for you.

I’ll create an automatic resource pack generation and hosting system (Option 2) that generates the pack from your weapon configs and hosts it locally!

Now I’ll create a complete auto-generation and hosting system for your resource pack!

ondriss645

it is showing that it failed to download pack, fix it please

Kodari AI
KodariMar 14 at 2:56 pm 11,726 (v2)

I’ll read the resource pack related files to diagnose the download issue.

I found multiple issues causing the resource pack download failure:

  1. ZIP structure is wrong - pack.mcmeta must be at the root, not inside a subfolder

  2. Public IP is “localhost” - won’t work for remote players

  3. Missing response headers - need proper caching and content headers

Let me fix these issues:

Fixed resource pack download issues:

  1. Corrected ZIP structure - pack.mcmeta now at root level (required by Minecraft)

  2. Added comprehensive logging - shows exact URLs, file sizes, and connection attempts

  3. Improved HTTP headers - added CORS and cache control for better compatibility

  4. Better error messages - warns when public-ip is localhost and shows troubleshooting steps

  5. Config updated - placeholder reminds you to set your actual server IP

To fix the download issue, you need to:

  1. Set resource-pack.host.public-ip in config.yml to your server’s actual IP address (not localhost)

  2. Ensure port 8080 is open in your firewall

  3. Reload the plugin or restart the server

Kodari can make mistakes. Review important code before using.
Files
resourcepack
src
build.gradle
manifest.kod
Code
33 2,116
src/main/java/com/customweaponsplus/CustomWeaponsPlus.java
package com.customweaponsplus;

import com.customweaponsplus.command.WeaponCommand;
import com.customweaponsplus.inventory.gui.GUIListener;
import com.customweaponsplus.inventory.gui.GUIManager;
import com.customweaponsplus.listener.CraftingListener;
import com.customweaponsplus.listener.WeaponListener;
import com.customweaponsplus.manager.AbilityManager;
import com.customweaponsplus.manager.ConfigManager;
import com.customweaponsplus.manager.CraftingManager;
import com.customweaponsplus.manager.ResourcePackManager;
import com.customweaponsplus.manager.WeaponManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomWeaponsPlus extends JavaPlugin {
    
    private ConfigManager configManager;
    private WeaponManager weaponManager;
    private AbilityManager abilityManager;
    private CraftingManager craftingManager;
    private GUIManager guiManager;
    private ResourcePackManager resourcePackManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.weaponManager = new WeaponManager(this);
        this.abilityManager = new AbilityManager(this);
        this.craftingManager = new CraftingManager(this);
        this.guiManager = new GUIManager();
        this.resourcePackManager = new ResourcePackManager(this);
        
        configManager.loadConfig();
        craftingManager.registerRecipes();
        
        Bukkit.getPluginManager().registerEvents(new WeaponListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CraftingListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(resourcePackManager, this);
        
        getCommand("customweapons").setExecutor(new WeaponCommand(this));
        
        getLogger().info("CustomWeaponsPlus enabled! Loaded " + weaponManager.getWeapons().size() + " weapons.");
    }
    
    @Override
    public void onDisable() {
        craftingManager.unregisterRecipes();
        resourcePackManager.shutdown();
        getLogger().info("CustomWeaponsPlus disabled!");
    }
}