Started by
Thegamerx100
on
Topic category: Help with Minecraft modding (Java Edition)
What equation is necessary to make that for each level of an enchantment (up to level 5) the number of a variable is reduced by 10%?
Topic category: Help with Minecraft modding (Java Edition)
What equation is necessary to make that for each level of an enchantment (up to level 5) the number of a variable is reduced by 10%?
I think it could be
Set variable to {(get variable) - [(get variable / 10) * enchantment level] }
And you could have a condition which checks if the enchantment level is equal or greater than 5, it would simply halve the variable rather than executing the previous operation