Yonah Rotenberg

mod that gives a notification in top right evry time an item on ah is sold donutsmp

Kodari AI
KodariNov 14 at 7:30 pm 1
AHNotifier
AHNotifier is a Minecraft Fabric mod that displays a real-time notification in the top-right corner of the screen whenever an item is sold on the auction house. It hooks into auction house events, captures sold item details including name and price, and renders a clean, unobtrusive toast-style notification. The mod features configurable display duration, toggleable notifications, and support for custom notification styling. Perfect for players who want to stay updated on auction activity without constantly checking the auction house interface.
  • Listen for server sale messages and show each matching notification as a toast.

  • Keep the mod client-only; it won’t require installation on the server.

Created a client-side mod that shows a top-right toast when a server message matches an auction sale.

The match depends on DonutSMP’s message wording. If it doesn’t trigger, send me an example sale message so I can adjust it.

Yonah Rotenberg

remake the mod for 26.1.2

Kodari AI
KodariNov 14 at 7:46 pm 1

This project is a Fabric 1.21.11 mod. Kodari doesn’t have Fabric 26.1.2; the closest options are NeoForge 26.1.2 and Fabric 26.2.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
5 106
src/client/java/com/kodari/auctionsalenotifier/AuctionSaleNotifierClient.java
package com.kodari.auctionsalenotifier;

import java.util.Locale;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.message.v1.ClientReceiveMessageEvents;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.toast.SystemToast;
import net.minecraft.text.Text;

public class AuctionSaleNotifierClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        ClientReceiveMessageEvents.GAME.register((message, overlay) -> {
            String text = message.getString();
            String lower = text.toLowerCase(Locale.ROOT);
            if (lower.contains("sold") && (lower.contains("your")
                    || lower.contains("auction") || lower.matches(".*\\bah\\b.*"))) {
                SystemToast.add(MinecraftClient.getInstance().getToastManager(),
                        SystemToast.Type.PERIODIC_NOTIFICATION,
                        Text.literal("Auction item sold!"), Text.literal(text));
            }
        });
    }
}