Fabric API

Fabric API

106M Downloads

ItemStack Aware Recipe Remainder

shartte opened this issue ยท 1 comments

commented

This would be useful to support scenarios where an expendable item is used more as a catalyst in a recipe.

An example would be a carving knife that is damaged everytime it is used as part of a recipe.

The current API in Item#getRecipeRemainder will only allow an Item to be returned, so the damage cannot be adjusted.

@modmuss50 commented in an earlier issue (#116) that they already have something like this:

I also have a mixin to add an item stack aware version of getRecipeRemainder. See https://github.com/modmuss50/Retro-Exchange/blob/fabric/src/main/java/me/modmuss50/retroexchange/ExtendedRecipeRemainder.java

commented

Sigh. Duplicate of #50