This idea is to add machines which create and consume Enchantments in liquid form, as a fun and different means of moving enchantments onto and off of items.
There would be one new Fluid for each and every enchantment and curse, plus one extra utility fluid, named Enchantability.
This Fluids would produced in the Fluid Enchantment Extractor, and consumed by the Fluid Enchantment Infuser.
To use the Fluid Enchantment Infuser, first put in any item which can be placed into a vanilla Enchanting Table. Then, add buckets of Fluid from the mod.
To get a level I enchantment on an item, add one bucket of that enchantment's fluid, plus one bucket of liquid Enchantability.
For each additional enchantment level, double the number of buckets of that enchantment's fluid, and add one extra bucket of Enchantability. For example, to get Looting I, II, III or X, you will need one, two, four, or five hundred twelve buckets of liquid Looting, plus one, two, three, or ten buckets of liquid Enchantability.
The machine will let you produce any legal combinations of enchantments (no Fortune and Silk Touch), with a maximum level of CCLV on any individual enchantment.
Enchanted items produced by the Fluid Enchantment Infuser will have the number of buckets of Liquid Enchantability used stored inside of the item's (vanilla!) RepairCost NBT Tag. As a result, using items enchanted by the Infuser inside of a vanilla anvil will be costlier than if they'd been produced by an Enchanting Table.
The Fluid Enchantment Extractor is almost exactly the inverse of the the Infuser, with one minor difference: If the item put in has less than full durability, the number of millibuckets of fluids produced will be scaled down. So if you have a Wooden Sword with Looting I on it, and 58/59 durability, instead of getting 1000mb of liquid Looting, you'll only get 983mb.
Both the Fluid Enchantment Infuser and Fluid Enchantment Extractor would be automatable with pipes.
There might be a machine for producing the utility fluid, Liquid Enchantability: Right click on an Enchanter's Cauldron while holding an empty bucket, lose one level of experience, and the empty bucket is converted into a Bucket o Enchantability. Because we are using "RepairCost" to store Enchantability, and due to how vanilla anvils work, this is 100% optional, but still convenient for the player.
Next, fluid conversions. It's almost inevitable that you'll have too much of an enchantment you don't want, and not enough of the ones you do want. Simply place down the one you want more of, wait a moment for it to be surrounded with flowing liquid, then place down the liquid you don't want, a metre or two away, so it touches the flowing liquid. The unwanted fluid source block, as soon as it touches the flowing liquid, will change itself into an enchantment source block of the same type as the flowing liquid. There could be some random probability that the fluid conversion will fail, and the unwanted fluid will become air instead. The probability of failure might rise with regional difficulty. There might be some catalyst block which can boost the probability of conversion success.
The Enchantment Fluids should be bright and colorful, and hard to visually confuse with one another. Selecting distinctive colors is easy with the aid of HSV to RGB conversion. First assign each liquid a unique integer, then multiply that integer by 222.49 degrees, then use that number (modulo 360 degrees) as the liquid's Hue, with 100% saturation and 100% brightness.
To prevent the mod from being insanely OP, both the Extractor and Infusor could each be a multiblock structure, whose liquid capacity depends on the how big the structure is, similar to the Smeltery from Tinkers Construct. If the maximum size of the structure is configurable, then a modpack author can choose how powerful the mod is.
The Extractor and Infuser could each use some sort of consumable fuel. For Extractor, the fuel is water, 100mb of water for each bucket of Enchantment or Enchantability extracted. For the Infuser, fuel is lapis, one lapis for each bucket of Enchantability used.
This idea is to add machines which create and consume Enchantments in liquid form, as a fun and different means of moving enchantments onto and off of items.
There would be one new Fluid for each and every enchantment and curse, plus one extra utility fluid, named Enchantability.
This Fluids would produced in the Fluid Enchantment Extractor, and consumed by the Fluid Enchantment Infuser.
To use the Fluid Enchantment Infuser, first put in any item which can be placed into a vanilla Enchanting Table. Then, add buckets of Fluid from the mod.
To get a level I enchantment on an item, add one bucket of that enchantment's fluid, plus one bucket of liquid Enchantability.
For each additional enchantment level, double the number of buckets of that enchantment's fluid, and add one extra bucket of Enchantability. For example, to get Looting I, II, III or X, you will need one, two, four, or five hundred twelve buckets of liquid Looting, plus one, two, three, or ten buckets of liquid Enchantability.
The machine will let you produce any legal combinations of enchantments (no Fortune and Silk Touch), with a maximum level of CCLV on any individual enchantment.
Enchanted items produced by the Fluid Enchantment Infuser will have the number of buckets of Liquid Enchantability used stored inside of the item's (vanilla!) RepairCost NBT Tag. As a result, using items enchanted by the Infuser inside of a vanilla anvil will be costlier than if they'd been produced by an Enchanting Table.
The Fluid Enchantment Extractor is almost exactly the inverse of the the Infuser, with one minor difference: If the item put in has less than full durability, the number of millibuckets of fluids produced will be scaled down. So if you have a Wooden Sword with Looting I on it, and 58/59 durability, instead of getting 1000mb of liquid Looting, you'll only get 983mb.
Both the Fluid Enchantment Infuser and Fluid Enchantment Extractor would be automatable with pipes.
There might be a machine for producing the utility fluid, Liquid Enchantability: Right click on an Enchanter's Cauldron while holding an empty bucket, lose one level of experience, and the empty bucket is converted into a Bucket o Enchantability. Because we are using "RepairCost" to store Enchantability, and due to how vanilla anvils work, this is 100% optional, but still convenient for the player.
Next, fluid conversions. It's almost inevitable that you'll have too much of an enchantment you don't want, and not enough of the ones you do want. Simply place down the one you want more of, wait a moment for it to be surrounded with flowing liquid, then place down the liquid you don't want, a metre or two away, so it touches the flowing liquid. The unwanted fluid source block, as soon as it touches the flowing liquid, will change itself into an enchantment source block of the same type as the flowing liquid. There could be some random probability that the fluid conversion will fail, and the unwanted fluid will become air instead. The probability of failure might rise with regional difficulty. There might be some catalyst block which can boost the probability of conversion success.
The Enchantment Fluids should be bright and colorful, and hard to visually confuse with one another. Selecting distinctive colors is easy with the aid of HSV to RGB conversion. First assign each liquid a unique integer, then multiply that integer by 222.49 degrees, then use that number (modulo 360 degrees) as the liquid's Hue, with 100% saturation and 100% brightness.
To prevent the mod from being insanely OP, both the Extractor and Infusor could each be a multiblock structure, whose liquid capacity depends on the how big the structure is, similar to the Smeltery from Tinkers Construct. If the maximum size of the structure is configurable, then a modpack author can choose how powerful the mod is.
The Extractor and Infuser could each use some sort of consumable fuel. For Extractor, the fuel is water, 100mb of water for each bucket of Enchantment or Enchantability extracted. For the Infuser, fuel is lapis, one lapis for each bucket of Enchantability used.