Ex Deorum

Ex Deorum

689 Downloads

Feature Request: Add recipes for barrel fluid transformations (like witch water)

vishtheshnu opened this issue ยท 4 comments

commented

Hi, I'm making a modpack that involves brewing alcohol, and Ex Nihilo's barrels' time delay fluid transformation mechanic was perfect for this. This current version of the mod doesn't seem to have that however for anything but witch water and there doesn't seem to be a way to add new fluid transformations.

Could you please move that features to its own recipe type such that new recipes can be added via datapack? Variables to consider are fluid input, fluid output, nearby block required, time for transformation.

I would greatly appreciate if you would consider this change. Thanks!

commented

This feature is added in 1.26, I will write documentation later.

commented

While this could be done relatively easily on the data pack side of things, the graphics part would be difficult. How would Water look transforming to Lava? If you notice with Witch Water, the water gradually changes from blue to purple as the process takes place. How would a transformation from Lava to Pink Slime look? If you have suggestions on how this should work, I may try and implement them.

commented

Here's my idea: specify the color of the resultant fluid in the recipe JSON, and if the fluid is tinted like water, the tinted fluid will transition from its regular color to the color specified in the recipe. If not, there will be no animation.

commented

Sounds good to me! Maybe you could also change the RGB if the starting and ending fluids are flat colors? Or find a halfway point RGB-wise (average out each of the R, G, and B values), and start by tinting the starting fluid until it's entirely the color of the halfway point, and then by switching to the other fluid's texture but keeping the tinting, and slowly removing the tinting until it's complete.

(step by step, easier to read version)

  1. Calculate halfway point color that's the average of start and end fluid's colors
  2. If the recipe is less than halfway complete, set the displayed texture to the starting fluid, and its tint to the lerp of white to the halfway point's tint based on how long has passed.
  3. If the recipe is at or more than halfway complete, set the displayed texture to the final fluid, and its tint to the lerp of the halfway point's color to white based on how long has passed.