getFortuneLevel could also increase other enchantment levels
florensie opened this issue ยท 1 comments
This is meant to increase the fortune level used by the loot function. This loot function could be used for other enchantments than fortune, however. Vanilla only uses the function for fortune, but this is an issue when user datapacks or or mods use the minecraft:apply_bonus function for other enchantments.
Example:
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:uniform_bonus_count",
"parameters": {
"bonusMultiplier": 1
}
}
Enchantment could be any other enchantment. MixinApplyBonusCount#curios$applyFortune should filter for fortune-only functions.