fourohfournf

Make a plugin like itemsadder

Kodari AI
KodariFeb 26 at 2:27 pm 16,470 (v2)

I’ll create a comprehensive custom items plugin similar to ItemsAdder with configuration-based item creation, custom model data, recipes, and resource pack integration.

CustomItemsEngine
A powerful custom items system inspired by ItemsAdder. Create custom items with textures, custom model data, enchantments, and attributes through simple YAML configuration. Features include custom crafting recipes, shapeless recipes, item commands, resource pack integration, and full item management. Supports custom tools, weapons, armor, food, and decorative items with complete customization options.

I’ll create a comprehensive custom items plugin similar to ItemsAdder with config-based item creation, recipes, and custom model data support.

Plugin created! CustomItemsEngine is a comprehensive custom items system similar to ItemsAdder with config-based item creation, custom model data support, crafting recipes, and full item management through commands.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
Code
12 988
src/main/java/com/kodari/customitems/CustomItemsEngine.java
package com.kodari.customitems;

import com.kodari.customitems.commands.ItemCommand;
import com.kodari.customitems.items.ItemManager;
import com.kodari.customitems.listeners.ItemListener;
import com.kodari.customitems.recipes.RecipeManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomItemsEngine extends JavaPlugin {
    private ItemManager itemManager;
    private RecipeManager recipeManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("items.yml", false);
        saveResource("recipes.yml", false);
        
        this.itemManager = new ItemManager(this);
        this.itemManager.loadItems();
        
        this.recipeManager = new RecipeManager(this);
        this.recipeManager.loadRecipes();
        
        getCommand("customitems").setExecutor(new ItemCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new ItemListener(this), this);
        
        getLogger().info("CustomItemsEngine enabled with " + itemManager.getItemCount() + " custom items!");
    }
    
    @Override
    public void onDisable() {
        if (recipeManager != null) {
            recipeManager.unregisterAllRecipes();
        }
        getLogger().info("CustomItemsEngine disabled!");
    }
    
    public void reload() {
        reloadConfig();
        itemManager.loadItems();
        recipeManager.unregisterAllRecipes();
        recipeManager.loadRecipes();
    }
}