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.
I’ll create a client-side mod that adds a toggleable /pay command with DonutSMP-style formatting.
Now I’ll create the mod structure with all necessary files.
Created DonutPay Mod — a client-side Fabric mod with:
/pay <username> <amount>command — Sends payment commands to the server with DonutSMP-style formatting (golden text with bold labels)Toggle keybind (P key) — Press P to enable/disable the pay system
Visual feedback — Green messages when enabled, red when disabled, golden yellow when sending payments
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.
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
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:
/pay <username> <amount>- Supports k/m/b/t suffixes (e.g.,/pay Steve 1.5b)Fake DonutSMP scoreboard - Displays balance, rank, kills, deaths, playtime on right side
Balance deduction - Automatically subtracts from your fake balance when using
/payFull customization - Use
/donutconfigcommands to set all valuesToggle system - Press P to enable/disable pay, plus individual field toggles
Persistent config - Saves to
config/donutpay_scoreboard.json
The scoreboard updates in real-time when you use /pay, and all settings are saved automatically!
The scoreboard should move. Like playtime should count upwards when im in. It should be in This format, Days and hours
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:
Playtime starts at 0 and counts upward continuously while in-game
Format automatically switches between “Xh” and “Xd Yh”
When you use
/pay, it deducts from your balance as beforeConfig 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!
The scoreboard should update in realtime. Also the scoreboard should look like in the picture im sending u now
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");
}
}