NornTech

I want to make an alternate server list in the main menu of Minecraft. Our alternate servers list will have a button called "pull servers" which will scrape Minecraft top sites for ip addresses. As well as all the standard buttons add servers etc. We will handle pinging in a smart way as to not overwhelm the client.

Kodari AI
KodariMay 13 at 1:27 am 18,307 (v2)

I’ll create a Fabric mod that adds an alternate server list with automatic server discovery to the Minecraft main menu.

ServerScout
A Fabric mod that adds an alternate server list to the Minecraft main menu with automatic server discovery. Features a 'Pull Servers' button that scrapes popular Minecraft server listing sites to discover new servers. Includes all standard server list functionality like adding, editing, and removing servers. Implements intelligent pinging strategies to prevent client overload by staggering ping requests and caching results. Provides a seamless way to discover and connect to new servers without leaving the game.

Now I’ll build the complete mod structure with all necessary files.

Complete mod built! Server Scout adds a “Discovered Servers” button to the title screen that opens an alternate server list with automatic server discovery via scraping Minecraft server listing sites, intelligent ping management to prevent overwhelming the client, and full server management functionality.

NornTech

Let us discuss the scraper more before we compile, do we have anti duplication protection, favicon saving, perhaps we could have category options to further separate servers. So that would mean new buttons create category, move to etc

Kodari AI
KodariMay 13 at 1:29 am 5,141 (v2)

Let me read the current implementation to see what we have and what needs to be enhanced:

Good catches! Looking at the current implementation:

Current State:

  • ✅ Basic anti-duplication by address checking in ServerStorage.addServer() and when pulling servers

  • ❌ No favicon saving

  • ❌ No category support

What we need to add:

1. Anti-Duplication Protection

Currently checks address only. Should we also:

  • Normalize addresses (e.g., play.server.com vs play.server.com:25565)?

  • Check by IP resolution (same server, different domains)?

  • Show user when duplicate is found rather than silently skip?

2. Favicon Saving

  • Download and cache server favicons during ping

  • Store as base64 in JSON or separate PNG files in config/serverscout/favicons/

  • Fallback to default icon if no favicon available

  • Re-fetch favicon on manual refresh?

3. Category System

Structure options:

Option A: Simple String Tags

Java
class DiscoveredServer {
    String category; // "Survival", "Creative", "Minigames", etc.
}

Option B: Full Category Objects

Java
class Category {
    String id;
    String displayName;
    int color;
    List<DiscoveredServer> servers;
}

4. New UI Elements

  • Category dropdown/filter at top of server list

  • “Create Category” button - opens dialog to name new category

  • “Move to…” button - dropdown to select category for selected server

  • “Manage Categories” button - rename/delete/recolor categories

  • Default “Uncategorized” for servers without category

5. Enhanced Scraper

Should we also try to extract from scraped pages:

  • Server names/descriptions

  • Player counts

  • Server types/tags (PvP, Survival, etc.) → auto-categorize?

  • Versions

Questions before I implement:

  1. Do you want Option A (simple string category) or Option B (full category objects with colors)?

  2. Should favicons be base64 in JSON or separate PNG files?

  3. Should we auto-categorize scraped servers based on detected keywords, or always put in “Uncategorized”?

  4. Do you want categories shown as a filter dropdown, or sidebar tabs, or tree structure?

NornTech

Give me what you think are the best of each choice

Kodari AI
KodariMay 13 at 1:31 am 3,768 (v2)

Based on best practices for mod design and UX, here are my recommendations:

1. Category System: Option B (Full Category Objects)

Java
class Category {
    String id;
    String displayName;
    int color; // RGB for visual differentiation
    int sortOrder;
}

Why: Allows color-coding, reordering, better visual organization, and room for future features (icons, collapse state). Only slightly more complex than Option A but much more powerful.

2. Favicon Storage: Separate PNG Files

Store in config/serverscout/favicons/<address-hash>.png

Why:

  • More efficient (no base64 bloat in JSON)

  • Standard Minecraft format for server icons

  • Easy to debug/manage

  • Keeps JSON lightweight and human-readable

  • Can be cached/shared easily

3. Auto-Categorization: YES

