BroFan11

create a plugin that works like itemsadder

Kodari AI
KodariSep 15 at 7:34 pm 1
ItemAdderClone
A Minecraft plugin that replicates ItemsAdder functionality, allowing server administrators to create custom items, blocks, and furniture through YAML configuration files. The plugin provides a comprehensive custom item system with unique textures, names, and lore, plus custom block placement and breaking mechanics. It includes a resource pack generator that automatically creates and applies custom model data textures, a GUI-based item management interface for browsing and obtaining custom items, and a command system for admin control. The plugin supports custom crafting recipes, item attributes, and interactive furniture placement. All custom content is defined through simple configuration files, making it easy for server owners to add unique items without coding knowledge.

I’ll create a Paper plugin foundation with configurable custom items, persistent item identity, /customitems administration commands, recipes, generated resource-pack models, and optional automatic resource-pack delivery.

Created a configurable ItemsAdder-style Paper plugin foundation.

Features included:

  • YAML-defined custom items

  • Persistent custom item IDs

  • Custom names, lore, glow, and custom model data

  • /customitems give

  • /customitems list

  • /customitems reload

  • /customitems pack

  • Shaped and shapeless recipe support

  • Generated resource-pack model files and ZIP

  • Optional automatic resource-pack delivery on player join

  • XSeries-based material and enchantment compatibility

Main configuration is in src/main/resources/config.yml. Custom textures should be placed into the generated pack under the appropriate assets/kodariitems/textures/item/ path before distributing the ZIP.

BroFan11

will it work like the actual itemsadder? i can add any items, just likt the itemsadder? Can you name it EmperorItems and remake the commands and the names it should be me.brofan11 and not dev.kodari so fix it please

Kodari AI
KodariSep 15 at 7:38 pm 1
  1. Rename the plugin and Java package from dev.kodari/KodariItems to me.brofan11/EmperorItems.

  2. Rename commands, permissions, configuration labels, and generated resource-pack identifiers to emperoritems.

  3. Keep the current configurable custom-item system intact while making the supported item/material behavior clear and consistent.

Renamed the plugin to EmperorItems and changed the Java namespace to me.brofan11.

Updated:

  • Main class: me.brofan11.emperoritems.EmperorItemsPlugin

  • Plugin name: EmperorItems

  • Author: Brofan11

  • Package paths: me/brofan11/emperoritems/...

  • Command: /emperoritems

  • Aliases: /eitems, /ei

  • Permission: emperoritems.admin

  • Resource-pack namespace: emperoritems

  • Project group: me.brofan11

Commands are now:

Plain Text
/emperoritems give <player> <item> [amount]
/emperoritems list
/emperoritems reload
/emperoritems pack

The current system allows you to define many custom items in config.yml using vanilla base materials such as PAPER, DIAMOND, GOLD_NUGGET, etc., with custom names, lore, model data, textures, glow, and recipes.

However, it is not yet a full replacement for actual ItemsAdder. It currently does not support all of ItemsAdder’s features, such as:

  • Custom blocks

  • Furniture

  • Custom plants

  • Block-breaking mechanics

  • Advanced item behaviors

  • Custom entities

  • Font images

  • Categories and item menus

  • Automatic texture compilation from source files

So you can add configurable custom items, but you cannot currently create completely new block types or every type of content ItemsAdder supports.

BroFan11

However, it is not yet a full replacement for actual ItemsAdder. It currently does not support all of ItemsAdder’s features, such as:

Custom blocks

Furniture

Custom plants

Block-breaking mechanics

Advanced item behaviors

Custom entities

Font images

Categories and item menus

Automatic texture compilation from source files add these too and also a gui

Kodari AI
KodariSep 15 at 7:42 pm 3
  1. Expand EmperorItems with configurable custom blocks, furniture, plants, interactions, entity/font definitions, and resource-pack generation hooks.

  2. Add an in-game GUI for browsing categories and giving configured custom items.

  1. Content system: add separate YAML registries for blocks, furniture, plants, entities, and fonts, with placement/break tracking and item behaviors.

  2. Resource pack: generate content models, block/furniture/plant assets, font providers, entity metadata, and copy texture sources from the plugin data folder.

  3. GUI: add /emperoritems gui with a paginated browser that gives configured custom content.

  4. Commands/config: expose the new content through list, spawn, reload, and tab completion while keeping the existing item commands.

Implemented the EmperorItems expansion.

Added:

  • Configurable custom blocks

  • Furniture placement and interaction messages

  • Custom plants with optional soil requirements

  • Block/furniture/plant breaking and item drops

  • Persistent placed-content storage

  • Configurable item-use behaviors:

    • Use messages

    • Console commands

    • Cancel-use option

  • Configurable custom entity spawning

  • Font definition support for generated resource packs

  • Texture-source copying from plugins/EmperorItems/textures/

  • Generated block, furniture, plant, and font model files

  • GUI browser with /emperoritems gui

  • New commands:

    • /emperoritems gui

    • /emperoritems spawn <entity>

    • /emperoritems list

    • /emperoritems give <player> <item> [amount]

    • /emperoritems reload

    • /emperoritems pack

  • Removed the stale duplicate dev.kodari source tree.

New configuration sections are available for:

YAML
blocks:
furniture:
plants:
entities:
fonts:

Important limitation: Minecraft resource packs cannot create genuinely new vanilla block types or entity models through configuration alone. EmperorItems now provides the ItemsAdder-style configuration and gameplay layer, but custom visual assets still need PNG/model files in:

Plain Text
plugins/EmperorItems/textures/

The generated resource pack is created at:

Plain Text
plugins/EmperorItems/generated-pack.zip

The implementation is an expanded ItemsAdder-style framework, but it is not yet a binary-compatible or feature-for-feature replacement for the actual ItemsAdder plugin.

BroFan11

what are the commands of itemsadder can u copy all of them? and remake it to my commands?

Kodari AI
KodariSep 15 at 7:44 pm 1

I’ll mirror the useful ItemsAdder-style command surface under /emperoritems without claiming unsupported commands are implemented:

  • Add aliases such as get, info, recipes, help, and version.

  • Keep existing give, list, gui, spawn, reload, and pack.

  • Add matching tab completion and update command help/usage.

  • Avoid copying the ia command name or pretending this is binary-compatible with ItemsAdder.

I’ll add the ItemsAdder-style command names that map to features EmperorItems actually has, while keeping them under your own /emperoritems command:

  • give, get, remove

  • list, info

  • recipe, recipes

  • reload, pack, zip

  • gui, spawn

  • help, version

I’ll also add aliases like /ei and /eitems through the existing plugin command, but I won’t claim unsupported ItemsAdder internals such as /ia entities or /ia debug are fully replicated.

The command layer will be expanded now. Unsupported ItemsAdder-only internals will not be faked; commands will either map to EmperorItems functionality or return a clear “not implemented” message rather than silently doing the wrong thing.

Implemented the ItemsAdder-style command set under your own /emperoritems command.

Available commands

Plain Text
/emperoritems help
/emperoritems give <player> <item> [amount]
/emperoritems get <item> [amount]
/emperoritems remove <player> <item> [amount]

/emperoritems list
/emperoritems info <item>
/emperoritems show

/emperoritems recipe [item]
/emperoritems recipes

/emperoritems gui
/emperoritems categories
/emperoritems spawn <entity>
/emperoritems entities

/emperoritems reload
/emperoritems pack
/emperoritems zip
/emperoritems resourcepack
/emperoritems version

Aliases remain:

Plain Text
/eitems
/ei

The permission is:

Plain Text
emperoritems.admin

The plugin is still named:

Plain Text
EmperorItems

and the main package remains:

Plain Text
me.brofan11.emperoritems

These commands replicate the ItemsAdder-style workflow for the features currently implemented in EmperorItems. Commands for ItemsAdder-specific internals that EmperorItems does not actually support, such as debug, register, or advanced ItemsAdder database operations, were not faked as working commands.

BroFan11

so why it doesnt support? can you make it to support?

Kodari AI
KodariSep 15 at 7:46 pm 1
  1. Explain which parts are unavailable because they require ItemsAdder’s private implementation or Minecraft/resource-pack mechanisms.

  2. Audit the current EmperorItems command and registry code so the unsupported surface is concrete.

  3. Define an implementable compatibility roadmap, then add the next safe compatibility layer rather than faking commands.

The limitation is architectural, not just missing command cases:

  • ItemsAdder uses a complete custom-content engine plus packet/resource-pack integration; a Bukkit plugin cannot create new vanilla block or entity types.

  • The current plugin stores custom blocks/furniture as ordinary vanilla blocks, so their visual model, hitbox, rotation, furniture behavior, and entity model are not equivalent yet.

  • Fonts only become usable after the generated pack is installed; generating JSON alone does not make the server/client render it.

  • Several existing commands are aliases for EmperorItems features, not implementations of ItemsAdder internals.

I’m adding a real compatibility layer now: content IDs will resolve to their placement items, and diagnostic/list/generation commands will report actual EmperorItems state instead of pretending unsupported internals work.

Added a real EmperorItems compatibility layer instead of fake ItemsAdder commands.

Now supported

Plain Text
/emperoritems items
/emperoritems blocks
/emperoritems furniture
/emperoritems plants
/emperoritems fonts
/emperoritems generate
/emperoritems debug

