Ewy's Workshop

Ewy's Workshop

1M Downloads

Issue with stacked "Tools"

reteo opened this issue ยท 3 comments

commented

As part of a custom mod for a modpack, stacked "tool" items are being replaced by a single replacement item (In this case, a stack of ore crucibles and a stack of molds should return a stack of empty crucibles and a stack of sand, with the output being two stacks of ingots). Is there some way that a stack of more than one "tools" can be returned after crafting a recipe?

commented

To elaborate further:

The recipe in question uses an item with metadata (to represent it's current metal contained) and another item without metadata. Both items return true on hasContainerItem, and both items do not remain in the crafting grid, but each return another item when crafted with getContainerItem, similar to how buckets work.

Now using a single iteration of the recipe works, but processing stacks of the recipe results in getting only 1 set of output items, while the remainder of items is "lost".

Possibly the problem lies in the "container" items being stackable, which is rather unusual compared to buckets (that cannot be stacked) or items that apply damage when used (such as flint and steel)

commented

Sorry for no reply, been busy lately. I will look into this issue now. Thanks for a good explanation of the problem.

commented

I was having the same issue with Vswe's latest version. I wrote a small recipe based mod as my first and was having that happen to my mod items only. And only the Items with setContainerItem. I wasn't sure if it was Vswe's mod or mine. I then noticed that he hasn't been on since last June. No way to get it resolved. I am very thankful that you are picking up this project. I'm new to this and have no idea if looking at the source code of a known conflict will help. But you are more than welcome to my source code if will help you resolve the issue.