Extract keywords from scraped server names/descriptions:

  • “survival”, “vanilla” → “Survival”

  • “pvp”, “factions”, “raid” → “PvP”

  • “creative”, “plot” → “Creative”

  • “skyblock”, “skywars” → “Minigames”

  • “prison”, “op” → “Prison”

  • “modded”, “tekkit”, “ftb” → “Modded”

  • Default → “Uncategorized”

Why: Servers are organized immediately. Users can always recategorize manually. Better than dumping everything unsorted.

4. UI Layout: Left Sidebar with Categories

Plain Text
┌─────────────┬──────────────────────────┐
│ Categories  │  Servers in [Category]   │
│ ─────────── │                          │
│ ► All (42)  │  [Server 1] [Join]       │
│ ▼ Survival  │  [Server 2] [Edit]       │
│   Server 1  │  [Server 3] [Delete]     │
│   Server 2  │                          │
│ ► PvP (8)   │  [ Pull Servers ]        │
│ ► Creative  │  [ Add Server ]          │
│ ► Minigames │  [ New Category ]        │
│ + New       │                          │
└─────────────┴──────────────────────────┘

Why:

  • Intuitive (similar to Discord/file explorers)

  • Shows all categories at glance

  • Collapsible to show server list under each

  • Shows server counts

  • More efficient than dropdowns

  • Natural place for “New Category” button

Implementation Plan:

  1. New Category.java with id/name/color/sortOrder

  2. Update DiscoveredServer.java to reference category ID

  3. Smart favicon downloader in ServerPingManager

  4. Keyword-based auto-categorization in scraper

  5. Sidebar widget for category list

  6. Category management screens (create/rename/delete/reorder)

  7. Drag-and-drop to move servers between categories

Should I implement this architecture?

NornTech

Yes

Kodari AI
KodariMay 13 at 1:36 am 47,142 (v2)

I’ll implement the full category system with sidebar UI, favicon storage, and auto-categorization. Let me start by reading the current files:

Now I’ll implement the complete category system with sidebar UI, favicon storage, and auto-categorization:

Now I’ll update ServerStorage to handle categories:

Now I’ll update the scraper to auto-categorize servers:

Now I’ll update the ServerPingManager to download and save favicons:

Now I’ll create the category sidebar widget and management screens:

Now I’ll update the language file with new translations:

Now I’ll update the main server list screen to use the sidebar layout:

Now I’ll update the ServerListWidget to filter by category:

Now I’ll create the new category screen and update the confirm delete screen to handle categories:

Now I need to create a Move To Category screen for moving servers between categories:

Perfect! Now let me create a summary document of all the changes:

Summary

I’ve implemented a complete category system with sidebar UI, favicon storage, and auto-categorization for your Minecraft server list mod:

New Features:

  1. Category System

    • Full category objects with ID, display name, color (RGB), and sort order

    • 7 default categories: Uncategorized, Survival, PvP, Creative, Minigames, Modded, Prison

    • Each category is color-coded for visual differentiation

  2. Auto-Categorization

    • Scraper detects keywords in server names/descriptions

    • Automatically assigns servers to categories based on:

      • “survival”, “vanilla”, “smp” → Survival

      • “pvp”, “faction”, “raid” → PvP

      • “creative”, “plot”, “build” → Creative

      • “skyblock”, “bedwars”, “minigames” → Minigames

      • “modded”, “tekkit”, “ftb” → Modded

      • “prison” → Prison

      • Everything else → Uncategorized

  3. Anti-Duplication Protection

    • Address normalization (handles default port :25565)

    • Duplicate checking before adding servers

    • normalizeAddress() method for consistent comparison

  4. Favicon Storage

    • Downloads server favicons during ping

    • Saves as PNG files in config/serverscout/favicons/

    • Efficient file-based storage (not base64 in JSON)

    • Automatic caching with address-based filenames

  5. Sidebar UI Layout

    • Left sidebar displays all categories with server counts

    • Collapsible category tree structure

    • “All Servers” view shows everything

    • Click category to filter server list

  6. New UI Controls

    • “New Category” button - Create custom categories with name and color picker

    • “Manage Categories” button - Edit/delete/reorder categories

    • “Move to…” button - Move selected server to different category

    • Category management with delete protection (can’t delete Uncategorized)

Files Created:

  • Category.java - Category data model

  • CategoryListWidget.java - Sidebar widget for category navigation

  • CategoryManagementScreen.java - Screen for managing categories

  • NewCategoryScreen.java - Dialog for creating new categories

  • ConfirmDeleteCategoryScreen.java - Confirmation for category deletion

  • MoveToScreen.java - Dialog for moving servers between categories