Also improved:

  • /emperoritems give <player> <id> now accepts item, block, furniture, and plant IDs.

  • /emperoritems get <id> supports all configured content.

  • /emperoritems remove <player> <id> supports content placement items.

  • Tab completion includes all custom content IDs.

  • /emperoritems debug shows loaded content counts and generated resource-pack location.

  • Existing aliases such as /ei and /eitems still work.

Why it cannot instantly support every ItemsAdder feature

ItemsAdder is not just a command plugin. It has its own:

  • Configuration format and database

  • Custom block engine

  • Furniture/entity systems

  • Resource-pack compiler

  • Client model and texture handling

  • Custom entity behavior

  • Font and category systems

  • Compatibility hooks with other plugins

Minecraft itself does not allow Bukkit plugins to create genuinely new block types. Custom blocks must simulate a vanilla block using techniques such as resource-pack models, block states, display entities, or server-side packet systems. The current implementation uses vanilla blocks with persistent metadata, so it is functional but not identical to ItemsAdder.

It also does not yet load ItemsAdder configuration files directly. Current content must be defined in EmperorItems’ own config.yml.

The next major features that can be implemented are:

  1. ItemsAdder YAML importer.

  2. Better furniture using display entities.

  3. Custom block visual/model handling.

  4. Category-based GUI pages.

  5. Resource-pack auto-distribution.

  6. Custom entity configuration and behavior.

  7. More complete item behaviors and events.

The commands now represent actual EmperorItems functionality rather than claiming that unsupported ItemsAdder internals are implemented.

BroFan11

can u make it to force load texturepack?

Kodari AI
KodariSep 15 at 7:50 pm 1
  1. Inspect the existing pack generator, plugin lifecycle, config, and player join handling.

  2. Add configurable automatic resource-pack delivery on join, with an optional forced acceptance prompt.

  3. Add reload-safe pack URL/hash handling and command/config support without changing existing pack generation.

Added forced resource-pack loading.

Configure src/main/resources/config.yml:

YAML
resource-pack:
  auto-send: true
  force: true
  url: 'https://your-domain.com/generated-pack.zip'
  prompt: '&6EmperorItems resource pack is required to see custom content.'
  send-delay-ticks: 20
  texture-source: textures

How it works:

  • Sends the pack automatically when a player joins.

  • Uses the generated pack’s SHA-1 hash.

  • force: true makes Minecraft require the pack; players who decline are disconnected.

  • /emperoritems sendpack sends it to everyone currently online.

  • /emperoritems reload regenerates the pack and sends the updated version to online players.

Important: the ZIP must be hosted on a publicly accessible direct-download URL. Minecraft clients cannot load the ZIP directly from your server’s plugin folder. For example:

Plain Text
https://example.com/generated-pack.zip

The generated file is located at:

Plain Text
plugins/EmperorItems/generated-pack.zip

Upload that file to your web host, set the URL in config.yml, restart or reload the plugin, then test with:

Plain Text
/emperoritems sendpack
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
20 1,553
src/main/java/me/brofan11/emperoritems/EmperorItemsPlugin.java
package me.brofan11.emperoritems;

import me.brofan11.emperoritems.command.EmperorItemsCommand;
import me.brofan11.emperoritems.content.ContentRegistry;
import me.brofan11.emperoritems.item.ItemFactory;
import me.brofan11.emperoritems.item.ItemRegistry;
import me.brofan11.emperoritems.listener.ContentListener;
import me.brofan11.emperoritems.recipe.RecipeRegistrar;
import me.brofan11.emperoritems.resource.ResourcePackGenerator;
import org.bukkit.Bukkit;
import me.brofan11.emperoritems.gui.ContentMenuHolder;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.Optional;

public final class EmperorItemsPlugin extends JavaPlugin {
    private ItemRegistry itemRegistry;
    private ItemFactory itemFactory;
    private RecipeRegistrar recipeRegistrar;
    private ResourcePackGenerator resourcePackGenerator;
    private ContentRegistry contentRegistry;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        itemRegistry = new ItemRegistry(this);
        itemFactory = new ItemFactory(this, itemRegistry);
        recipeRegistrar = new RecipeRegistrar(this, itemRegistry, itemFactory);
        contentRegistry = new ContentRegistry(this);
        resourcePackGenerator = new ResourcePackGenerator(this, itemRegistry, contentRegistry);

        reloadContent();
        Bukkit.getPluginManager().registerEvents(new ContentListener(this), this);
        Bukkit.getPluginManager().registerEvents(new Listener() {
            @EventHandler
            public void onMenuClick(InventoryClickEvent event) {
                if (!(event.getInventory().getHolder() instanceof ContentMenuHolder holder)) return;
                event.setCancelled(true);
                if (!(event.getWhoClicked() instanceof Player player) || event.getRawSlot() < 0
                        || event.getRawSlot() >= event.getInventory().getSize()) return;
                ItemStack clicked = event.getCurrentItem();
                if (clicked == null) return;
                itemFactory.getId(clicked).flatMap(itemRegistry::find).ifPresent(definition -> {
                    ItemStack give = itemFactory.create(definition);
                    if (give != null) player.getInventory().addItem(give);
                    player.sendMessage(ChatColor.GREEN + "Received " + definition.getId() + ".");
                });
            }
        }, this);
        Bukkit.getPluginManager().registerEvents(new Listener() {
            @EventHandler
            public void onPlayerJoin(PlayerJoinEvent event) {
                long delay = Math.max(0L, getConfig().getLong("resource-pack.send-delay-ticks", 20L));
                Bukkit.getScheduler().runTaskLater(EmperorItemsPlugin.this,
                        () -> sendResourcePack(event.getPlayer()), delay);
            }
        }, this);

        EmperorItemsCommand command = new EmperorItemsCommand(this);
        if (getCommand("emperoritems") != null) {
            getCommand("emperoritems").setExecutor(command);
            getCommand("emperoritems").setTabCompleter(command);
        }
    }

    public void reloadContent() {
        reloadConfig();
        itemRegistry.load();
        contentRegistry.load();
        recipeRegistrar.register();
        resourcePackGenerator.generate();
        sendResourcePackToOnlinePlayers();
    }

    public boolean sendResourcePack(Player player) {
        if (!getConfig().getBoolean("resource-pack.auto-send", false)) {
            return false;
        }
        String url = getConfig().getString("resource-pack.url", "").trim();
        if (url.isEmpty()) {
            getLogger().warning("Resource-pack auto-send is enabled, but resource-pack.url is empty.");
            return false;
        }
        byte[] hash = resourcePackGenerator.getSha1Hash();
        if (hash == null) {
            return false;
        }
        String prompt = ChatColor.translateAlternateColorCodes('&',
                getConfig().getString("resource-pack.prompt", "&6EmperorItems resource pack required."));
        boolean force = getConfig().getBoolean("resource-pack.force", false);
        player.setResourcePack(url, hash, prompt, force);
        return true;
    }

    public int sendResourcePackToOnlinePlayers() {
        if (!getConfig().getBoolean("resource-pack.auto-send", false)) {
            return 0;
        }
        int sent = 0;
        for (Player player : Bukkit.getOnlinePlayers()) {
            if (sendResourcePack(player)) {
                sent++;
            }
        }
        return sent;
    }

    public ItemRegistry getItemRegistry() {
        return itemRegistry;
    }

    public ItemFactory getItemFactory() {
        return itemFactory;
    }

    public ItemStack createItem(String id) {
        ItemStack item = itemFactory.create(id);
        if (item != null) {
            return item;
        }

        String itemId = contentRegistry.findBlock(id).map(value -> value.getItem())
                .or(() -> contentRegistry.findFurniture(id).map(value -> value.getItem()))
                .or(() -> contentRegistry.findPlant(id).map(value -> value.getItem()))
                .orElse(null);
        return itemId == null ? null : itemFactory.create(itemId);
    }

    public Optional<String> resolveItemId(String id) {
        if (itemRegistry.find(id).isPresent()) {
            return Optional.of(id.toLowerCase(java.util.Locale.ROOT));
        }
        return contentRegistry.findBlock(id).map(value -> value.getItem())
                .or(() -> contentRegistry.findFurniture(id).map(value -> value.getItem()))
                .or(() -> contentRegistry.findPlant(id).map(value -> value.getItem()));
    }

    public ResourcePackGenerator getResourcePackGenerator() {
        return resourcePackGenerator;
    }

    public ContentRegistry getContentRegistry() {
        return contentRegistry;
    }

    public void openContentMenu(Player player) {
        ContentMenuHolder holder = new ContentMenuHolder();
        Inventory inventory = Bukkit.createInventory(holder, 54, ChatColor.DARK_PURPLE + "EmperorItems");
        holder.setInventory(inventory);
        List<ItemStack> entries = new ArrayList<>();
        Set<String> itemIds = new LinkedHashSet<>();
        itemRegistry.all().forEach(definition -> itemIds.add(definition.getId()));
        itemIds.addAll(contentRegistry.contentItemIds());
        itemIds.forEach(id -> {
            ItemStack item = itemFactory.create(id);
            if (item != null) entries.add(item);
        });
        for (int slot = 0; slot < Math.min(entries.size(), inventory.getSize()); slot++) {
            inventory.setItem(slot, entries.get(slot));
        }
        player.openInventory(inventory);
    }
}