Tags
Creators
Details
2.1.1
Compatibility
Changes
Per-item price keys (price-id) (optional)
To allow multiple independent price entries for the same Minecraft Material (for example two different shop items that both use EXPERIENCE_BOTTLE), items may declare an optional price-id string in their configuration. When present, the plugin uses this price-id as the pricing key (and as the dynamic-pricing state key stored in shop-dynamic.yml) instead of the material name.
Notes:
price-idis optional; if omitted the material name (e.g.DIAMOND,EXPERIENCE_BOTTLE) is used and pricing remains material-scoped (backwards compatible).price-idmust be unique across your shop configuration if you want independent pricing/multipliers for two items that share the same material.- Dynamic state (multipliers) are saved by
price-idinshop-dynamic.ymlwhen present; legacy material keys continue to be supported.
Example (category item):
my-exp-bottle-item:
material: EXPERIENCE_BOTTLE
price-id: exotic_exp_1 # optional unique key to separate pricing
buy: 10.0
sell: 5.0
dynamic-pricing:
starting-multiplier: 1.0
min-multiplier: 0.5
max-multiplier: 3.0
buy-change: 0.01
sell-change: 0.01
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:zaW55ehx:yhBgpwQO"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:zaW55ehx:yhBgpwQO"
}

