Teru Kun

can you make an items adder plugin that supports paper server latest version. you the items other right? I want you to make a free version of that, that works and has no error, build it like absolutely like that. dont make mistakes/

Kodari AI
KodariOct 30 at 1:57 am 1
ItemForge
ItemForge is a Paper server plugin that lets administrators create custom items with unique names, lore, enchantments, and attributes. It provides a simple command system to generate items directly into inventory, save them to configuration files for reuse, and manage custom item definitions. The plugin supports latest Paper versions, offering a lightweight alternative to premium item plugins with full functionality including custom model data, glowing effects, and item flags. All items are stored in a YAML configuration for easy editing and distribution.

I’ll create a lightweight Paper custom-items plugin: configurable items with names, lore, model data, persistent item IDs, and give/list/reload commands. It won’t replicate ItemsAdder’s full resource-pack, custom-block, and furniture toolchain.

Created KodariItems, a lightweight custom-items plugin for Paper 1.21+. Define items in config.yml with a base material, display name, lore, and custom model data; use /ki give <id> [player], /ki list, and /ki reload to manage them.

This provides configurable tagged items, not a full ItemsAdder replacement: it doesn’t generate or host resource packs, custom blocks, or furniture. Custom textures still require a resource pack that maps the configured model data.

Teru Kun

how do i use that plugin?and also this is the discription about the real items adder "⚡ Break the Minecraft limits! ⚡​ ✅ v4 is compatible with Spigot 1.20.6, 1.21.1, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.10, 1.21.11, 26.1.1, 26.1.2, 26.2 (Java 21) ✅ v3 supports Spigot 1.15.2 → 1.20.4 and (Java 8 → 17) - download here ✅ 18,000+ downloads ✅ One of the best-rated premium plugins ⭐⭐⭐⭐⭐

✅ Resourcepack generator, manager, merger and protector ✅ Custom animated text effects ✅ Custom furniture (static and animated) ✅ Triggers, commands & events for items, blocks, hats & more ✅ Emojis usable in chat, books, holograms, anvil names & more ✅ Scripting language ✅ Files editor (Visual Studio Code extension) ✅ Custom chat ranks & formats ✅ Custom vehicles (cars, planes) ✅ Custom animated entities ✅ Custom emotes ✅ Custom vanilla armor textures (Shaders 1.17+, native 1.21.2+) ✅ Custom HUDs & GUI ✅ Custom blocks ✅ Custom blocks properties (hardness, loot tables, sounds, etc.) ✅ Custom ores ✅ Custom trees (example) ✅ Custom surface decoration blocks (example) ✅ Custom cave decoration blocks ✅ Custom liquids (example) ✅ Colored fire (example) ✅ Consumables (food, drinks, potions) ✅ Custom weapons & tools (bows, crossbows, fishing rods, etc.) ✅ Realistic durability system for custom tools ✅ Stackable items (no glitches) ✅ Custom crafting, smelting, smithing & anvil repair recipes ✅ Custom fuel for furnaces & machines ✅ Custom music discs & custom sounds/music

✅ WorldEdit support (beta extension) ✅ Java API & Skript API for developers "

Kodari AI
KodariOct 30 at 2:14 am 1

Use KodariItems

  1. In Kodari, click Compile in the top bar. In the build window, click Compile, then Download the successful build.

  2. Put the downloaded JAR in your Paper server’s plugins folder and restart the server.

  3. After it starts, edit plugins/KodariItems/config.yml to change or add item definitions, then run /ki reload or restart.

The config already defines two example IDs: ruby and frost_blade. Give yourself one with /ki give ruby, give one to an online player with /ki give frost_blade PlayerName, and see configured IDs with /ki list. Console commands need the player name, for example ki give ruby PlayerName. These commands require kodariitems.admin, which is granted to server operators by default.

For a new item, add an entry under items, such as:

YAML
  moon_gem:
    material: AMETHYST_SHARD
    name: '&dMoon Gem'
    lore:
      - '&7A shard from the moon.'
    custom-model-data: 1003

Use the entry name (moon_gem) as the item ID. A custom model number only gives the item model data; a matching resource pack is needed to display a custom texture.

Important scope note: the current plugin is a small custom-item starter, not a free clone of the ItemsAdder feature list. It supports configured base materials, names, lore, model data, and item IDs. It does not currently generate/manage resource packs or provide custom blocks, furniture, recipes, animations, vehicles, scripting, or the other features in that description. It also declares a 1.21 API version, so I can’t claim it supports every newer Paper release listed there without updating and testing it against those server versions.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 243
src/main/java/com/kodari/kodariitems/KodariItemsPlugin.java
package com.kodari.kodariitems;

import com.cryptomorin.xseries.XMaterial;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;

