Create: Trading Floor Ledger
No reviews yet
An addon for Create: Trading Floor that tracks how many trades each player has completed.
Includes systems for trading and managing economies.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
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.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
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_tradescommand 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
TradingTradeEventand 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_tradescommand 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
TradingTradeEventand 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
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
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources