[0.19.1] Not compatible with quark enchants
Alaberti opened this issue ยท 3 comments
I had a player on my server try to use a Quark enchant (specifically an unbreaking 4 book) and it didn't apply to the weapon and he lost the book. Could you either add compatibility with quark enchants or prevent them from being consumed if they don't work? Thank you.
The quark books are one level higher than regular enchants, right? It accepts the book because the enchantment is valid, but it fails to apply the improvement because it does not have data for that level. Until a fix is released you can solve this issue by adding additional levels to all possible enchants in the configuration. E.g. create config/tetra/modules/sword/improvements/blade_enchants.json and copy the values from blade_enchants.json and add entries for the additional enchantment levels like this
{
"key": "enchantment/sharpness",
"level": 6,
"damage": 3.5,
"enchantment": true
}
or like this
{
"key": "enchantment/smite",
"level": 6,
"enchantment": true,
"effects": {
"smite": 6
}
},