T

Im using the version 26.1.2 of minecraft paper

📎 1 file 2,795 chars
📄
pasted-code-1785513851506.txt
txt 71 lines
▶
Act as an expert Minecraft server configuration assistant. Generate a fully structured INVENTORY GUI shop configuration (or plugin configuration compatible with Vault for economy and EssentialsX) for the /shop command. 

The shop must be organized into clear, logical categories (e.g., Building Blocks & Nature, Farming & Crops, Mob Drops & Combat, Food & Consumables, Ores & Resources, Flowers, Equipment & Weapons) so that items are neatly sorted and grouped by type (e.g., flowers must never be placed next to weapons like tridents).

Here are the required items with their exact buy and sell prices:
- Dirt: Buy 2$, Sell 0.02$
- Cobblestone: Buy 5$, Sell 0.1$
- Oak Sapling: Buy 7.5$, Sell 0.05$
- Wheat Seed: Buy 10$, Sell 0.01$
- Wheat: Buy 5$, Sell 0.1$
- Sugar Cane: Buy 20$, Sell 0.15$
- Bamboo: Buy 10$, Sell 0.05$
- Rotten Flesh: Buy 0.5$, Sell 0.05$
- Bone: Buy 1$, Sell 0.1$
- Arrow: Buy 1$, Sell 0.15$
- String: Buy 2.5$, Sell 0.25$
- Spider Eye: Buy 3.5$, Sell 0.45$
- Gunpowder: Buy 5$, Sell 0.75$
- Breeze Rod: Buy 50$, Sell 3.5$
- Wither Skeleton Skull: Buy 100,000$, Sell 10$
- Carrot: Buy 15$, Sell 0.1$
- Potato: Buy 15$, Sell 0.1$
- Egg: Buy 25$, Sell 0.5$
- Sweetberry: Buy 7.5$, Sell 0.2$
- Bread: Buy 2$, Sell 0.35$
- Raw Beef: Buy 7.5$, Sell 0.75$
- Raw Porkchop: Buy 7.5$, Sell 0.75$
- Poisonous Potato: Buy 15$, Sell 1$
- Raw Chicken: Buy 5$, Sell 0.5$
- Raw Mutton: Buy 6$, Sell 0.6$
- Raw Salmon: Buy 5$, Sell 0.5$
- Tropical Fish: Buy 10$, Sell 2$
- Raw Cod: Buy 5$, Sell 0.5$
- Pufferfish: Buy 10$, Sell 2$
- Cocoa Beans: Buy 10$, Sell 0.5$
- Netherite Upgrade: Buy 1000$, Sell 50$
- Netherite Scrap: Buy 500$, Sell 30$
- Raw Iron: Buy 20$, Sell 2.5$
- Raw Gold: Buy 50$, Sell 5$
- Coal: Buy 10$, Sell 1$
- Book: Buy 25$, Sell 1$
- Leather: Buy 10$, Sell 1$
- White Wool: Buy 5$, Sell 0.45$
- Nether Wart: Buy 150$, Sell 2.5$
- Soul Sand: Buy 100$, Sell 5$
- Oxeye Daisy: Buy 2$, Sell 0.2$
- Dandelion: Buy 2$, Sell 0.2$
- Short Grass: Buy 0.5$, Sell 0.025$
- Poppy: Buy 2$, Sell 0.2$
- Cornflower: Buy 2$, Sell 0.2$
- Azure Bluet: Buy 2$, Sell 0.2$
- Shulker Shell: Buy 100$, Sell 10$
- Trident: Buy 1000$, Sell 75$
- Shield: Buy 30$, Sell 5$
- Apple: Buy 5$, Sell 0.1$
- Oak Log: Buy 4$, Sell 0.2$
- Iron Ingot: Buy 40$, Sell 5$
- Gold Ingot: Buy 100$, Sell 10$
- Diamond: Buy 250$, Sell 25$
- Emerald: Buy 150$, Sell 15$
- Glass: Buy 2$, Sell 0.05$
- Brick: Buy 6$, Sell 0.2$
- Feather: Buy 2$, Sell 0.1$
- Flint: Buy 3$, Sell 0.1$
- Ender Pearl: Buy 50$, Sell 5$
- Blaze Rod: Buy 25$, Sell 2$
- Prismarine Shard: Buy 15$, Sell 1.5$
- Experience Bottle: Buy 100$, Sell 10$
- Saddle: Buy 200$, Sell 20$

Ensure the output is clean, professional, well-formatted, and ready for implementation.
Kodari AI
KodariJul 31 at 4:13 pm 28
CategoryShop
A Vault-compatible inventory GUI shop plugin for Paper servers. Opens a categorized /shop menu where players buy and sell items with left/right clicks. Items are organized into logical categories — Building Blocks & Nature, Farming & Crops, Mob Drops & Combat, Food & Consumables, Ores & Resources, Flowers, and Equipment & Weapons — each fully configurable in config.yml with custom buy/sell prices, icons, and slots. Supports buying single items or batches and selling one or a full inventory stack, with automatic price formatting and chat feedback.

CategoryShop is built — a categorized GUI shop for Paper with Vault economy:

  • /shop opens a 27-slot main menu with 7 categories (Building Blocks & Nature, Farming & Crops, Mob Drops & Combat, Food & Consumables, Ores & Resources, Flowers, Equipment & Weapons), each opening a 54-slot item GUI with a back button.

  • All 64 items with your exact buy/sell prices are pre-loaded in config.yml, grouped so flowers, food, drops, and gear never mix.

  • Click actions: Left = buy 1, Shift+Left = buy 16, Right = sell 1, Shift+Right = sell all. Item lore shows live prices and how many the player has in inventory.

  • Economy: Vault hook (EssentialsX Economy, etc. works) with configurable messages for purchases, sales, and insufficient funds; /shop reload (permission categoryshop.reload) re-reads the config.

  • Structure: reusable GUI framework (inventory/ package), ShopManager handles config loading + transactions, XSeries keeps material names cross-version safe.

Add a new item by dropping another MATERIAL: {buy, sell} entry under any category in config.yml — no code changes needed.

T

NEW SHOP ITEMS & ECONOMY PRICING:

Integrate all the following items and prices into the plugin's shop configuration or code (Buy price / Sell price):

  • Redstone Dust: Buy 5$, Sell 0.5$
  • Redstone Torch: Buy 8$, Sell 0.8$
  • Repeater: Buy 20$, Sell 2$
  • Comparator: Buy 30$, Sell 3$
  • Sticky Piston: Buy 45$, Sell 4.5$
  • Dispenser: Buy 50$, Sell 5$
  • Observer: Buy 60$, Sell 6$
  • Iron Door: Buy 80$, Sell 8$
  • Iron Trapdoor: Buy 40$, Sell 4$
  • Tripwire Hook: Buy 10$, Sell 1$
  • Lava Bucket: Buy 100$, Sell 10$
  • Water Bucket: Buy 75$, Sell 7.5$
  • Shears: Buy 30$, Sell 3$
  • Iron Hoe: Buy 25$, Sell 2.5$
  • Campfire: Buy 20$, Sell 2$
  • Furnace: Buy 15$, Sell 1.5$
  • Anvil: Buy 500$, Sell 50$
  • Chest: Buy 15$, Sell 1.5$
  • Hopper: Buy 60$, Sell 6$
  • Name Tag: Buy 75$, Sell 7.5$
  • Paper (Bandage item): Buy 5$, Sell 0.5$
  • Bow: Buy 45$, Sell 4.5$
  • Crossbow: Buy 60$, Sell 6$
  • Golden Apple: Buy 150$, Sell 15$
  • Glass Bottle: Buy 5$, Sell 0.5$
  • Fermented Spider Eye: Buy 25$, Sell 2.5$
  • Magma Cream: Buy 35$, Sell 3.5$
  • Slime Ball: Buy 30$, Sell 3$
  • TNT: Buy 150$, Sell 15$
  • Clock: Buy 40$, Sell 4$
Kodari AI
KodariAug 1 at 8:27 am 1

Integrated all 30 new shop items into config.yml with the requested buy and sell prices.

Added categories and placements:

  • Building Blocks & Nature: Iron Door, Iron Trapdoor, Lava Bucket, Water Bucket, Campfire, Furnace, Anvil, Chest, Hopper

  • Mob Drops & Combat: Fermented Spider Eye, Magma Cream, Slime Ball

  • Food & Consumables: Golden Apple, Glass Bottle

  • Equipment & Weapons: Shears, Iron Hoe, Name Tag, Paper, Bow, Crossbow

  • Redstone & Utilities: Redstone Dust, Redstone Torch, Repeater, Comparator, Sticky Piston, Dispenser, Observer, Tripwire Hook, TNT, Clock

A new Redstone & Utilities category was added to keep automation and redstone items organized separately.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
17 1,051
src/main/java/com/categoryshop/CategoryShop.java
package com.categoryshop;

import com.categoryshop.command.ShopCommand;
import com.categoryshop.inventory.gui.GUIListener;
import com.categoryshop.inventory.gui.GUIManager;
import com.categoryshop.manager.ShopManager;
import lombok.Getter;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.plugin.RegisteredServiceProvider;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CategoryShop extends JavaPlugin {

    private GUIManager guiManager;
    private ShopManager shopManager;
    private Economy economy;

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

        if (!setupEconomy()) {
            getLogger().severe("Vault or an economy plugin was not found. Disabling CategoryShop.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        this.guiManager = new GUIManager();
        this.shopManager = new ShopManager(this);
        this.shopManager.load();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getCommand("shop").setExecutor(new ShopCommand(this));
    }

    private boolean setupEconomy() {
        if (getServer().getPluginManager().getPlugin("Vault") == null) {
            return false;
        }
        RegisteredServiceProvider<Economy> rsp = getServer().getServicesManager().getRegistration(Economy.class);
        if (rsp == null) {
            return false;
        }
        this.economy = rsp.getProvider();
        return this.economy != null;
    }
}