Create: Trading Floor Ledger

Quick rating

Create: Trading Floor Ledger

No reviews yet

An addon for Create: Trading Floor that tracks how many trades each player has completed.

Economy & Trade Systems
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
TradingFloorLedger-1.0.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

Trading Floor Ledger

Trading Floor Ledger is a lightweight addon for Create: Trading Floor that tracks how many trades each player has completed through Trading Depots and provides integration with FTB Quests and KubeJS.

Features

  • Detects trades completed via Trading Depots using a Mixin.
  • Tracks trade counts per player and persists them to disk.
  • Works even when the player is offline.
  • Fires a custom Forge event (TradingTradeEvent) that KubeJS can listen to.
  • Provides the /tf_trades command to check your current trade count and progress toward the next milestone.

How It Works

Trades are attributed to the player who placed the Trading Depot. Every successful trade increases that player's recorded trade count.

The mod fires a custom Forge event called TradingTradeEvent on the Forge event bus. The event exposes:

  • The player associated with the Trading Depot.
  • The player's total recorded trade count.

Using KubeJS and EventJS, you can listen for this event to implement custom quests, rewards, achievements, leaderboards, or any other gameplay mechanics.

Command

/tf_trades

Displays your current trade count and progress toward the next milestone. Milestones are not built into the mod and are instead defined by your KubeJS scripts.

Requirements

  • Forge 1.20.1
  • Create: Trading Floor

Optional Dependencies

  • KubeJS + EventJS — listen to TradingTradeEvent and implement custom logic.
  • FTB Quests — integrate trade counts into quest progression.

Credits & License

This addon incorporates and adapts portions of the source code from the original Create: Trading Floor project by CakeGit, licensed under the MIT License.

Copyright (c) 2024 CakeGit

Original source code: https://github.com/cakeGit/Create-Trading-Floor

The required MIT copyright notice and license text are included with this project.

<details> <summary>Example: FTB Quests integration using KubeJS</summary>
// kubejs/server_scripts/trading_floor_quests.js

// Milestones: [trade count, quest task ID]
const MILESTONES = [
    [5,   '57F4FE71F78DFA05'],
    [100, '33FCBCE23CA8214A'],
    [500, '2372061A10003C77'],
];

NativeEvents.onEvent(
    Java.loadClass('com.cak.tradingfloor.fix.TradingTradeEvent'),
    event => {
        const player = event.player;
        const total = event.totalTrades;

        for (const [required, taskId] of MILESTONES) {
            if (total === required) {
                player.server.runCommandSilent(
                    `ftbquests change_progress ${player.name.string} complete ${taskId}`
                );
                console.info(`[TradingFloorFix] Milestone ${required} reached for ${player.name.string}`);
            }
        }
    }
);

ServerEvents.commandRegistry(event => {
    const { commands: Commands } = event;
    event.register(
        Commands.literal('tf_trades')
            .executes(ctx => {
                const player = ctx.source.playerOrException;
                const TradeEventBridge = Java.loadClass('com.cak.tradingfloor.fix.TradeEventBridge');
                const count = TradeEventBridge.getTradeCount(player.server, player.uuid);
                const next = MILESTONES.find(([req]) => req > count);

                const nextComponent = next
                    ? Text.translatable('tradingfloorfix.trades.next', Text.of(`§e${next[0] - count}`))
                    : Text.translatable('tradingfloorfix.trades.done');

                player.tell(
                    Text.translatable('tradingfloorfix.trades.count',
                        Text.of(`§e${count}`),
                        nextComponent
                    ).withStyle('aqua')
                );
                return 1;
            })
    );
});
</details>

Trading Floor Ledger

Trading Floor Ledger is a lightweight addon for Create: Trading Floor that tracks how many trades each player has completed through Trading Depots and provides integration with FTB Quests and KubeJS.

Features

  • Detects trades completed via Trading Depots using a Mixin.
  • Tracks trade counts per player and persists them to disk.
  • Works even when the player is offline.
  • Fires a custom Forge event (TradingTradeEvent) that KubeJS can listen to.
  • Provides the /tf_trades command to check your current trade count and progress toward the next milestone.

How It Works

Trades are attributed to the player who placed the Trading Depot. Every successful trade increases that player's recorded trade count.

The mod fires a custom Forge event called TradingTradeEvent on the Forge event bus. The event exposes:

  • The player associated with the Trading Depot.
  • The player's total recorded trade count.

Using KubeJS and EventJS, you can listen for this event to implement custom quests, rewards, achievements, leaderboards, or any other gameplay mechanics.

Command

/tf_trades

Displays your current trade count and progress toward the next milestone. Milestones are not built into the mod and are instead defined by your KubeJS scripts.

Requirements

  • Forge 1.20.1
  • Create: Trading Floor

Optional Dependencies

  • KubeJS + EventJS — listen to TradingTradeEvent and implement custom logic.
  • FTB Quests — integrate trade counts into quest progression.

Credits & License

This addon incorporates and adapts portions of the source code from the original Create: Trading Floor project by CakeGit, licensed under the MIT License.

Copyright (c) 2024 CakeGit

Original source code: https://github.com/cakeGit/Create-Trading-Floor

The required MIT copyright notice and license text are included with this project.

Example: FTB Quests integration using KubeJS
// kubejs/server_scripts/trading_floor_quests.js

// Milestones: [trade count, quest task ID]
const MILESTONES = [
    [5,   '57F4FE71F78DFA05'],
    [100, '33FCBCE23CA8214A'],
    [500, '2372061A10003C77'],
];

NativeEvents.onEvent(
    Java.loadClass('com.cak.tradingfloor.fix.TradingTradeEvent'),
    event => {
        const player = event.player;
        const total = event.totalTrades;

        for (const [required, taskId] of MILESTONES) {
            if (total === required) {
                player.server.runCommandSilent(
                    `ftbquests change_progress ${player.name.string} complete ${taskId}`
                );
                console.info(`[TradingFloorFix] Milestone ${required} reached for ${player.name.string}`);
            }
        }
    }
);

ServerEvents.commandRegistry(event => {
    const { commands: Commands } = event;
    event.register(
        Commands.literal('tf_trades')
            .executes(ctx => {
                const player = ctx.source.playerOrException;
                const TradeEventBridge = Java.loadClass('com.cak.tradingfloor.fix.TradeEventBridge');
                const count = TradeEventBridge.getTradeCount(player.server, player.uuid);
                const next = MILESTONES.find(([req]) => req > count);

                const nextComponent = next
                    ? Text.translatable('tradingfloorfix.trades.next', Text.of(`§e${next[0] - count}`))
                    : Text.translatable('tradingfloorfix.trades.done');

                player.tell(
                    Text.translatable('tradingfloorfix.trades.count',
                        Text.of(`§e${count}`),
                        nextComponent
                    ).withStyle('aqua')
                );
                return 1;
            })
    );
});

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works