Tags
Creators
Details
Licensed MIT
Published 7 months ago
Updated 7 months ago
All versions
1.1.0
Alpha
CogTrade 1.1.07 months ago 25
Compatibility
Minecraft: Java Edition
1.20.1
Platform
Fabric
Supported environments
Client and server
Changes
CogTrade v1.1.0 Release Notes
๐ NEW: Direct Player-to-Player Live Trading System
Players can now securely trade items and coins with each other in real time. All transactions are fully server-side synchronized โ no item or coin loss is possible.
Commands
| Command | Description |
|---|---|
/trade offer <player> |
Send a trade request (TAB completion supported) |
/trade accept |
Accept an incoming trade request |
/trade reject |
Reject an incoming trade request |
/trade cancel |
Cancel your active trade session |
Features
- 30-second request timeout โ unanswered requests expire automatically
- Each player can offer up to 9 item slots and a coin amount
- Coin offer field updates in real time as you type
- Dual-confirmation system โ trade only completes when both players press READY
- Changing any offer automatically resets ready states (prevents last-second swaps)
- Trade completion plays a notification sound and shows a summary message
Security & Anti-Exploit
- Double-finalization lock โ
session.deactivate()prevents any race condition where the trade could complete twice - Trade is blocked if either player's inventory is full (stack-merging is accurately simulated before committing)
- Insufficient coin balance causes the trade to abort and all items to be returned safely
- Items belonging to offline players are queued in
PendingItemReturnand delivered on next login โ zero item loss guaranteed - Active sessions are safely aborted on disconnect or death
Audit Logging
- All completed trades are written to the
direct_tradesdatabase table for server-side history
๐ฅ๏ธ IMPROVED: Trade GUI
- Left panel (your offer) โ green-tinted background
- Right panel (partner's offer) โ yellow-tinted, read-only with lock indicator
- Left click โ move entire stack to offer slot
- Right click โ move a single item
- Middle click โ opens a floating quantity editor (type exact amount, press Enter to apply)
- Live status bar shows current state: "Partner is ready โ confirm your side!", "Both players ready!", etc.
- Closing the screen automatically sends a cancel packet to safely end the session
๐ช Market & Depot Improvements
- Multi-depot architecture โ new
trade_depotstable; each player can have multiple depots - Removed beam/tracer visual effects from
MarketLocateRenderer(performance improvement) - Fixed search box overflow in
MarketScreen - Fixed active listing overlap in
TradePostScreen - Fixed price/stock layout overlap in the player market detail panel
Requirements
- Minecraft 1.20.1
- Fabric Loader
- Fabric API
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:ILEdyCcx:2bc3tVFG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:ILEdyCcx:2bc3tVFG"
}![CogTrade [deprecated]](https://cdn.modrinth.com/data/ILEdyCcx/7f3a4a228d5ed6c97b09733a916e59ff6c4daed1_96.webp)