Files Updated:

  • DiscoveredServer.java - Added categoryId field

  • ServerStorage.java - Category CRUD operations, favicon directory constant

  • ServerScraperService.java - Auto-categorization logic, better name extraction

  • ServerPingManager.java - Favicon download and save methods

  • DiscoveredServerListScreen.java - Complete sidebar layout rewrite

  • ServerListWidget.java - Category filtering

  • en_us.json - New translation keys for categories

The mod now provides a powerful, organized way to discover and manage Minecraft servers with automatic categorization, smart pinging, and a clean sidebar interface!

NornTech

We should also have a search option as having thousands of servers could make it hard to find a specific one. Also perhaps a built in category that can't be deleted or edited called favourites. If people star a server it will appear there

Kodari AI
KodariMay 13 at 1:42 am 59,690 (v2)

I’ll add a search feature and a built-in Favorites category with star functionality. Let me read the current files:

Now I’ll implement search functionality and the Favorites category. Let me update the files:

I need to create a proper category management screen that shows a list of categories. Let me first check what files exist:

Let me create the missing screens properly. First, I’ll create a list-based category management screen:

Now I need to update the DiscoveredServerListScreen to use the correct screen:

Perfect! I’ve successfully implemented search functionality and the Favorites category system. Here’s what was added:

Summary of New Features

1. Favorites Category

  • Added a built-in “Favorites” category (gold colored) that cannot be edited or deleted

  • Servers marked as favorite automatically appear in this category

  • The category appears at the top of the sidebar with a star icon (★ for favorited, ☆ for unfavorited)

2. Search Functionality

  • Added a search text field at the top of the server list

  • Filters servers in real-time by name or address

  • Works across all categories - searches within the currently selected category

  • Combines with category filtering for powerful server discovery

3. Star/Favorite Button

  • New star button (★/☆) appears in the button bar when a server is selected

  • Click to toggle favorite status

  • Visual feedback: filled star (★) for favorited servers, empty star (☆) for regular servers

  • Favorited servers appear in both their assigned category AND the Favorites category

4. Built-in Category Protection

  • Both “Favorites” and “Uncategorized” are protected built-in categories

  • Cannot be edited, deleted, or renamed

  • ServerStorage.isBuiltInCategory() method checks category protection

  • User-created categories can still be freely managed

5. Smart Category Filtering

  • “Favorites” category shows only favorited servers (regardless of their actual category)

  • “All Servers” shows every server

  • Regular categories show servers assigned to that category

  • All views respect the search query

New Files Created:

  • CategoryManagementListScreen.java - List-based UI for managing all categories

  • EditCategoryScreen.java - Dialog for creating/editing individual categories with color picker

  • ConfirmDeleteCategoryScreen.java - Confirmation dialog before deleting a category

  • MoveToCategoryScreen.java - Dialog for moving servers between categories

Storage Improvements:

  • getServersByCategoryAndSearch() - Combines category and search filtering

  • searchServers() - Searches servers by name/address

  • getFavoriteServers() - Returns only favorited servers

  • isBuiltInCategory() - Checks if a category can be edited/deleted

UI Updates:

  • Search field at top of server list

  • Star icons in server list entries showing favorite status

  • Favorite toggle button in control bar

  • Category sidebar automatically updates server counts including favorites

The mod now provides a complete server organization system with intelligent search, favorites management, and an intuitive sidebar navigation!

NornTech

Okay so our scrape button should have a popup come up saying "attempt to scrape how many servers?" and the default should be "100". Our scraper should attempt to scrape until it reaches that amount with pagination going through each page until it either reaches that amount or fails. Scraping should be multithreaded so that if one fails the rest are continuing. When the user hits okay and scraping starts we should then have a popup that shows what's happening currently. Like "scraped blahnetework.com from Minecraftservers.org. 1/100" etc

NornTech

Compile

NornTech

Compile

Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle.kts
gradle.properties
README.md
settings.gradle.kts
Code
27 2,551
src/main/java/com/serverscout/ServerScout.java
package com.serverscout;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ServerScout implements ModInitializer {
    public static final String MOD_ID = "serverscout";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        LOGGER.info("Server Scout initialized");
    }
}