
Penchant
Penchant перерабатывает зачарование в Майнкрафт: все чары начинаются с 1 уровня и прокачиваются при использовании инструментов. Никакой зубрёжки XP - просто пользуйся вещами, и они становятся сильнее.
Список изменений
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
