Adit
๐Ÿ“Ž 1 file 4,394 chars
๐Ÿ“„
pasted-code-1788245095629.txt
txt 34 lines
โ–ถ
ROLE
You are an autonomous Minecraft plugin/mod development agent. Build a complete, working project from the "MY PROJECT" description at the bottom. Read this entire prompt before writing any code.
STEP 0 โ€” MEMORY SYSTEM (set this up first, every session)
Create a folder named .dev-memory/ in the project root if it doesn't already exist, with three files:
HANDOVER.md โ€” a SHORT snapshot (never more than ~25 lines) of the CURRENT state only. Overwrite it each time, never append. It must always answer: what's done, what's broken or in progress right now, the exact next step, and any decisions a fresh AI (possibly a different model) would need so it doesn't repeat a mistake or re-derive context from scratch.
PROGRESS.md โ€” an append-only log. Add ONE terse entry (3-6 bullets max) per checkpoint (defined below). Never rewrite old entries. This is history for reference โ€” you don't need to re-read all of it every session, just skim recent entries if you're debugging something old.
PLAN.md โ€” the roadmap: a feature/milestone checklist plus key architecture decisions. Write it once near the start. Only touch it again if scope or approach materially changes โ€” not for routine progress updates.
Session-start routine, every time: read HANDOVER.md first, skim PLAN.md, only open PROGRESS.md if you need deeper history. This keeps you fast and token-cheap instead of re-reading everything.
A "checkpoint" = a milestone from PLAN.md is finished, OR a real bug is fixed, OR you hit a blocker, OR you make an architecture decision, OR you're about to stop working. Update the memory files ONLY at checkpoints โ€” never after every small edit. That's what keeps this token-efficient.
If you don't have a direct file-creation action available, use terminal/shell access instead โ€” or Node.js/Python if shell isn't available โ€” to create the folder and files, and to run build/test commands later. Never skip the memory system just because you have to reach for a script instead of a built-in tool.
If a detail is missing from "MY PROJECT" below, make a sensible, clearly-stated assumption and keep building rather than stopping to ask โ€” note the assumption in HANDOVER.md.
STEP 1 โ€” PROJECT SKELETON
Check "Software" in MY PROJECT and set up the right skeleton:
If Paper or Spigot (server-side plugin):
Gradle (or Maven); paper-plugin.yml or plugin.yml with name/version/main/api-version
Main class extends JavaPlugin, implements onEnable()/onDisable()
Listener + @EventHandler for events; register commands via the manifest + CommandExecutor (or Paper's Brigadier-based command API on modern versions)
Build target: one shaded/relocated .jar the user drops in a server's /plugins folder
If Fabric (client+server mod):
Gradle + Fabric Loom; fabric.mod.json manifest; depends on Fabric API
ModInitializer (ClientModInitializer only for client-only code)
Use Mixins only when the Fabric API genuinely can't do it, defined in .mixins.json
If Forge or NeoForge (client+server mod):
Gradle + ForgeGradle/NeoGradle; mods.toml (or neoforge.mods.toml)
Main class annotated @Mod; hook into the mod/game event buses rather than Fabric-style entrypoints
Minecraft's modding APIs shift almost every version (mappings, event names, deprecated methods, and recently even Mojang's versioning scheme and code obfuscation itself have changed). If you have web search or browsing tools available, use them now to confirm the current API for the exact Minecraft version given below โ€” don't rely purely on built-in knowledge for anything version-specific. If no such tool is available, say so plainly and flag which parts of the code are your best guess.
STEP 2 โ€” BUILD
Write PLAN.md, then implement it milestone by milestone. Keep each change small and testable. After each milestone, actually try to compile (and run, if you can launch a test server/client) before marking it done in PLAN.md.
STEP 3 โ€” WRAP-UP
Before ending any session: update HANDOVER.md so a fresh AI โ€” even a different model โ€” could pick this up cold, add one PROGRESS.md entry, and leave the project in a state that at least compiles.
MY PROJECT
Software: [Paper]
Minecraft Version: [1.21 to latest check online]
Plugin/Mod Name & Idea: [Advanced Netherite,(https://modrinth.com/mod/advanced-netherite) this is fabric modpack i want this in paper server plugin with resource pack want only for java players]
Kodari AI
KodariSep 1 at 6:49 am 12
  1. Create the Paper 1.21.4 project skeleton and development handover files.

  2. Implement Advanced Netherite-style upgrade items, smithing recipes, combat effects, and commands.

  3. Add a Java-edition resource-pack template and configurable item visuals.

Created the Advanced Netherite Paper 1.21.4 project:

  • Four progression tiers: Iron, Gold, Emerald, and Diamond Netherite.

  • Custom ingots, crafting recipes, and Netherite-template smithing upgrades.

  • Tier-tagged vanilla Netherite tools/armor with configurable combat and armor effects.

  • Emerald mining bonus/haste, Gold piglin neutrality, Iron/Diamond damage reduction.

  • /advancednetherite give and /advancednetherite reload admin commands.

  • Java resource-pack handoff structure plus configurable pack URL/hash fields.

  • .dev-memory roadmap, progress log, and handover state included.

Custom textures/models still need to be added to resource-pack/, zipped, hosted via HTTPS, then configured in config.yml.

Kodari can make mistakes. Review important code before using.
Files
.dev-memory
resource-pack
src
build.gradle
settings.gradle
Code
16 597
src/main/java/com/kodari/advancednetherite/AdvancedNetheritePlugin.java
package com.kodari.advancednetherite;

import com.kodari.advancednetherite.command.AdvancedNetheriteCommand;
import com.kodari.advancednetherite.listener.AbilityListener;
import com.kodari.advancednetherite.listener.SmithingListener;
import com.kodari.advancednetherite.service.ItemService;
import com.kodari.advancednetherite.service.RecipeService;
import org.bukkit.Bukkit;
import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class AdvancedNetheritePlugin extends JavaPlugin {
    private ItemService itemService;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemService = new ItemService(this);

        new RecipeService(this, itemService).registerRecipes();
        Bukkit.getPluginManager().registerEvents(new SmithingListener(itemService), this);
        Bukkit.getPluginManager().registerEvents(new AbilityListener(this, itemService), this);

        AdvancedNetheriteCommand command = new AdvancedNetheriteCommand(this, itemService);
        PluginCommand pluginCommand = getCommand("advancednetherite");
        if (pluginCommand != null) {
            pluginCommand.setExecutor(command);
            pluginCommand.setTabCompleter(command);
        }

        new AbilityListener(this, itemService).startArmorTask();
    }

    public ItemService getItemService() {
        return itemService;
    }
}