Tags
Creators
Details
0.7.0-alpha1+mc26.3
Compatibility
Required content
Changes
This is an experimental version which uses hcapi to allow customizing the default parameters such as level up cost and experience cost. It is marked as an alpha because hcapi is largely untested. Please report any crashes or instability.
-
Rename the
penchant:enchantment_progress_cost_factorcomponent topenchant:penchantibility -
Penchantment definitions have been replaced with the following components
progress_cost_factor->penchant:penchantibilitybook_requirement->penchant:book_requirementexperience_cost->penchant:experience_cost- Components can be set with datapack files through hcapi, a wiki will be available soon
- Levelup cost is now
item.penchantibility(nextLevel) * enchantment.penchantibility(nextLevel)
-
Add server config section to customize the multipliers, constants, and bounds of these components
Formulas
item.penchantibility = clamp( floor(item.max_damage * itemPenchantibilityMultiplier * (item is #penchant:half_default_penchantibility ? 0.5 : 1)), max(1, minItemPenchantibility), maxItemPenchantibility ) enchantment.experience_cost = max(1, floor(enchantment.anvil_cost * xpCostMultiplier)) enchantment.book_requirement = max(0, floor(enchantment.min_cost(1) * bookRequirementMultiplier) + bookRequirementConstant) enchantment.penchantibility = { base: max(1, enchantment.max_cost.base + enchantmentPenchantibilityConstant) per_level_above_first: max(0, floor(enchantment.max_cost.per_level_above_first * enchantmentPenchantibilityMultiplier)) } -
Replace the item tag
#penchant:default_progress_cost_factor_onewith#penchant:half_default_penchantibility- Now halves the penchantibility instead of setting it to 1
- This makes vanilla bow
1and crossbow2, will be adjusted in the future
- This makes vanilla bow
- Now halves the penchantibility instead of setting it to 1
Optional dependencies
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| penchant-0.7.0-alpha1+mc26.3-sources.jar | Sources jar | 251.93 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:BTORUTmf:bmHb0OwY"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:BTORUTmf:bmHb0OwY"
}

