Variable Economy - Market

Adds a server wide market to the game using Variable Economy core to drive the currency.
Back to Files

variable_economy_market-0.7.0.jar

File namevariable_economy_market-0.7.0.jar
Uploader
AzotusAzotus
Uploaded
Dec 2, 2026
Downloads
10
Size
745.1 KB
Mod Loaders
NeoForge
File ID
9962999
Type
B
Beta
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:variable-economy-market-1818103:9962999"

Learn more about Curse Maven

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_factor pricing's state, so prices are the same), item edits, tag rules, money counts, price history and players' trade history all carry over. An unlimited_stock setting, in a catalog file, an item edit, a tag rule or a spreadsheet, still works and means stock_policy: unlimited. A 0.6.2 backup restores.
  • The server config gains new sections ([defaults], [stock], [transactions], [browse]) and pricing.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 sell is unchanged.

Stock

  • Stock policies. Each item's stock_policy is finite (the market holds a stock, as before), player_supplied (only what players sell is in stock; it never restocks) or unlimited (as unlimited_stock: true was).
  • Stock limits. max_stock caps 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_stock keeps part of a finite stock back from buyers. A finite item with restock and target_stock refills 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) and bulk_selling (turns selling from the screen off).

Pricing

  • Pricing providers. How an item is priced is now its pricing setting, 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) and supply_demand (recent net buying raises the price, net selling lowers it, fading over time). min_price and max_price hold an item's unit price within limits.
  • Formulas. The expression pricing provider prices an item from your own formula: formula (a price before the fees), or buy_formula and sell_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 as min, clamp, sqrt and log. 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 / max for 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_purchases in 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.
  • 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 common c: 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|info make 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 for confirm, and its items then have no class. Class edits are in backups.
  • The server config in game. /market admin config lists every option; config <key> explains one; config set <key> <value> and config 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; addstock and takestock change it by an amount; restock runs one restocking step now; stocks <empty|low|full> lists the items in that state. Admin stock changes (these, setstock and clearstock) 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 providers lists the providers installed.
  • /market admin reload says what changed: items newly listed or no longer listed, and items whose base price, pricing provider or stock policy changed. After /reload the same goes to the server log.
  • /market admin export config writes 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 info names each stock and pricing field and where it comes from, and describes the stock. /market admin diagnose also 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 a min_price).
  • The spreadsheet has the new fields as columns (an unlimited_stock column 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