Integrated Crafting

Integrated Crafting

37M Downloads

JEI triggered autocrafting autofill

RoarkCats opened this issue · 6 comments

commented

Issue type:

  • ➕ Feature request

Short description:

When using JEI in a Crafting Terminal to move items to the grid, the button offers to trigger autocrafting for lacking items by control-clicking the move items to grid button. This is all fine and dandy, however, it would be nice if when the autocrafting coompleted, the items were actually moved to the terminal crafting grid as currently it moves the rest of the recipe but requires the player to search out the missing item and manually insert it, or to redo the recipe selection entirely.

Ex: I want to craft a machine, im missing the frame but that's alright I've setup an autocrafting recipe for it, lets trigger that and move the recipe to the grid, oop, the frame isn't there bc I had to autocraft it even though it was only one item that was almost immediately crafted. Time to ged rid of whatever I had searched, recall the name of the, whatwasit, steel frame? right there it is, let's drag that in, finally I have my machine!

Bit of a hassle ey?

commented

I believe other autocrafting systems might have this problem too. Items can only be moved into the crafting grid as by player command, so this means when it gets completed by autocraft job, by the time that job finishes, it isn't in command of the player anymore. That delay would mess up the interface and would be experienced as either lag or worse, desync.

commented

Thanks for the suggestion!

commented

The best way to implement (something like) this feature suggestion, as best to the insight I have into this, would be to add a button to the GUI to "retry" last inserted recipe. But this does require caching state from the JEI transfer handler into the terminal or network.

commented

That sucks, would there be no way to like schedule a callback or flag it to be checked while the gui stays open? Could dismiss the request if the grid is modified by the player so there's no overlap issue

If it's that bad, maybe it could only be a special feature for basic recipes using a crafting table? since it wouldnt be in bulk, just a quick craft for one set of ingredients, maybe it could be fast tracked, instantly crafting the recipe just for this sort of case? that doesnt sound like it would be very good code wise tho, might cause small issues over time if its hacked in and may not be possible to fast track the existing way... hmm

commented

If a button could do that, could it not be made to (or have the option to) auto-try-again? Or would it absoultely need that client context interacting with it?

Food for thought, anyhow, would be nice QoL but not end of world, sounds like a try and see how goes sorta thing

commented

How Applied Energistics does it, they keep track of all items being crafted inside the storage/crafting terminal, using pinned slots at the top. So once a crafting job has been sent, e.g. from a JEI recipe transfer, the crafted items will become directly available at the top of the terminal so you can manually move them into the grid, some time after the job request has been made.

They rinse this queue once the terminal is reopened, so it's not always taking up space.