Q Shop

A flexible server shop for Forge 1.20.1, NeoForge 1.21.1 and NeoForge 26.1.2, with buy, sell, barter and command trades, custom currencies, limits, in-game editing and a Builder-first KubeJS API.
Back to Files

qshop-neoforge-1.21.1-1.9.0

File nameqshop-neoforge-1.21.1-1.9.0.jar
Uploader
DxEVILDxEVIL
Uploaded
Dec 4, 2026
Downloads
18
Size
388.5 KB
Mod Loaders
NeoForge
File ID
10029685
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:q-shop-1654563:10029685"

Learn more about Curse Maven

What's new

1.9.0 - 2026-12-04

Added

  • Added an optional currency price display hook (QShopAddonApi#registerPriceDisplay / CurrencyPriceDisplay), so a currency with denominations can be drawn as denomination text (for example 2 金币 2 银币) instead of one flat smallest-unit number. Hooks are tried in registration order, and a null answer keeps the previous formatting, so other currencies and addons without a hook are unaffected. CurrencyService.API_VERSION is now 1.2.0.
  • The hook returns a Component rather than a String, so denominations keep their own colours (a plain string could only express the 16 legacy § colours). It also receives the compact pixel budget, so a hook can adapt to whichever grid (7x3 or 8x4) is on screen, and it may override compactScale to draw its currency at a smaller scale when its text is wider than QShop's own number + 货币名.
  • The balance bar (bottom-left) now goes through the same hook: compact text on the button, full text in its tooltip.

Changed

  • Shop prices now go through CurrencyDisplays.format(currencyId, amount, compact, budgetPx, fallbackName) in one place: cell text, price tooltip, buy/sell tooltip lines, trade panel price row, purchase total and the balance bar. The amount itself is still kept in the smallest unit, so a display hook can never round a price or change a trade result.
  • A hook may now also choose the drawing scale for its own currency through compactScale(currencyId); returning 0 keeps the historical behaviour, so a shop without the hook still draws prices at 0.6 with the original cellW - 2 clipping and looks exactly as before. When a hook does ask for a smaller scale, QShop clips at the unscaled font width ((cellW - 2) / scale) instead — the old fixed cellW - 2 clip sliced the trailing unit off wider texts (18 银 60 铜 was rendered as 18 银 60).
  • The fallback currency name comes from the currency list the server syncs to the client (the same Currency.displayNameText() the shop already used), so a hook never changes which name is shown when it declines a currency.
  • CurrencyRegistry gained compact(double) — the K/M/B abbreviation that used to be private to ShopScreen — so the default formatting and any display hook share one implementation.

Fixed

  • qshop.gui.total_price is now a single %s placeholder (合计: %s / Total: %s / Gesamt: %s), because the formatted price already carries the unit name.