Skip to content

Smithing recipe fix#2807

Merged
tal5 merged 2 commits intoDenizenScript:devfrom
davight:smithing_recipes_fix
Feb 4, 2026
Merged

Smithing recipe fix#2807
tal5 merged 2 commits intoDenizenScript:devfrom
davight:smithing_recipes_fix

Conversation

@davight
Copy link
Contributor

@davight davight commented Jan 17, 2026

// TODO: 1.21.5: TransmuteRecipe?
/*
SmithingTransformRecipe recipe = new SmithingTransformRecipe(Optional.of(templateItemRecipe), baseItemRecipe, Optional.of(upgradeItemRecipe), CraftItemStack.asNMSCopy(result));
SmithingTransformRecipe recipe = new SmithingTransformRecipe(Optional.ofNullable(templateItemRecipe), baseItemRecipe, Optional.of(upgradeItemRecipe), new TransmuteResult(CraftItemStack.asNMSCopy(result).getItem()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd need to pass in more data to the TransmuteResult here, can put the NMS ItemStack in a variable and then get the item type (like it does rn), count of the stack, and the components patch via #getComponentsPatch (iirc).

@tal5 tal5 merged commit d53c6e1 into DenizenScript:dev Feb 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants