kane.

Create a Minecraft plugin for Spigot/Paper that allows server admins to set up custom challenges, such as 'kill 10 zombies' or 'tame 15 rabbits.' An reference image has been attached.

The plugin should include:

Challenge Tracking:

Track player progress for each challenge.

Support multiple challenge types (mob kills, item collections, etc.).

Clickable Item Frames UI:

Use item frames to display challenges with custom map images showing icons and progress.

Support multiple pages of challenges.

Players can click on different parts of the item frames to switch pages or see detailed progress.

Custom Graphics:

Use map rasters for mob icons and progress indicators.

Optional: Include high-resolution arrows or icons using a resource pack or Unicode/custom font glyphs.

Event Handling:

Detect player clicks on item frames.

Map click location to the correct action (switch page, show progress, claim rewards).

Persistence:

Save challenge progress per player.

Load progress when players join the server.

Use the MapEngine GitHub as a reference for handling custom map rendering and clickable item frames.

1 image attached
Kodari AI
KodariMay 12 at 3:55 pm 24,594 (v2)

I’ll analyze the image and plan this plugin carefully before writing any code.

Plan:

  • Custom map-based UI rendered on item frames (128x128 per frame, multi-frame board)

  • Challenge types: MOB_KILL, TAME, BREED, ITEM_COLLECT

  • Click detection on item frames mapped to page navigation and challenge interaction

  • Per-player progress saved to YAML files

  • Admin commands to create/delete challenges and set up the display board

  • Map renderer draws challenge list with icons, progress bars, page info

  • Resource pack not required — pure map rendering with Java2D graphics

ChallengeBoard
A Minecraft plugin that lets server admins configure custom challenges (mob kills, taming, breeding, item collection) displayed on a multi-frame map board. Players see live progress rendered via custom map graphics with mob icons, progress bars, difficulty labels, and page navigation. Progress is saved per-player and loaded on join. Admins set up boards in-world and manage challenges via commands.

The plugin is complete. Here’s a summary of what was built:

Architecture:

  • ChallengeManager — loads/saves challenges from challenges.yml, supports MOB_KILL, TAME, BREED, ITEM_COLLECT types

  • PlayerDataManager — per-UUID YAML files in playerdata/ folder, loaded on join, saved on quit

  • BoardManager — spawns item frames in a grid, creates MapView instances per frame, handles page state per player

  • MapRenderer — renders the full board as a BufferedImage then slices it into 128×128 tiles per frame; draws pixel-art mob icons, progress bars, difficulty labels, page info, and navigation arrows

  • ImageMapRenderer — Bukkit MapRenderer subclass that paints a BufferedImage onto a map canvas

Commands:

  • /challenge list|progress|claim <id> — player-facing

  • /challengeadmin createboard <id> <facing> <width> <height> — spawns item frames at your feet

  • /challengeadmin addchallenge <id> <type> <difficulty> <target> <goal> [reward] — add challenges live

  • /challengeadmin removeboard|removechallenge|resetplayer|reload

Click handling: Right-clicking any board item frame detects which frame was clicked, maps it to a challenge row or navigation zone (bottom row left = prev page, right = next page), and shows progress info in chat or triggers page turn.

kane.

Great everything works, good job. Now we need to update a few things. Make it so it uses the Minecraft font, make the text bigger.

And make it so the progress shows it as "0 van de 100".

Every text should be bold, a bit bigger and in the Minecraft font.

Kodari AI
KodariMay 12 at 4:12 pm 25,274 (v2)

Now I’ll look for the Minecraft font resource to understand what’s available, then update the renderer.

Now I have everything I need. The plan:

  • Embed the Minecraft font (minecraft_font.ttf — the classic “Minecraftia” bitmap font) as a resource, load it at startup, and use it in MapRenderer

  • Make all text bold and larger

  • Change progress text from "X / Y" to "X van de Y"

  • Change page info to Dutch style too

  • Register the font in ChallengeBoard.java

The Minecraft font (Minecraftia by Andrew Tyler) is a free TTF that perfectly replicates the in-game pixel font. I’ll load it from the plugin’s resources and register it with Java’s GraphicsEnvironment.

Now I have a full picture. Here’s my plan:

  • Bundle Minecraftia.ttf (the free Minecraft-style pixel font by Andrew Tyler) as a plugin resource

  • Load and register it in ChallengeBoard.java on enable

  • Update MapRenderer to use the Minecraft font, make all text bold + larger, and change "X / Y" → "X van de Y" and "PAGE X OF Y" → "PAGINA X VAN Y"I need to add the font loading to ChallengeBoard.java and rewrite MapRenderer.java. Let me do both:

Now rewrite MapRenderer.java with the Minecraft font, bold + bigger text, and Dutch progress strings:

