
CogTrade
A physical trading and economy mod for Fabric servers and singleplayer worlds.
Оцените первым
89
0
Список изменений
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
Файлы
cogtrade-1.1.0.jar(13.10 MiB)
ОсновнойМетаданные
Канал релиза
Alpha
Номер версии
1.1.0
Загрузчики
Fabric
Версии игры
1.20.1
Загрузок
7
Дата публикации
13.03.2026
