This resourcepack is not meant to do anything out of the box. It does however, have some built in compat between Whimscape, Dual Swords, and Farmer's Delight.
So what is the purpose of this resource pack? Why use it?
First off, whether you're a normal player, a resource pack artist, or a modpack maintainer, you are allowed to use, modify, and redistribute the contents of this pack however you want. Many well made, and extremely polished texture packs suffer from the issues this resource pack fixes or helps streamline. So whether you have a hundred downloads or 1 million, you are free to use the contents within, add them or use them in your personal project or modpack. No credits, no references back to this page.
If you're a non-advanced user, this resource pack allows you to simply drag and drop unique custom textures for enchanted books into
\assets\minecraft\textures\item\enchanted_books\
and take full advantage of preconfigured conditional textures for vanilla enchantments, in vanilla Minecraft. No mods required, no extra steps. Just be on 1.21.4 and up. These features are:
- Support for vanilla enchantments with higher than vanilla levels. (Levels above what are available in vanilla often cause many resource packs to break and stop displaying custom textures).
- Support for enchanted books with multiple enchants, while also allowing you to define custom order and priority for how these custom textures are displayed.
If youre an advanced user, or creator, this pack will allow you to easily add modded compat for your resource pack, fix issues in how your textures are chosen, and define the order you want these textures to be displayed.
Simply by editing this file found here:
\assets\minecraft\items\enchanted_book.json
Example: For books with multiple enchantments/curses, the texture for curses will always be prioritized.

The only other enchant that is strictly prioritized currently is mending. Everything else in the file is sorted by MAX_LEVEL -> ALPHABETICAL.
The file is clearly formatted to allow you to easily edit, adjust, or add entries while not breaking structure. The highlighted portion is what you'll want to copy and paste when adding new / modded enchants.

Simply adjust
"value": [{"enchantments": "minecraft:vanishing_curse"}],
to reflect the enchantment you want to add, for instance :
"value": [{"enchantments": "farmersdelight:backstabbing"}],
Then edit
"model": "minecraft:item/enchanted_books/curse_of_vanishing"
to reflect this change as well. For a modded entry :
"model": "farmersdelight:item/enchanted_books/backstabbing"
This simply points to your models folder located in
\assets\[modded directory]\models\item\enchanted_books\enchantment_name.json
For our example here, this points to
\assets\farmersdelight\models\item\enchanted_books\backstabbing.json
Where this file simply contains this content pointing to the corresponding texture directory. Like so :

From here you can simply drop your custom texture in :
\assets\farmersdelight\textures\item\enchanted_books\
and have it show up in game, in your defined order, without issues like having the texture disappear when the enchantment level is too high, or having the texture disappear on books with too many enchants.
When editing enchanted_book.json, please keep in mind that when adding, or deleting blocks of code, you must ammend the amount of curly braces at the end of the file. If you use VSCode, Notepad++, or Sublime, they will make it extremely easy to deal with this, and let you know when you have added the amount you need by highlighting all further additions in red. If you edit the file, and get a Resource Pack loading fail, you most likely forgot to do this, and need to go into this file and make sure the file has the correct amount.

NOTE
You are completely free to use this as you see fit, with no need to credit me or link back to this page. That being said, if you are a resource pack creator and this did help you, if you found it useful, or you just need help, please add me on discord @ DMSW and let me know.
ALL WHIMSCAPE RELATED TEXTURES REDISTRIBUTED IN THIS PACK ARE MADE BY ME AND MEANT FOR THE PURPOSES OF EDUCATION