Now add the Minecraftia.ttf font file to resources. This is the free Minecraft-style pixel font — I’ll add a download note and a saveResource fallback, but the TTF must be placed in src/main/resources/:

Now verify the ChallengeBoard.java looks correct end-to-end:

Good. Now write the updated MapRenderer.java:

Now add the font download instruction as a proper README inside resources, and also add a saveResource call so the font can be placed there. The font file itself (Minecraftia.ttf) must be placed in src/main/resources/ — here’s the instruction file:

Here’s a summary of every change made:

ChallengeBoard.java

  • Added java.awt.Font, java.awt.GraphicsEnvironment, java.io.InputStream imports

  • Added private Font minecraftFont field + getMinecraftFont() getter

  • Added loadMinecraftFont() — reads Minecraftia.ttf from the plugin jar’s resources, registers it with Java’s GraphicsEnvironment, falls back to Dialog bold if missing

MapRenderer.java

  • Added mcFont(float size) helper that derives the loaded Minecraft font at the given size with Font.BOLD

  • All text (challenge name, difficulty, progress, page info) now uses mcFont() instead of new Font("Dialog", ...)

  • Font sizes bumped: name 11pt, difficulty/progress/page 9pt (larger than the old 8–9pt Dialog sizes, which render much bigger in Minecraftia’s pixel grid)

  • Progress text changed from "X / Y" → "X van de Y"

  • Page info changed from "PAGE X OF Y" → "PAGINA X VAN Y"

  • Anti-aliasing explicitly disabled (VALUE_ANTIALIAS_OFF) so the pixel font stays crisp

To activate: place Minecraftia.ttf in src/main/resources/ before building. The plugin loads it at startup automatically.

kane.

Maak de challenge opdracht groter De moeilijkheidsgraad bold en ook groter. Verder moet de checkmark of cross ook iets groter zodat het wat betere kwaliteit is. De progressie (x van de y) mag ook bold en groter.

Verder zorg ervoor dat de prev and next page buttons een aparte item frame block word in het midden buiten het ingestelde frame

Dat betekend dat de middelste rij er dus zo uitziet |1x1 button frame|het ingestelde venster|1x1 button frame| Behoudt de functionaliteit dat die verdwijnt indien je niet verder kan, zorg er dan voor dat het dus dezelfde rode achter grond heeft als het main scherm.

Haal uit het ingestelde frame de streepjes lijnen weg.

Voeg ook een functionaliteit toe dat we de mob icon een echte zombie foto van minecraft kunnen invoegen zoals bijvoorbeeld de images die op Minecraft Wiki staan.

Kodari AI
KodariMay 12 at 4:26 pm 40,708 (v2)

Now I have a full picture. Here’s my plan:

  1. MapRenderer.java — bigger fonts for name/difficulty/progress, bigger status icons, remove separator lines, remove background stripe lines, add mob image URL support

  2. BoardManager.java — add separate 1×height button frames on left and right of the main board, store their UUIDs separately, register them in frameToBoard

  3. ChallengeBoard.java (board) — add fields for left/right button frame UUIDs and map IDs

  4. FrameClickListener.java — detect clicks on button frames and navigate accordingly

  5. Challenge.java — add mobImageUrl field

  6. config.yml — add mob-image-url to default challenges as example

Let me implement all of this:

Now I have everything. Let me implement all changes:

Now update ChallengeManager to load/save mob-image-url:

Now update ChallengeBoard (board data class) to hold button frame data:

Now rewrite BoardManager.java to place/load/save/remove button frames:

Good. Now rewrite BoardManager.java:

Now rewrite MapRenderer.java with all the visual improvements and renderButtonFrame:

Now update FrameClickListener to handle clicks on the left/right button frames:

Now add mob-image-url example to config.yml for the zombie challenge:

The files I tried to update with <kodariUpdatedFile> tags didn’t execute — let me write them properly now:

Here’s a summary of every change:

Visual improvements (MapRenderer.java)

  • Name font: 11pt → 14pt bold Minecraft font

  • Difficulty font: 9pt → 11pt bold

  • Progress font: 9pt → 11pt bold, text is "X van de Y"

  • Status icon: 16px → 20px, thicker stroke (2.5f), better checkmark proportions

  • Background stripe lines removed — clean solid background

  • Separator lines between rows removed

  • Navigation arrows removed from the main board (moved to button frames)

Button frames (BoardManager.java + MapRenderer.renderButtonFrame)

  • On createBoard, two extra 1×1 item frames are placed: one to the left and one to the right of the main board at mid-height

  • Each renders a 128×128 image with the same red border/background as the main board

  • Active (can navigate): shows a large red arrow pointing left/right

  • Inactive (at first/last page): shows only the matching background — no arrow, blends in

  • UUIDs and map IDs are persisted in boards.yml and restored on loadBoards

  • removeBoard also removes the button frames

FrameClickListener.java

  • Detects clicks on left/right button frames via isLeftButtonFrame / isRightButtonFrame

  • Navigates pages and re-renders; inactive button frames simply do nothing

  • Chat messages translated to Dutch

Mob image URL (Challenge.java + ChallengeManager.java)

  • New mobImageUrl field on Challenge

  • Loaded/saved in challenges.yml as mob-image-url

  • MapRenderer fetches the image async on first render, caches it, then draws it pixel-perfect with nearest-neighbour scaling

  • Falls back to pixel art if no URL is set or the download fails

  • Example added to config.yml for the zombie challenge: mob-image-url: "https://minecraft.wiki/images/Zombie.png"

kane.

Great, now make it so the image works, cause currently it doesnt load the png file from an direct url. Make it so I can set that value to every single challange. Change it so we don't run a command on completing a challenge but giving them a "KNOLPOWER "coin and explode fireworks at the player when they complete it.

Besides that make it so we can set a specific block like a juke box so it displays an hologram above it with the text: "Statistieken: [Red]{Username}

[RED+BOLD]KNOLPOWER COINS {Coin amount}

Achievements gehaald totaal: {challenges completed}"

Then also make a other block like an end eye portal frame with above a hologram saying:

"[RED+BOLD]KNOLPOWER COINS inleveren

[Bouncing up and down hologram] >> Klik om een KNOLPOWER coin te gebruiken <<

Then when they click on the block they can redeem it, when they do so fireworks come out of the block and explode from above to down, like the item drops out of the sky and reveals when the firework explode on the block. And then when they do so it has a floating block on it which players can pickup and it replaced temporarly the hologram with:

"{Item name}

Kans om te vinden {Normal|Medium|Impossible|Legendary|Epic et cetera}"

Make it so they can set rewards, what rarity and the possibility to find them. Also make it so when they not redeem it but click on the block ( so punch, it opens a INVENTORY GUI with all the possible items, and their rarity and % of winning it.)

Also improve the ui more, since we currently have [Uploaded image 1], and we want it more to look like. [Uploaded image 2]

2 images attached
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
21 2,127
src/main/java/com/challengeboard/ChallengeBoard.java
package com.challengeboard;

import com.challengeboard.board.BoardManager;
import com.challengeboard.challenge.ChallengeManager;
import com.challengeboard.command.ChallengeAdminCommand;
import com.challengeboard.command.ChallengeCommand;
import com.challengeboard.listener.ChallengeListener;
import com.challengeboard.listener.FrameClickListener;
import com.challengeboard.listener.PlayerListener;
import com.challengeboard.storage.PlayerDataManager;
import org.bukkit.plugin.java.JavaPlugin;

import java.awt.*;
import java.io.InputStream;

public class ChallengeBoard extends JavaPlugin {

    private ChallengeManager challengeManager;
    private PlayerDataManager playerDataManager;
    private BoardManager boardManager;
    private Font minecraftFont;

    public Font getMinecraftFont() {
        return minecraftFont;
    }

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

        loadMinecraftFont();

        this.challengeManager = new ChallengeManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.boardManager = new BoardManager(this);

        challengeManager.loadChallenges();
        playerDataManager.loadAllPlayers();
        boardManager.loadBoards();

        getServer().getPluginManager().registerEvents(new ChallengeListener(this), this);
        getServer().getPluginManager().registerEvents(new FrameClickListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);

        getCommand("challenge").setExecutor(new ChallengeCommand(this));
        getCommand("challengeadmin").setExecutor(new ChallengeAdminCommand(this));

        int refreshInterval = getConfig().getInt("map-refresh-interval", 40);
        getServer().getScheduler().runTaskTimer(this, () -> boardManager.refreshAllBoards(), refreshInterval, refreshInterval);

        getLogger().info("ChallengeBoard enabled!");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAllPlayers();
        }
        if (boardManager != null) {
            boardManager.saveBoards();
        }
        getLogger().info("ChallengeBoard disabled.");
    }

    public ChallengeManager getChallengeManager() {
        return challengeManager;
    }

    public PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }

    public BoardManager getBoardManager() {
        return boardManager;
    }

    private void loadMinecraftFont() {
        try (InputStream is = getResource("Minecraftia.ttf")) {
            if (is != null) {
                minecraftFont = Font.createFont(Font.TRUETYPE_FONT, is);
                GraphicsEnvironment.getLocalGraphicsEnvironment().registerFont(minecraftFont);
                getLogger().info("Minecraft font loaded.");
            } else {
                getLogger().warning("Minecraftia.ttf not found in resources, falling back to Dialog.");
                minecraftFont = new Font("Dialog", Font.BOLD, 10);
            }
        } catch (Exception e) {
            getLogger().warning("Failed to load Minecraft font: " + e.getMessage());
            minecraftFont = new Font("Dialog", Font.BOLD, 10);
        }
    }
}