
Stonks
Server-side global market for your server!
What is Stonks?
Stonks is a server-side mod that adds global market, where players can create buy/sell offers, while others can instant buy or sell for quick bucks (tl;dr: it's just like hypixel skyblock bazaar).
Please see Important note at the bottom of this page when setting up Stonks.

What makes Stonks special?
- Fully server-side! Your player doesn't need to install this; they can use
/marketto open the menu. - Trade with anyone on the server: Place offers and wait or instantly buy something from other player if you can't wait.
- ok I really can't tell what makes Stonks special other than being a "hypixel skyblock bazaar at home" edition.
Important note
-
Versions below 2.0.5 contains a critical bug that can cause market data losses. Please see the 2.0.5 changelog for more information.
-
Stonks does not works properly without further setup. See Configuration guide for more information. I mean you don't have to, but it only works partially (missing economy system for example).
-
Stonks does not comes with economy system by default, but does have supports for vanilla scoreboards (
/scoreboardthing) and Patbox's Common Economy API.If you don't have compatible economy system, you can use scoreboard as economy system by adding
useAdapter stonks.fabric.adapter.provided.ScoreboardEconomyAdapterto Stonks configuration, located insideconfig/stonks/folder.If you do have one, you still have to add adapter, like
useAdapter stonks.fabric.adapter.provided.CommonEconomyAdapterfor example. Some adapters (CommonEconomyAdapterincluded) requires extra configurations. See this documentations for more information. -
Configurations can only be reloaded by restarting server. Fortunately, you can load Stonks in singleplayer worlds and can reload configurations by rejoining your world.
License
MIT license. See LICENSE in repository for more information.
How to Install nahkd's Stonks (Mod)
nahkd's Stonks by nahkd123 is verified for Fabric across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.4-rc1, 1.20.5, 1.20.6, 1.21 (latest release: 2.2.2+26.3, file size: 328 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.4-rc1, 1.20.5, 1.20.6, 1.21) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded nahkd's Stonks file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionView changelog on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.2.2%2B26.3
View release on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.2.1%2B26.2
Also, this version fixed one minor issue related to offers menu, where the "view offer" button remains in the UI, even though it is fully removed from the market.
## Commits
- 61455c3: Java Edition 26.1 (#82) (An) [#82](https://github.com/nahkd123/stonks/pull/82)
## What's Changed
- Java Edition 26.1 by @nahkd123 in https://github.com/nahkd123/stonks/pull/82
- Full Changelog**: https://github.com/nahkd123/stonks/compare/v2.1.6+1.21.11...v2.2.0+26.1
1. I don't have plenty of free time like I used to be, and;
2. My interest for this block game is slowly declining.
At this moment, Stonks is under maintenance mode - which means this mod will only receive patches to get it to work on future version of Minecraft only, without new features or anything fancy. Who knows, maybe I will be able to finish Stonks vNext in the distant future...
- Full Changelog**: https://github.com/nahkd123/stonks/compare/v2.1.4+1.21.6...v2.1.5+1.21.9
- Update 2025/07/01**: Minecraft 1.21.7 has just released, ~~but it looks like Modrinth hasn't updated their game versions list yet. Give them time.~~ Stonks 2.1.4 will works on 1.21.7, and if you encountered an issue, consider [reporting it on GitHub](https://github.com/nahkd123/stonks/issues).
Thanks for sticking around! Stonks for Minecraft 1.21.6 is now available with little code changes.
Are you interested in new dialog system introduced in Minecraft 1.21.6? [Join the discussion](https://github.com/nahkd123/stonks/issues/71) to determine the future of server-side Stonks UI.
## What's Changed
- Java Edition 1.21.6 by @nahkd123 in https://github.com/nahkd123/stonks/pull/70
- Full Changelog**: https://github.com/nahkd123/stonks/compare/v2.1.3+1.21.5...v2.1.4+1.21.6
Changelog on GitHub can be found at [https://github.com/nahkd123/stonks/releases/tag/v2.1.3%2B1.21.5](https://github.com/nahkd123/stonks/releases/tag/v2.1.3%2B1.21.5)
- Add note for ItemsAdapter by @nahkd123 in https://github.com/nahkd123/stonks/pull/58
- Java Edition 1.21.2 by @nahkd123 in https://github.com/nahkd123/stonks/pull/61
## Note for item adapter in default config
For new users, default config now includes a warning that removing the item adapter makes Stonks for Fabric no longer be able to access player's inventory.
``
// Adapters
// "stonks.fabric.adapter.provided.ItemsAdapter" is included so that Stonks can add/remove items in player's inventory
// If you remove this adapter, Stonks will be unable to access player's inventory. If you don't need to have access to
// player's inventory, you can remove this adapter.
// Additionally, you can make your own adapter to hook with other mods, like trading RF power for example.
useAdapter stonks.fabric.adapter.provided.ItemsAdapter
``## Update to Java Edition 1.21.2
Stonks for Fabric is now updated to Minecraft Java Edition 1.21.2.
- Full Changelog**: https://github.com/nahkd123/stonks/compare/v2.1.0+1.21...v2.1.1+1.21.2
- Update**: Stonks 2.1.0 also works with 1.21.1.
Thanks for waiting for Stonks to update to Minecraft 1.21! This update includes some breaking changes to the API, which means the minor version number must be increased by 1 (which is 2.1.0). Get it? Because 21.
- In theory, your existing configurations will works in this version. If your configurations broke in this version, [please make a new bug report](https://github.com/nahkd123/stonks/issues).
- Mods that have Stonks integration might need to be updated to use the new API. Legacy API will be around until 2.2.0.
## Stonks got a new banner!
I hope to finish the new icon design soon, as the previous design doesn't have a good contrast between the white arrow and bright background.
# Changes related to code and API
## Removal of references to Nahara Modkit
Stonks now no longer have references to Nahara Modkit. However, Stonks still references to Nahara Toolkit for legacy APIs and the current configuration file format.
## Moving from Nahara Toolkit Tasks to Java Future API
Most methods that returns
Task<T> will now be marked for removal. Its Future API counterparts are also provided. For example, to use StonksService#queryAllCategories() but with CompletableFuture, use StonksService#queryAllCategoriesAsync(). Nahara Toolkit Tasks will be removed from Stonks in version 2.2.0.## Moving from adapter to
Economy interfaceThe new
Economy interface should be used over StonksFabricAdapter economy methods, as it supports fixed-point numbers (through the use of long). I hope to move most of the code to use Economy in 2.1.1.## Replacing construction data string with metadata
The new
getProductMetadata() will returns a complex data structure (like JSON or NBT) in the future. Right now, it will always returns DynamicPrimitive with isString() == true, which is basically wrapping around the construction data from user's configuration. In the future, this metadata can be used to gather additional info about the product, like its market floor/ceiling price, as well as buy/sell limit.## Critical bug fix: Data loading
Previously, Stonks will load 1 single entry from
stonks.bin and discard the rest. This update fixed that bug by keep reading the file until null version is found.- This does not affect data saving.
- This only affect data loading and can cause data loss.
To avoid further data loss, backup the current
stonks.bin file first, then stop server, install this update and start server again. After that, you can merge the data from backed up stonks.bin with the current data. The schema for stonks.bin can be found at the tools/ folder of this reppository (as ImHex pattern file). stonks.bin can be found at saves/<World name>/stonks.bin if you are on integrated server (a.k.a singleplayer), or world/stonks.bin if you are using dedicated server.## Update to Minecraft 1.20.5
The change mostly involves around item components. The item construction data in
config/stonks/config file follows the same format that is used in /give command.## Further bug fixing
If you encountered any bugs (including critical bugs like the one above), please head over to [Issues page](https://github.com/nahkd123/stonks/issues) of Stonks GitHub repository and report bug there.
The above changelog is copied directly from [this GitHub release page](https://github.com/nahkd123/stonks/releases/tag/v2.0.5%2B1.20.5). All the files attached to this update are generated from GitHub actions.
- Warning**: This version contains a bug related to data loading part of Stonks. This bug has been fixed in 2.0.5 for Minecraft 1.20.5.
This update include 1 single change: The targeted Minecraft versions is now
>=1.20.3. If you don't want to redownload Stonks, consider using [dependency overrides](https://fabricmc.net/wiki/tutorial:dependency_overrides?s[]=dependency&s[]=override) (it will work, I promise).However, most people don't want to dip their hand into this magical world of JSON editing, so I have to release a new version just to include 1.20.4. I'm truly sorry for your inconvenience.
- Did you know?** Updates are also rolled out on GitHub as well. Check it out: https://github.com/nahkd123/stonks/releases/tag/v2.0.4%2B1.20.4
I expect the mod to work as usual, but if you found a bug, consider report it in https://github.com/nahkd123/stonks/issues.
## What's Changed
- Update to Java Edition 1.20.2 ([PR #37](https://github.com/nahkd123/stonks/pull/37))
- Changed the sign type in input screen to acacia as a temporary fix for "gray-ish" text color in input GUIs
See changelog on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.0.3%2B1.20.2
IntegratedStonksService to be precise).## What's Changed (copied from GitHub Release page)
- IMPORTANT**: Add missing break to
instantOffer()method in StonksMemoryService - Add additional check to
StonksFabricHelper.instantOffer() - Fix null display stack on products with unknown construction data
See changelog on GitHub: https://github.com/nahkd123/stonks/releases/tag/v2.0.2%2B1.20.1