realz1rooooo

Can u make a Minecraft fabric mod that makes a client side command ( /pay <username> <amount> ) And make it look like the /pay plugin that donutsmp uses. It should be toggleable via a customisable keybind.

Kodari AI
KodariMay 1 at 10:07 pm 11,409 (v2)

I’ll create a client-side mod that adds a toggleable /pay command with DonutSMP-style formatting.

DonutPayMod
A client-side Fabric mod that adds a /pay command with DonutSMP-style formatting. Features a customizable keybind to toggle the pay functionality on/off. When enabled, players can use /pay <username> <amount> to send payment commands to the server. The mod provides client-side command parsing and formatting before sending to the server, with visual feedback for toggle state and command execution.

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


Created DonutPay Mod — a client-side Fabric mod with:

  1. /pay <username> <amount> command — Sends payment commands to the server with DonutSMP-style formatting (golden text with bold labels)

  2. Toggle keybind (P key) — Press P to enable/disable the pay system

  3. Visual feedback — Green messages when enabled, red when disabled, golden yellow when sending payments

  4. Validation — Checks if system is enabled and validates amount is positive

The command is purely client-side and sends the actual /pay command to your server (where a server-side economy plugin would handle the real transaction). The mod provides a clean interface with DonutSMP-style colored messages and a convenient toggle.

realz1rooooo

Also make a fake donutsmp scoreboard that comes with that i can custimize how much money i have and everything else that is customisable on the donutsmp scordboard also when i use the /pay command it should take money off my scoreboard. So if i do /pay example 1b. It should take 1b off my balance

Kodari AI
KodariMay 1 at 10:13 pm 57,791 (v2)

I’ll add a fake DonutSMP scoreboard with customizable balance that updates when you use /pay.

Now I’ll create the scoreboard system with config management:

Now I’ll update the existing files to integrate the scoreboard:

Now I’ll update the client and config files to integrate everything:

Perfect! Now let me create a README to document all the features:


Complete DonutPay Mod created!

Features:

  1. /pay <username> <amount> - Supports k/m/b/t suffixes (e.g., /pay Steve 1.5b)

  2. Fake DonutSMP scoreboard - Displays balance, rank, kills, deaths, playtime on right side

  3. Balance deduction - Automatically subtracts from your fake balance when using /pay

  4. Full customization - Use /donutconfig commands to set all values

  5. Toggle system - Press P to enable/disable pay, plus individual field toggles

  6. Persistent config - Saves to config/donutpay_scoreboard.json

The scoreboard updates in real-time when you use /pay, and all settings are saved automatically!

realz1rooooo

The scoreboard should move. Like playtime should count upwards when im in. It should be in This format, Days and hours

Kodari AI
KodariMay 1 at 10:18 pm 69,533 (v2)

I’ll make the playtime count upwards automatically in days/hours format.

Now I’ll update the files to make playtime dynamic and count in days/hours format:

Now I’ll update the ConfigCommand to accept days and hours for playtime:

Now let me update the README to reflect the new playtime features:

Let me add periodic config saving for playtime:

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


Updated DonutPay Mod with Dynamic Playtime!

The scoreboard now features a live playtime counter that automatically counts upwards in days/hours format:

New Features:

  • Playtime auto-increments - Counts every tick while you’re in-game

  • Days/Hours display format - Shows as “5d 12h” or “12h” for under 1 day

  • Periodic auto-save - Config saves every 20 seconds to preserve playtime progress

  • Updated command - /donutconfig playtime <days> <hours> sets starting playtime

How it works:

  1. Playtime starts at 0 and counts upward continuously while in-game

  2. Format automatically switches between “Xh” and “Xd Yh”

  3. When you use /pay, it deducts from your balance as before

  4. Config auto-saves every 20 seconds so playtime persists between sessions

Example: If you set playtime to 5 days 12 hours with /donutconfig playtime 5 12, it will display “5d 12h” and continue counting upward from there!

realz1rooooo

The scoreboard should update in realtime. Also the scoreboard should look like in the picture im sending u now

1 image attached
Kodari can make mistakes. Review important code before using.
Files
src
.gitignore
build.gradle
gradle.properties
README.md
settings.gradle
Code
14 832
src/main/java/com/donutpay/DonutPayMod.java
package com.donutpay;

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

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

    @Override
    public void onInitialize() {
        LOGGER.info("DonutPay Mod initialized");
    }
}