# Millenaire Marketplace
WORK IN PROGRESS
Millenaire Marketplace connects a Millenaire village market to MC Trade Post's physical trade network on NeoForge 1.21.1. It adds an **Entrepot** that lets a village buy needed goods and sell protected surplus through one or more connected Trade Stations.
## Using an Entrepot
1. Craft an Entrepot from planks, a Trade Coin, a Trade Interchange, and a Trade Post road block.
2. Place it inside or near an operational Millenaire market.
3. Build a valid Trade Post route from the Entrepot to a Trade Station.
4. Configure the Trade Station's imports and exports as usual.
5. Use the Entrepot to open its status panel.
An Entrepot permanently binds to the single qualifying market at its placement. It refuses ambiguous placements and reports a missing, unavailable, or non-operational bound market instead of silently switching villages. Both autonomous and player-controlled villages are supported.
## Trading
- **Village purchases:** The Entrepot publishes demand for construction shortages and culture shop-stock targets. Prices come from Millenaire trade goods and are converted to whole Trade Coins. Purchased cargo is delivered to the market's storage.
- **Village sales:** The Entrepot offers only stock above construction needs, shop targets, and existing reservations. It automatically matches that surplus to configured imports at connected Trade Stations.
- **Multiple stations:** A market can maintain several independently validated Trade Station connections. When several stations want the same surplus, the Entrepot favors the best unit price, then total price, shorter route, and a stable station order.
- **Currency:** Trade Coins and Millenaire deniers remain separate. The default conversion is **1 Trade Coin = 64 deniers** and can be changed in the common config.
- **Safety:** Payments, cargo reservations, deliveries, settlements, offers, and connection state persist across saves and chunk unloads. Deliveries that do not fit remain in a persistent overflow buffer and are retried when market storage has room.
The status panel shows the bound market, every attached station and its connection state, current proposed imports, and potential surplus. It also explains common placement and binding failures.