public final class KodariItemsPlugin extends JavaPlugin implements CommandExecutor, TabCompleter {
    private final Map<String, ItemDefinition> items = new HashMap<>();
    private NamespacedKey itemIdKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemIdKey = new NamespacedKey(this, "item_id");
        loadItems();
        getCommand("kodariitems").setExecutor(this);
        getCommand("kodariitems").setTabCompleter(this);
    }

    private void loadItems() {
        items.clear();
        var section = getConfig().getConfigurationSection("items");
        if (section == null) {
            getLogger().warning("No items are configured under 'items'.");
            return;
        }

        for (String configuredId : section.getKeys(false)) {
            var definition = section.getConfigurationSection(configuredId);
            if (definition == null) {
                continue;
            }

            String id = configuredId.toLowerCase(Locale.ROOT);
            String materialName = definition.getString("material", "");
            Material material = XMaterial.matchXMaterial(materialName)
                    .map(XMaterial::parseMaterial)
                    .orElse(null);
            if (material == null || material.isAir()) {
                getLogger().warning("Skipping item '" + configuredId + "': invalid material '" + materialName + "'.");
                continue;
            }

            String name = color(definition.getString("name", id));
            List<String> lore = definition.getStringList("lore").stream()
                    .map(KodariItemsPlugin::color)
                    .collect(Collectors.toList());
            Integer customModelData = definition.contains("custom-model-data")
                    ? definition.getInt("custom-model-data")
                    : null;
            items.put(id, new ItemDefinition(material, name, lore, customModelData));
        }
        getLogger().info("Loaded " + items.size() + " custom item definition(s).");
    }

    private ItemStack createItem(String id, ItemDefinition definition) {
        ItemStack stack = new ItemStack(definition.material());
        ItemMeta meta = stack.getItemMeta();
        if (meta != null) {
            meta.setDisplayName(definition.name());
            if (!definition.lore().isEmpty()) {
                meta.setLore(definition.lore());
            }
            if (definition.customModelData() != null) {
                meta.setCustomModelData(definition.customModelData());
            }
            meta.getPersistentDataContainer().set(itemIdKey, PersistentDataType.STRING, id);
            stack.setItemMeta(meta);
        }
        return stack;
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!sender.hasPermission("kodariitems.admin")) {
            sender.sendMessage(color("&cYou don't have permission to use this command."));
            return true;
        }
        if (args.length == 0) {
            sendUsage(sender, label);
            return true;
        }

        switch (args[0].toLowerCase(Locale.ROOT)) {
            case "give" -> giveItem(sender, label, args);
            case "list" -> listItems(sender);
            case "reload" -> {
                reloadConfig();
                loadItems();
                sender.sendMessage(color("&aKodariItems configuration reloaded."));
            }
            default -> sendUsage(sender, label);
        }
        return true;
    }

    private void giveItem(CommandSender sender, String label, String[] args) {
        if (args.length < 2 || args.length > 3) {
            sender.sendMessage(color("&cUsage: /" + label + " give <id> [player]"));
            return;
        }

        String id = args[1].toLowerCase(Locale.ROOT);
        ItemDefinition definition = items.get(id);
        if (definition == null) {
            sender.sendMessage(color("&cUnknown item ID: &f" + id));
            return;
        }

        Player target;
        if (args.length == 3) {
            target = Bukkit.getPlayerExact(args[2]);
            if (target == null) {
                sender.sendMessage(color("&cThat player is not online."));
                return;
            }
        } else if (sender instanceof Player player) {
            target = player;
        } else {
            sender.sendMessage(color("&cSpecify an online player when running this from console."));
            return;
        }

        ItemStack stack = createItem(id, definition);
        target.getInventory().addItem(stack).values()
                .forEach(leftover -> target.getWorld().dropItemNaturally(target.getLocation(), leftover));
        target.sendMessage(color("&aYou received &f" + definition.name() + "&a."));
        if (target != sender) {
            sender.sendMessage(color("&aGave &f" + definition.name() + " &ato &f" + target.getName() + "&a."));
        }
    }

    private void listItems(CommandSender sender) {
        if (items.isEmpty()) {
            sender.sendMessage(color("&eNo custom items are configured."));
            return;
        }
        sender.sendMessage(color("&aCustom item IDs: &f" + String.join(", ", items.keySet())));
    }

    private void sendUsage(CommandSender sender, String label) {
        sender.sendMessage(color("&e/" + label + " give <id> [player]"));
        sender.sendMessage(color("&e/" + label + " list"));
        sender.sendMessage(color("&e/" + label + " reload"));
    }

    @Override
    public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        if (!sender.hasPermission("kodariitems.admin")) {
            return List.of();
        }
        if (args.length == 1) {
            return matching(List.of("give", "list", "reload"), args[0]);
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
            return matching(new ArrayList<>(items.keySet()), args[1]);
        }
        if (args.length == 3 && args[0].equalsIgnoreCase("give")) {
            return matching(Bukkit.getOnlinePlayers().stream().map(Player::getName).toList(), args[2]);
        }
        return List.of();
    }

    private List<String> matching(List<String> options, String input) {
        String prefix = input.toLowerCase(Locale.ROOT);
        return options.stream().filter(option -> option.toLowerCase(Locale.ROOT).startsWith(prefix)).toList();
    }

    private static String color(String text) {
        return ChatColor.translateAlternateColorCodes('&', text);
    }

    private record ItemDefinition(Material material, String name, List<String> lore, Integer customModelData) {
    }
}