Enchantment Table Rebalance

hi there! i've never made a datapack but i've dabbled in resource packs. i think that it's not very interesting that enchantment tables have the most investment required of any enchantment method and yet have the most rng and no consistent way to get the enchantments you actually want. i'd like to change that by making them always enchant at the highest tier (eg. efficiency v, fortune iii) if there are more than 15 bookshelves around them, and making the enchantment applied guaranteed if specific blocks corresponding to specific enchantments are placed in the same area as the bookshelves typically are. is this possible to create with datapacks? do you know of anything similar that i could use instead?
Continue to help post