IntegratedDynamics icon indicating copy to clipboard operation
IntegratedDynamics copied to clipboard

"Anvil combination result" operator

Open SharkWipf opened this issue 4 years ago • 1 comments

Issue type:

  • :heavy_plus_sign: Feature request

Short description:

I'd like to have an operator exposing the projected results of 2 items combined in an anvil as an item.
Think of the item preview shown when using an anvil manually, except exposed through Integrated Dynamics.
This would allow for things like automatically checking if 2 items can be combined at all, and if the result is as desired.

A practical example would be EnderIO loot capacitors. These can be combined in an anvil to get new, improved stats, but not every 2 capacitors are worth combining.
Whether a capacitor is worth combining is in part determined by the random "seed" for the capacitors I believe, and cannot realistically be tested with NBT data alone.
With an "anvil result" operator that takes 2 items and spits out a 3rd, one could simply compare the new item to the 2 inputs and decide if it's worth combining this way, and move the items along accordingly.

SharkWipf avatar May 25 '20 04:05 SharkWipf

Optional name could be Anvil Merge, with signature Item -> Item -> Item. This should not allow renaming an item, as the naming of an item is a different function that the anvil simply does in one go.

Jack-McKalling avatar Jun 07 '21 19:06 Jack-McKalling