Tags
Creators
Details
2.1.0+1.21
Compatibility
Required content
Changes
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.
- 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.
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| stonks-fabric-2.1.0+1.21-sources.jar | Unknown | 103.06 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:sUBS64LI:Bg6yiWd1"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:sUBS64LI:Bg6yiWd1"
}

