Releases: nahkd123/stonks
v2.1.2+1.21.4
v2.1.1+1.21.2
What's Changed
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: v2.1.0+1.21...v2.1.1+1.21.2
v2.1.0+1.21
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.
- 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
interface
The 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.
What's Changed
Full Changelog: v2.0.5+1.20.5...v2.1.0+1.21
v2.0.5+1.20.5
Thanks for waiting for Stonks to update to Minecraft 1.20.5! This update fix a critical bug related to loading data, as well as updating Stonks to Minecraft 1.20.5
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 of Stonks GitHub repository and report bug there.
Commits
v2.0.4+1.20.4
Manually written changelog
- The targeted Minecraft versions is now
>=1.20.3
I expect the previous version to work if you use dependency overrides (a.k.a force Stonks to support 1.20.4). 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.
Full Changelog: v2.0.4+1.20.3...v2.0.4+1.20.4
v2.0.4+1.20.3
What's Changed
- Use Gradle 8.3 + Fabric Loom 1.4 by @nahkd123 in #41
- Update to Java Edition 1.20.3 by @nahkd123 in #43
Full Changelog: v2.0.3+1.20.2...v2.0.4+1.20.3
v2.0.3+1.20.2
Welcome back. This new update targets Minecraft Java Edition 1.20.2, so I do expect some bugs. If you found any, please consider report it in Issues tracker.
What's Changed
- Update to Java Edition 1.20.2 by @nahkd123 in #37
- Changed the sign type in input screen to acacia as a temporary fix for "gray-ish" text color in input GUIs
Full Changelog: v2.0.2+1.20.1...v2.0.3+1.20.2
v2.0.2+1.20.1
Thanks for using Stonks! Please update your Stonks mod/plugin/platform to this version as it contains a fix that resolves unwanted behavior of in-memory service (StonksMemoryService
or IntegratedStonksService
if you are using Fabric).
What's Changed
- Add additional check to instantOffer() by @nahkd123 in #27
- Fix null display stack on products with unknown construction data by @nahkd123 in #29
- IMPORTANT: Add missing break to instantOffer() method in StonksMemoryService by @nahkd123 in #35
Full Changelog: v2.0.1+1.20.1...v2.0.2+1.20.1
v2.0.1+1.20.1
v2.0.0+1.20.1
Welcome to the first ever release of Stonks(2)!
Download: You are on the download page!
Documentations: https://nahkd123.github.io/stonks
What's Changed
- tl;dr: There's nothing changed because this is the first release 💀.
- Add next/previous navigation buttons by @nahkd123 in #5
- Add localization support by @nahkd123 in #9
- Subscribe to service events + Send "offer filled" message to player by @nahkd123 in #13
- Refactor Translations class by @nahkd123 in #14
- Fix tax not being applied when canceling offer with filled units by @nahkd123 in #19
- Add more sounds by @nahkd123 in #18
- Add ability to configure custom category icons (platform-bound) by @nahkd123 in #20
New Contributors
Full Changelog: https://github.com/nahkd123/stonks/commits/v2.0.0+1.20.1