▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/CogTrade
CogTrade

CogTrade

A physical trading and economy mod for Fabric servers and singleplayer worlds.

Оцените первым
89
0
Все версииCogTrade 1.1.0

CogTrade 1.1.0

Alpha13.03.2026

Список изменений

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

CommandDescription
/trade offer <player>Send a trade request (TAB completion supported)
/trade acceptAccept an incoming trade request
/trade rejectReject an incoming trade request
/trade cancelCancel 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 locksession.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 PendingItemReturn and 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_trades database 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_depots table; 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

Загрузил

ID версии

Главная