Hi. I was rewriting one plugin(Villager balanced trades) and stucked on the most hard place, of course for me. I need to make librarian sell enchanted books depending his level. Like on novice he is selling books under 5 lvl of enchantment, on apprentice under 10lvl, on master 30lvl. Idk how to make it, i tried result.enchant result.enchantment and result.type.enchant.
link for this plugin, my code in recipes.yml. Version is 1.20.4, core - paper