variable_economy_market-0.7.0.jar
Curse Maven Snippet
What's new
0.7.0 (2026-12-01)
Requires core 0.6.3 or a later 0.6.x. A new screen, stock policies, a choice of pricing for each item (formulas included), and admin tools for all of it. With the default settings, prices and stock behave exactly as in 0.6.2.
Upgrading from 0.6.2
- The server and every client need 0.7.0: the network protocol changed.
- With the contracts add-on, update it too: contracts 0.6.2 only accepts the market up to 0.6.x.
- Worlds and backups from 0.6.2 load with nothing lost. Stock, prices (each item's price factor becomes the default
price_factorpricing's state, so prices are the same), item edits, tag rules, money counts, price history and players' trade history all carry over. Anunlimited_stocksetting, in a catalog file, an item edit, a tag rule or a spreadsheet, still works and meansstock_policy: unlimited. A 0.6.2 backup restores. - The server config gains new sections (
[defaults],[stock],[transactions],[browse]) andpricing.provider; the file keeps its values and comments, and every new option's default is what 0.6.2 did. - What starts counting at the upgrade: recent trading (the screen's Recent list,
/market admin stock's last four hours, and pricing that reads recent demand), and the prices on price charts (older points show how a price stood against normal, without the prices). - Selling from the screen is only through the Shipping Bin (it replaces the Selling box).
/market sellis unchanged.
Stock
- Stock policies. Each item's
stock_policyisfinite(the market holds a stock, as before),player_supplied(only what players sell is in stock; it never restocks) orunlimited(asunlimited_stock: truewas). - Stock limits.
max_stockcaps what the market holds; a sale above it is refused (overflow: refuse, the default) or paid in full with the excess destroyed (overflow: destroy).min_stockkeeps part of a finite stock back from buyers. A finite item withrestockandtarget_stockrefills a little at each recovery step. - Server-wide defaults. The server config has new
[defaults],[stock]and[transactions]sections: the markup, sell fee, can-sell/can-buy, dynamic pricing, a default class, every stock setting,partial_purchases(buy what's in stock instead of being refused) andbulk_selling(turns selling from the screen off).
Pricing
- Pricing providers. How an item is priced is now its
pricingsetting, chosen per item, class, file, tag rule or in the server config (pricing.provider):price_factor(the supply and demand the market always had, still the default, prices unchanged),fixed,stock_based(dear when the market holds little, cheap when it holds a lot) andsupply_demand(recent net buying raises the price, net selling lowers it, fading over time).min_priceandmax_pricehold an item's unit price within limits. - Formulas. The
expressionpricing provider prices an item from your own formula:formula(a price before the fees), orbuy_formulaandsell_formula(what players pay and get). Formulas can read the base price, a supply-and-demand factor, the stock and its limits, recent buying and selling, the last traded prices and more, with the usual arithmetic, comparisons, conditions and functions such asmin,clamp,sqrtandlog. A formula with a mistake is refused when the catalog loads, saying what and where. - Pricing from other mods. Mods can add their own pricing providers. An item naming one that isn't installed is priced with the server's default provider until it is, with a warning, and keeps its saved state.
- Prices come from the server. The screen and tooltips ask the server for an order's total instead of working it out themselves; a button shows its total a moment after you change the quantity.
- A price that can't be worked out refuses the trade ("The market can't price that item right now") and changes nothing; the server log says why.
- Switching an item to another pricing provider and back picks up the first one's state where it was.
- The market keeps recent trading per item, by the minute for four hours, for formulas and providers that price by recent demand.
/market price <item>names the item's pricing and how its price stands against normal.
The screen
- Four tabs.
- Browse: Recent lists what was bought from and sold to the market in the last four hours, newest first, so a rare or expensive item someone sold shows up without searching for it (counts only, never who traded). All items and categories list the catalog. A picked item shows both prices, its stock (
stock / maxfor items with a maximum), what you hold, its recent trading, and a chart of its buy and sell prices. - Buy: every item the market sells, with a quantity, Max, the server's total, and a clear note when the stock is short. Each purchase asks to confirm;
confirm_purchasesin the client config turns that off. - Shipping Bin: the estimated payout and, after the sale, what it paid, shown apart. Selling is all or nothing: every line must still pay at least its estimate, or nothing is sold. Lines the market won't take stay in the bin with the reason and don't stop the rest. Lines are capped at what the market still has room for. Browse's Sell… puts an item in it.
- History: All, Bought and Sold, with the unit price, the total and the date and time of each trade.
- Browse: Recent lists what was bought from and sold to the market in the last four hours, newest first, so a rare or expensive item someone sold shows up without searching for it (counts only, never who traded). All items and categories list the catalog. A picked item shows both prices, its stock (
- Categories. The server config's new
[browse]section lists the screen's categories: item tags (the market ships tags for the eight defaults, built from the commonc:tags, plus Miscellaneous), with a creative-tab fallback for modded items in none of them. Categories only group items on screen. - Price charts show prices. Each point keeps the buy and sell price at that time, for every pricing provider.
- Fixed: Max said "All the market has room for" when what limited it was the room in your inventory.
Administration
- Item classes in game.
/market admin class create|set|unset|rename|delete|infomake and change classes without files. An edit changes only the fields it sets; a renamed class is still found by its old name; deleting a class in use asks forconfirm, and its items then have no class. Class edits are in backups. - The server config in game.
/market admin configlists every option;config <key>explains one;config set <key> <value>andconfig reset <key>(level 4) change it, checked first, saved to the file and applied at once. - Stock commands.
/market admin stock <item>shows an item's stock in full;addstockandtakestockchange it by an amount;restockruns one restocking step now;stocks <empty|low|full>lists the items in that state. Admin stock changes (these,setstockandclearstock) add a point to the price chart. /market admin pricing <item> [quantity]shows how an item is priced, step by step: its provider and where it was chosen, its state and inputs, the provider's answer, each limit applied, and the totals for a quantity./market admin pricing test <item> <formula>tries a formula against an item without changing anything, and/market admin pricing providerslists the providers installed./market admin reloadsays what changed: items newly listed or no longer listed, and items whose base price, pricing provider or stock policy changed. After/reloadthe same goes to the server log./market admin export configwrites the world's in-game catalog changes (classes made or changed in game, item edits, tag rules) as files laid out like the config folder, to use in other worlds or ship in a modpack./market admin infonames each stock and pricing field and where it comes from, and describes the stock./market admin diagnosealso warns about stock fields an item's policy ignores, items priced by a provider that isn't installed, pricing that pays more than it charges, and formula or other mods' pricing that could profit from a round trip or that fails; and notes items whose pricing gives no lowest price (add-ons such as contracts then value them at 0 unless they have amin_price).- The spreadsheet has the new fields as columns (an
unlimited_stockcolumn still imports). - Catalog values that are out of range now say which field and which range, such as
markup must be a number from 0 to 1000, got 2000.
This mod has no additional files