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.
I’ll create a Fabric mod that adds an alternate server list with automatic server discovery to the Minecraft main menu.
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.
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
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.comvsplay.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
class DiscoveredServer {
String category; // "Survival", "Creative", "Minigames", etc.
}
Option B: Full Category Objects
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:
Do you want Option A (simple string category) or Option B (full category objects with colors)?
Should favicons be base64 in JSON or separate PNG files?
Should we auto-categorize scraped servers based on detected keywords, or always put in “Uncategorized”?
Do you want categories shown as a filter dropdown, or sidebar tabs, or tree structure?
Give me what you think are the best of each choice
Based on best practices for mod design and UX, here are my recommendations:
1. Category System: Option B (Full Category Objects)
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
┌─────────────┬──────────────────────────┐
│ 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:
New
Category.javawith id/name/color/sortOrderUpdate
DiscoveredServer.javato reference category IDSmart favicon downloader in
ServerPingManagerKeyword-based auto-categorization in scraper
Sidebar widget for category list
Category management screens (create/rename/delete/reorder)
Drag-and-drop to move servers between categories
Should I implement this architecture?
Yes
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:
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
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
Anti-Duplication Protection
Address normalization (handles default port :25565)
Duplicate checking before adding servers
normalizeAddress()method for consistent comparison
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
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
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 modelCategoryListWidget.java- Sidebar widget for category navigationCategoryManagementScreen.java- Screen for managing categoriesNewCategoryScreen.java- Dialog for creating new categoriesConfirmDeleteCategoryScreen.java- Confirmation for category deletionMoveToScreen.java- Dialog for moving servers between categories
Files Updated:
DiscoveredServer.java- AddedcategoryIdfieldServerStorage.java- Category CRUD operations, favicon directory constantServerScraperService.java- Auto-categorization logic, better name extractionServerPingManager.java- Favicon download and save methodsDiscoveredServerListScreen.java- Complete sidebar layout rewriteServerListWidget.java- Category filteringen_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!
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
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 protectionUser-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 categoriesEditCategoryScreen.java- Dialog for creating/editing individual categories with color pickerConfirmDeleteCategoryScreen.java- Confirmation dialog before deleting a categoryMoveToCategoryScreen.java- Dialog for moving servers between categories
Storage Improvements:
getServersByCategoryAndSearch()- Combines category and search filteringsearchServers()- Searches servers by name/addressgetFavoriteServers()- Returns only favorited serversisBuiltInCategory()- 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!
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
Compile
Compile
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");
}
}